Hi I am working with android.I want check weather an application is installed or not in the device.So How can I get the download status and package name if the user download an app in the device. Is it possible with download manager?
Asked
Active
Viewed 339 times
2 Answers
0
Check this: https://stackoverflow.com/a/18752247/1914223
By using the PackageManager
, you can do what you want.
0
This is for getting the package name...
public static String PACKAGE_NAME;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
PACKAGE_NAME = getApplicationContext().getPackageName();
}
and for download status, you might want check this link... How to get status of downloading?

Community
- 1
- 1

QuaziRidwanHasib
- 46
- 3