android - Calling an extrenal application -
how can call external application application?
e.g: need call shazam
(application) app. can see package name of application in logcat
.
will useful purpose?
you can call third party application's activity in following way.
final intent shazamintent = new intent("com.shazam.android"); shazamintent .setcomponent(new componentname("com.shazam.android","com.shazam.android.splash")); startactivity(shazamintent );
but, not great way go it. in case package name changes (which remote possibility) or activity name changes (splash
change else) application break. if shazam has intent can invoked start listening song use (not sure if have one).
also, necessary check in case shazam not installed call doesn't crash.
Comments
Post a Comment