作了一个应用,希望开机后就运行,而不是launcher!试一下了,编译源码时,如果把launcher去掉,系统则如法加载。如果把Launcher编入了,我的程序只能等Launcher完成后,才开始运行。请问各位大侠有什么好的办法解决,谢谢!
解决方案 »
- Paint类DITHER_FLAG之类的常量是用来干嘛的?
- android 中View onTouchEvent 事件
- SurfaceView中用setBackGroundDrawable()的问题
- R.java问题
- 关于Android远程登录含有loading效果的程序的问题
- 通过ContentProvider往数据中出入了三条数据,id为自增,删除掉第二条数据后,id成1,3,怎样让3变成2?
- android布局如何在图片中间显示文件
- apk反编译jar问题
- Android 中文论坛
- 请教关于android远程桌面的实现
- 利用tcp/ip协议访问PC机(Android)
- Android3.2平台Map应用FC异常日志分析
http://iame.javaeye.com/blog/375515
Android开机自动运行
http://wenku.baidu.com/view/d5f44069a45177232f60a2e5.html就是定义一个BroadcastReceiver,接收到android.intent.action.BOOT_COMPLETED消息后启动自己的activity就OK了。
那就不知道该怎么在Launcher运行之前运行楼主的程序
一般做主题的话就是自己做出来替换原有的Launcher
你可以参考下
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
然后就可以让你的程序运行在主界面了!
lz说的应该是想开机直接启动他的应用不启动laucher把
Intent intent = new Intent();
intent.setComponent(comp);
intent.setAction("android.intent.action.VIEW");
startActivity(intent);
只是切换的时候,感觉很生硬,原本是不想出现窗口的title的,但是切换过程中还是出现了,不平滑,不知道有什么好方法解决?
android:label="@string/app_name">
<intent-filter android:priority="100">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
peter_hu2mcinnova.com