What is the difference for installed application's list in device and emulator. In emulator i can see the installed apps in location of /data/app
But, i can't see the installed application on my real device. Where it is stored. I can see the default application from here /system/app
But i can't see installed application whatever i downloaded and my own application. Anyone guide me?
On the emulator, you have root access.
On your phone, you do not have root access (unless you root it). And each application gets its own private folder with its own linux userid, so that one application can not look into the folder of another application. This is but only one aspect of the Android security model. There are many more.
Are you looking for anything in particular in those folders? If so, there are workarounds. For instance, if you're trying to look at your sqlite.db file, one workaround is to have your own application (since it has the permission to do so) programmatically read the database file and reconstitute it on the SD card (every time you want to manually check it).
In my device (Samsung Galaxy Tab 10.1, Android 3.1) installed apps are in /data/data
.
EDIT: If you want to get absolute path of your directory at runtime, you can use this trick:
getApplicationContext().getFilesDir().getAbsolutePath().replaceFirst("/file.*$", "");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With