下面是我的manifest.xml,不明白什么时候会自动启动OtherActivity。也就是说,我的第一个页面是主页面,如果没有登陆的话,还要启动认证页面。<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.net.mycloud"
android:versionCode="1"
android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" /> <application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".MyCloudSyncActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="OtherActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
</activity>
</application></manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.net.mycloud"
android:versionCode="1"
android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" /> <application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".MyCloudSyncActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="OtherActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
</activity>
</application></manifest>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货