作了一个应用,希望开机后就运行,而不是launcher!试一下了,编译源码时,如果把launcher去掉,系统则如法加载。如果把Launcher编入了,我的程序只能等Launcher完成后,才开始运行。请问各位大侠有什么好的办法解决,谢谢!

解决方案 »

  1.   

    Android开机自启动
    http://iame.javaeye.com/blog/375515
    Android开机自动运行
    http://wenku.baidu.com/view/d5f44069a45177232f60a2e5.html就是定义一个BroadcastReceiver,接收到android.intent.action.BOOT_COMPLETED消息后启动自己的activity就OK了。
      

  2.   

    我的程序已经能开机自动运行,关键是要等到Launcher启动完成后才开始运行我的程序。重点是我想比Launcher先启动!
      

  3.   

    是由Launcher来管理桌面等,开机完成后就运行这个。
    那就不知道该怎么在Launcher运行之前运行楼主的程序
      

  4.   

    LZ做的是什么应用哦 , 
      一般做主题的话就是自己做出来替换原有的Launcher
      

  5.   

    不知道楼主有没有系统源码,在launcher启动前加载你的代码即可,这个老早就有人做过了的。如果没有系统源码,仅仅需要安装APK就能先运行的话估计有点难度,不过,可以一起运行。
      

  6.   

    手机里面有个设置解锁图案那个应用(在settings里面)
    你可以参考下
      

  7.   

    我觉得应该是在你的manifest里面加上,
    <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
    然后就可以让你的程序运行在主界面了!
      

  8.   


    lz说的应该是想开机直接启动他的应用不启动laucher把
      

  9.   

    修改了Launcher的源代码,在onCreate里面直接调用我的应用!方法如下!ComponentName comp = new ComponentName("com.login","com.login.LoginMain");
                                    Intent intent = new Intent();
                                    intent.setComponent(comp);
                                    intent.setAction("android.intent.action.VIEW");
                                    
                                    startActivity(intent);
    只是切换的时候,感觉很生硬,原本是不想出现窗口的title的,但是切换过程中还是出现了,不平滑,不知道有什么好方法解决?
      

  10.   

    看来我不出马不行了,哈哈:        <activity android:name=".HomeActivity"
                      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>
      

  11.   

    laucher的源代码在哪里可以修改啊?我要做的和楼主的一样啊,就是开机加密啊
      

  12.   

    楼主 ,我也想解决这个问题,开机就像跳到自己的软件界面 ,不经过HOME界面!请问楼主解决了没?我邮箱
    peter_hu2mcinnova.com