这是我的错,
我可以在处理程序内部使用startBroadcast/application/service。
private final int INSTALL_COMPLETE = 1;
private Handler mHandler = new Handler()
{
public void handleMessage(Message msg)
{
switch (msg.what)
{
case INSTALL_COMPLETE:
// finish the activity posting result
// setResultAndFinish(msg.arg1);
startApplication();
break;
default:
break;
}
}
private void startApplication()
{
String intentName = g_szIntentName;
Intent i = new Intent(intentName);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
sendBroadcast(i);
}
};