0

I need to ask user to install flash player, when he install my apps in his android phone and flash player is not already installed, how can I do this with coding ???

Please help me

akjoshi
  • 15,374
  • 13
  • 103
  • 121
user701735
  • 145
  • 1
  • 5
  • 13

1 Answers1

1

Try trough Javacode :

Intent intent = new Intent();

    intent.setComponent(new ComponentName("com.adobe.flashplayer", "com.adobe.flashplayer.FlashExpandableFileChooser"));
    PackageManager pm = getPackageManager();
    List<ResolveInfo> activities = pm.queryIntentActivities(intent, 0);
    if (activities != null && activities.size() > 0) {
        Toast.makeText(this, "Flash is installed!", Toast.LENGTH_LONG).show();
    }
    else {
        Toast.makeText(this, "Flash not installed!", Toast.LENGTH_LONG).show();
    }

Reference : How to check if the Flash players is installed on Android

Community
  • 1
  • 1
Vinayak Bevinakatti
  • 40,205
  • 25
  • 108
  • 139