本来程序运行好好的,未知原因出现了如下log
07-25 13:53:38.124: V/AlarmManager(227): The statePoweron is :normal
07-25 13:53:38.124: V/AlarmManager(227): sending alarm Alarm{42226580 type 0 com.huawei.message}
07-25 13:53:38.124: W/ActivityManager(227): Unable to launch app com.huawei.android.pushagent/10092 for broadcast Intent { act=com.huawei.android.push.intent.HEARTBEAT_REQ flg=0x14 (has extras) }: process is bad
07-25 13:53:38.124: W/ActivityManager(227): finishReceiver called but none active
07-25 13:53:38.460: V/AlarmManager(227): Checking for alarms... rtc=1343224418471, elapsed=150666522
07-25 13:53:38.460: V/AlarmManager(227): Checking active alarm when=1343224418471 Alarm{42681710 type 0 com.
在老外的帖子上只看到了有解决办法:
 1   Uninstall your app
 2   Reboot phone/emulator
 3   Push new app without this attribute
或者
    Uninstall the app through Settings -> Applications.
    Remove the battery from the phone (using the Android "Power off" menu did not work).
    Turn device on again.
    Install the APK again using adb install <myapp>.
求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求求
各位大神解释!!
Unable to launch app ,为什么没会出现process is bad呢

解决方案 »

  1.   

    这是华为的push程序,哇,楼主在华为上班噢,羡慕!
      

  2.   

    看这个log,是app注册了alarm manager的定时通知,但是app却已经在收到intent之前挂掉了.
    log太少了,看看com.huawei.android.pushagent的其余的log,是不是出现了exception,确定是app自己出了问题,还是给系统杀掉了。
      

  3.   

    就是因为不能确定是由什么原因引起的,在log中也没有发现直接导致出现process is bad的原因。
      

  4.   

     sending alarm Alarm{42226580 type 0 com.huawei.message}
      

  5.   

    把bin目录下dex,apk,ap_这三个文件删了,刷新运行试试
      

  6.   

    无解,据说是跟android4.0系统有关,而我们的项目只是一个service,没有界面,安装的时候app是不会起来的,并且此时按理来说是收不到系统的各种广播的(内置除外),又因为是偶现,项目最终讨论结果对其不做处理。