How to view Android LogCat output from exported APK on physical device?

When I launch my Android application using the menu item "Run → Run" in Eclipse, the application runs on my phone, and during its launch I can view the log output in LogCat in Eclipse.

When I export my application, copy the .APK to the phone, install it from the APK and run the installed application, I do not see the output in LogCat.

Is there any way to view this log output?

Context:

I am implementing applications in the application. I think I have a job, and when I try to use in-app purchases in the application, if it runs on the phone through the Eclipse Run menu, it activates the Google Play store, but I get the error message "This version of the application is not configured to be set accounts through Google Play. "

After some search queries, I found that this error occurs because the APK must have a signature that matches the APK that I downloaded to the developer console, so that billing in the application works and starts from the menu Eclipse Run does not provide this signature.

So, I tried to install a signed APK, which is the same as the one I downloaded to the developer console, and now when I try to use invoicing in the application inside the application, nothing happens at all. It does not seem to even try to launch the Google Play store, as it does when launched through the Eclipse Run menu.

So, basically I need to see what error messages are displayed when I try to use invoicing in the application specifically from the exported signed APK.

+5
source share
3 answers

Try adb logcat from the console or cmd, which will give you all the device logs.

Here is a small tutorial: http://forum.xda-developers.com/showthread.php?t=1726238 and official docs: http://developer.android.com/tools/help/logcat.html

If your device is embedded, you can also try the following: https://play.google.com/store/apps/details?id=com.nolanlawson.logcat

+5
source
+2
source

It is common practice that the exported application should not contain any log statements. Try downloading the application manually from the Google Play Store to make sure that in-app billing works fine. Also check which error messages are displayed on the screen.

0
source

All Articles