Is it possible to check info about the android:installLocation of my app, if it is installed on /data/app
or on SD card?
I need to check if my app moved to SD card then need notify user that the autostart doesn't work.
Asked
Active
Viewed 455 times
0

Stefan Hanke
- 3,458
- 2
- 30
- 34

Alex Maddyson
- 411
- 4
- 13
-
possible duplicate of [Get Application Directory](http://stackoverflow.com/questions/5527764/get-application-directory) – runDOSrun Feb 08 '15 at 18:16
-
1@runDOSrun no it's not duplicate by your link, its duplicate by this answer http://stackoverflow.com/a/6260246/4387074 , sorry – Alex Maddyson Feb 08 '15 at 18:25
1 Answers
0
I used this answer to get application install directory How to get app install directory
Hope it helps

Community
- 1
- 1

Álvaro Pérez Soria
- 1,443
- 1
- 13
- 26
-
no, this answer suggest use 'getApplicationInfo().dataDir' but when app moved to sdcard, her data directory anyway set on /data/data/appname/ – Alex Maddyson Feb 08 '15 at 18:08
-
ok, question can be closed, the ApplicationInfo has parameter .sourceDir that show installed apk directory – Alex Maddyson Feb 08 '15 at 18:14