How to open another application from current application on Android? – Different Approach

Opening  an application from your own application is simple and you can find the solution everywhere like this :

The problem here is that if you do not know the application’s launch activity’s classname, you can not open the application. Of course one can say that: “I can access this file from Package Manager – Application Info”. My answer will be : “Try and see :)”. ApplicationInfo sometimes returns null values which makes the developer crazy.

Here is my approach to this situation (getLaunchIntentForPackage) :

Hope this also will help to you!

Leave a Reply

*

This blog is kept spam free by WP-SpamFree.