Akshar
Am new to android. am developing an application. i want to set a shortcut key. for that in my application i ll accept a key, application name in an activity. i ll store them. if i click on add button it ll go to next activity where i ll ask the user to input the shortcut key. once entered i ll accept that, compare it with the previous value and if true i want to launch that application. So i need to fire an intent or some way to launch that application. how to do that?
Here's an example of starting a market Intent:
Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pub:XdebugX"));
myContext.startActivity(marketIntent);
Here you can find the reference for Intents:
http://developer.android.com/reference/android/content/Intent.htmlHere's the guide on using Intents:
http://developer.android.com/guide/topics/intents/intents-filters.html
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.