Android 在Service里面启动Activity

直接在代码:

Intent dialogIntent = new Intent(getBaseContext(), YourActivity.class); 
dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
getApplication().startActivity(dialogIntent); 

http://bbs.51cto.com/thread-1133875-1.html

posted @ 2016-11-04 16:35  星辰之力  阅读(10555)  评论(0编辑  收藏  举报