2

I am currently writing a simple app to practice Android programming. The app has a UI to which EditText elements are added during runtime. It saves and restores their content in the life cycle methods.

However, recently the contents were not restored as intended. So I added Log.d() invocations to find out why. As the issue occurs rarely and not during debugging I want to get the logs from my device.

First, I assumed I could get a logfile that was created for my Application. But apparently the logs of all apps are stored in some buffer which you can read out with logcat.

That seems to give me an endless stream of all apps' logs. I want to get only my app's debug logs and only those with my self defined tag like when I debug my app in Android Studio:

Viewing Logs in Android Studio (Screenshot)

Can I somehow get the logs from my device and view them with the Android Studio logcat view?

Thanks in advance!

3

1 Answer 1

2

Play app with cable pluged in first then unplug it and play with app.. again plug in back cable to your system you must see the previouse logs on android studio

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.