主题几乎说明了一切。
最佳答案
使用 BroadcastReceiver
接收 Action BOOT_COMPLETED
的 Intent。
在 onReceive() 方法中为您的 Activity 创建一个 Intent:
@Override
public void onReceive(Context context, Intent intent) {
Intent myIntent = new Intent(context, YourActivity.class);
context.startActivity(myIntent);
}
关于java - 安卓 2.2 : How to make an app to run automaticly on startup & how to make an app start another app,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4554583/