• Post Reply Bookmark Topic Watch Topic
  • New Topic

Any method to know where android app is installed.

 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

Lets assume we have and android application and from application I want to know where the application is installed.
Path of the application where it is installed. I mean I need absolute or relative path of the applications's directory.

Is there any method to know this ?
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try calling PackageManager#getApplicationInfo(..). Print the sourceDir property of the returned object.
For details : Read documentations of PackageManager & ApplicationInfo classes.

Hope that helps.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!