android开机启动程序,界面设置
<receiver android:name="HippoStartupIntentReceiver"><intent-filter><action android:name="android.intent.action.BOOT_COMPLETED"/><category android:name="android.intent.category.HOME"/></intent-filter></receiver>
?Android 界面竖设置
Mainfest.xml
<activity android:name=".AndroidNet2Activity" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:screenOrientation="landscape" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
public class HippoStartupIntentReceiver extends BroadcastReceiver {@Overridepublic void onReceive(Context context, Intent intent) {// TODO Auto-generated method stubIntent mBootIntent = new Intent(context, AndroidNet2Activity.class);mBootIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.startActivity(mBootIntent);}}??
开机启动xml代码
?
?