进程方式启动Activity

 <activity android:name=".ArticleActivity" android:screenOrientation="portrait"  
            android:process=":articleactivity" > 
            <intent-filter>       
                <action android:name="com.marktola.test.app.articleactivity"/>      
                <data android:scheme="twz_info"/>  
                <category android:name="android.intent.category.DEFAULT"/>       
            </intent-filter>      
        </activity>



Uri uri = Uri.parse("twz_info://process");
Intent intent = new Intent("com.marktola.test.app.articleactivity", uri);
intent.putExtra("url", info.url);
intent.putExtra("title", info.title);
startActivity(intent);

posted on 2017-03-30 13:56  yaolunhui  阅读(174)  评论(0编辑  收藏  举报

导航