almost 5 years ago
For Implicit intent, we dont need to declare the name of the class but we declare the action that we are doing to perform.
Like here we make a call
Uri callUri = Uri.parse("tel:100");
Intent intent = new Intent(Intent.ACTION_DIAL, callUri);
There might be a situation where If we call an intent there is no application to take it, then our app would crash.
So we need to check or verify the app that respond to that particular intent.
Here is the way to verify
PackageManager pManager = getPackageManager();
List nList = packageManager.queryIntentActivities(intent,
boolean canInvoke = nList.size() > 0;
If canInvoke is true , Then There is atleast an app to handle this invoke, otherwise return false.
So hope you easily use this code and add one more verification in your application.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2020 FindNerd.com. All rights reserved.
Sign up using