在launcher2源码中加入自己定义的activity,然后想要在点击launcher上的某个按钮后,跳到自己定义的那个activity,该如何实现?求大神帮忙解决,试了好多方法都不行Launcher源代码

解决方案 »

  1.   

    这个不就是一个普通的activity跳转吗
      

  2.   

    Intent intent = new Intent(Launcher.this, xxxx.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);把这个加入你的button点击事件当中,Launcher.this代表的是当前Activity,xxxx是你写的activity名字。
      

  3.   

    不好用,这个试过了,还是提示找不到类,我感觉也是一个普通的跳转,但是在launcher源码中加,是不是还需要添加其他代码呢