QUESTIONS

LogCat View trouble on AIDE -IDE Android

  Denys Plaud       2021/09/11       63


63

The question and answer about this post on LogCat View trouble on AIDE -IDE Android have a total of 4 answer so far..

asked
4 answers
63 votes

SOLUTIONS: (4)

0
      8

after I run any application on my phone, using free version of AIDE -IDE Android, everytime I view LogCat, I get the same message : " run the app to see the log output ".! Here is the following screenshot :(https://i.stack.imgur.com/uLORU.png) Is LogCat free on AIDE-IDE Google play app ? Thank you for your attention.

0
      8

It's free as far as i know, but you need root access in order for log to work. Besides: it doesn't work from time to time with root either.

Another option: use following function to log to local file:

public void appendLog(String text)
// https://stackoverflow.com/a/6209739
{       
File logFile = new File("sdcard/log.file");
if (!logFile.exists())
{
    try
    {
        logFile.createNewFile();
    } 
    catch (IOException e)
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
}
try
{
    //BufferedWriter for performance, true to set append to file flag
    BufferedWriter buf = new BufferedWriter(new FileWriter(logFile, true)); 
    buf.append(text);
    buf.newLine();
    buf.flush();
    buf.close();
}
catch (IOException e)
{
    // TODO Auto-generated catch block
    e.printStackTrace();
}
}

Use it like this:

try{
   // your code goes here
}catch (Exception e){
   appendLog(e.getMessage());
}

You need to add permission for writing_external_storage in Manifest.

0
      10

There is no problem with your code. However the problem is with AIDE version your using. Am using the Pro and Logcat is working fine for me

0
      8

I found this way, as shown below, using Log.getStackTraceString(Exception e), to solve my LogCat View trouble on AIDE-IDE Android. The only remaining question is why there is no display of Log.e (TAG,"Exception ",e) ? Thank you for your attention. Code of MainActivity (https://i.stack.imgur.com/Dqfc5.png)


QUESTIONS:



HOME POST

Connecting....
Nfiles Questions - nfiles.xyz the Q nad A blogs sites for free
๐Ÿ—‚ Nfiles ยป Home
๐Ÿ—‚ ModStore
๐Ÿ—‚ Videos
๐Ÿ—‚ Shareurl
๐Ÿ—‚ About us
๐ŸŒ Leaks.work
๐ŸŒ Malitanyo
๐ŸŒ Tagalog Anime 143 ๐Ÿ‘ค Mr. snow finger
๐Ÿ‘ค Yoki No moto
๐Ÿ‘ค Xdeveloper
๐Ÿ‘ค Malitanyo Dev
๐Ÿ‘ค Money Motto
๐Ÿ‘ค Ako Johnny Sin
Create with โค Questions by nfiles.xyz 2021