1

As the title suggests, is there a difference between installing an app from an .apk file from local storage (i.e. SD Card) and installing the same file through adb? I'm noticing different behavior based on these methods on installation. Any help would be greatly appreciated!

EDIT: In case someone stumbles upon this in the future, I want to provide an update as to what was causing the issue. I was experiencing the same issue as outlined in this question: How to prevent multiple instances of an activity when it is launched with different intents. I was able to pick up the issue by using the following command while my app was running:

adb shell dumpsys activity <package-name>.  

This allowed me to view the back stack and I noticed that when I resumed the app after hitting the home button, new instances of the activities were being created, but the old instances were in the back stack.

Community
  • 1
  • 1
Rahin
  • 943
  • 6
  • 21

1 Answers1

3

When you use adb you are invoking the debugger too. It resets the whole package's variables and data each time you run it.

But if you just run it like a released software you may not be releasing or resetting everything and have things that persist between using your app.