Such as the title, to go through their own start other programs to create a button, such as QQ UC browser or what, to how to achieve it? Please help you big God.
On ACTIVITY created yourself can add shortcuts to these programs do? If so, how to get their shortcuts.
Or, to be sent by clicking on a radio, so that these program starts up, if you use this method, how to get these programs started broadcasting the information you need?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
try {
Intent intent = new Intent (Intent.ACTION_MAIN);
ComponentName componentName = new ComponentName (
"Com.tencent.mobileqq",
"Com.tencent.mobileqq.activity.SplashActivity");
intent.setComponent (componentName);
context.startActivity (intent);
} Catch (Exception e) {
UIToast.showToastLong ("QQ phone is not installed");
}
Start QQ,, other applications can obtain the specified MainActivity start.
Reply:
Not only to start the QQ ah, yes to start the program in accordance with the corresponding icon loaded ah, so that the structure can not write ComponentName dead ~
Reply:
This had to learn how many days
Reply:
Broadcast, then you can really start anyway, is the use of Intent
Advance to write a radio receiver, and then sends a broadcast message like after a user point. .
In short if you want to start to get into their activity Intent in just fine.
Reply:
Just an example, you need to start what needs to get the application's own MainActivity
Reply:
1 floor approach is right, but you have to get to the register and the class name corresponding application.
Reply:
We greatly, according to the application name or icon, how to get the package name and the name of the main program it Activity
Reply:
No comments:
Post a Comment