0

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?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Maxwell
  • 552
  • 2
  • 5
  • 20

2 Answers2

0

Check this: https://stackoverflow.com/a/18752247/1914223 By using the PackageManager, you can do what you want.

Community
  • 1
  • 1
Gaëtan
  • 11,912
  • 7
  • 35
  • 45
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