Debug-Log from a distance? Android Studio

1

I am developing an app which has problems with two versions of Android, it has already been installed in different android, 4.4.4, 5, 6. but there are two smartphones that are stopped the app one is version 6.0.1 and the other andreo 8 oreo. I do not know what the flaw can be because I try the app in my emulators and everything goes great.

  

Is there a method to see the log or debug of the app to an android?   that is in another place in the world?

And so you can see what causes the failure.

    
asked by Luis Rivas 16.05.2018 в 17:21
source

3 answers

1

To generate a record of events that occur in your application and that are causing problems such as ANR or Crashes, you can check:

Google Play Console.

In the case of having your application published in the Google Play Store, in the administration console you can track problems that are occurring in your application, whether they are ANR (Android does not respond) or Crashes (Errors), enter < a href="https://developer.android.com/topic/performance/vitals/"> Android Vitals and subsequently ANR's or Crashes ,

You can view the list and access more detailed information about the error, you can even view the stacktrace.

Fabric - Crashlytics

This framework can be implemented in a simple way in your application and you can get information about errors in your application but unlike Google Play Console, you do not need to have your application published, the error log will be made if the application counts with internet connection.

You can review more information here:

What is Fabric Crashlytics and how to configure it for Android?

Application Insights

Recommended by our friend @FredyFx

link

link

Regarding the error that your application shows:

  

has been installed on different android, 4.4.4, 5, 6. but there are two   smartphone that is stopped app one is version 6.0.1 and the other   android 8 oreo.

You must remember that for operating systems from Android 6.0 (API 23) some Permits that are considered risky :

should be required at run time and it is not enough to add them within the AndroidManifest.xml file.

Review the documentation: How to request permissions at runtime

Examples:

Error showing the external file directory in an AlertDialog in android 6.0 (READ_EXTERNAL_STORAGE / WRITE_EXTERNAL_STORAGE)

Permissions at run time

    
answered by 16.05.2018 / 22:16
source
1

As Damián commented, I use Fabric in my work that has integration with Firebase. They give you a large amount of data (type of device, version, etc) as it gives you the error log along with the memory used. You also have real-time data such as the number of users who are using the app at that time. Not only that, but you can also create custom events to know things in certain points of the application. Take a look that will undoubtedly help you.

link

    
answered by 16.05.2018 в 18:03
1

If at the time of the failure, the user uses the Send Report dialog (I do not remember the exact name), a report will be sent that you can review in the Play Console, under the heading "Android vitals > ANR Errors and blockages. "

About this Console see: link

If I remember correctly, I think you could see the stacktrace, which is often enough to identify where the problem is coming from.

    
answered by 16.05.2018 в 18:13