Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Get Launch Intent

$
0
0

I'm trying to figure out how to do the following in titanium.

Intent intent = getPackageManager().getLaunchIntentForPackage("com.other.app");
if (intent == null) {
    openURL( "http://play.google.com/store/apps/details?id=com.other.app" );
} else {
    startActivity(intent);
}
I was hoping to avoid manually configuring the intent with an action and category in case the other app is updated and something changes. I just thought it would be best to automatically get the launch intent.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>