here is my code to call mxplayer but it didn’t work, why ?
Intent myIntent ;
PackageManager manager = getPackageManager();
myIntent = manager.getLaunchIntentForPackage("com.mxtech.videoplayer.ad");
startActivity(myIntent);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The developer of MX Player documented its package namespaces here: https://sites.google.com/site/mxvpen/api
So if you have installed the pro version, you need to use another name.
Further more you can catch the exception for the case, that the MX Player isn’t installed on the system: