tags:

views:

145

answers:

2

i try some method,but not success,help me.

+1  A: 
PackageManager pm = context.getPackageManager();
ApplicationInfo appInfo = pm.getApplicationInfo("app.package.name", 0);
String appFile = appInfo.sourceDir;
long installed = File(appFile).lastModified();
alex
thank you ,it is my want.
jezz
A: 

I don't understand the answer -- it provides the last modified date of the App's directory. Why is that necessarily the same as the original install time of the app?

ChaimKut