您的位置:首页 > 移动开发 > Android开发

android利用隐式intent跳转界面

2016-07-19 20:21 357 查看

AndroidManifest.xml文件中,下面红色部分的内容不可少
<activity android:name=".LoginActivity"><intent-filter><action android:name="com.vrphogame.thyroidapp0716.ACTION_START" /><category android:name="com.vrphogame.thyroidapp0716.LOGIN_ACTIVITY" /><category android:name="android.intent.category.DEFAULT" /></intent-filter></activity>
java代码:
Intent intent = new Intent("com.vrphogame.thyroidapp0716.ACTION_START");intent.addCategory("com.vrphogame.thyroidapp0716.LOGIN_ACTIVITY");startActivity(intent);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: