1. Are you ready for the Galaxy S20? Here is everything we know so far!

Getting different logs when the same app has been run two times

Discussion in 'Android Development' started by Nikhil Agrawal, Jul 10, 2021.

  1. Nikhil Agrawal

    Thread Starter

    Hi everyone,
    I have a doubt w.r.t the log generation of an app (from logcat command-line tool).

    Consider the following scenario: I have an apk that I ran two times (everytime, there is the fresh installation of the same apk) and have fetched the logs (from the logcat) for this app when the app has been run for the first 15 seconds (without any involvement of user activity).
    I observed that logs generated for both the runs on the same device are different. Why the logs generated (in logcat) are different when the same apk (the same code) has been run two times in the same device? (Even if I run the same app on rebooting, then also the logs coming are different)
    Run1Logs and Run2Logs (You can find the logs of an app when ran for two times)

    My intution is that may be both the runs of the same apps are not happening in the same environment.
    I have the following queries which I would like to know your views:
    • How to run the same app two times in the same environment in the Android device? If not same, then what are the things which we can try so that we are reaching close to getting similar environment?
    • How to know which tags are coming from Android SDK and which tags are coming from the Android App's developer code?
    Thanks a lot for helping in my research journey.



    Reply all


    Reply to author


    Forward
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Getting different logs
  1. 3HeadedDog
    Replies:
    3
    Views:
    190
  2. Hornetzero
    Replies:
    1
    Views:
    240
  3. A New Bee
    Replies:
    3
    Views:
    227
  4. Kuldip Somwanshi
    Replies:
    0
    Views:
    325
  5. kblanco
    Replies:
    7
    Views:
    579
  6. ocnbrze
    Replies:
    47
    Views:
    2,522
  7. JonJacobs
    Replies:
    6
    Views:
    513
  8. kumaranil13k
    Replies:
    0
    Views:
    506
  9. kumaranil13k
    Replies:
    8
    Views:
    788
  10. startac4
    Replies:
    5
    Views:
    538

Share This Page

Loading...