My BroadcastReceiver is VERY simple (below) and never runs.

I did notice this in the logs:

01-13 08:38:40.550: INFO/ActivityManager(57): Start proc com.boottest
for broadcast com.boottest/.BootReceiver: pid=175 uid=10024 gids={}
01-13 08:47:12.633: INFO/dalvikvm(185): Debugger is active

Doesn't the above mean the debugger never gets to start/attach in time
to catch the event?

~~Thanks


public class BootReceiver extends BroadcastReceiver {
        @Override
        public void onReceive(Context context, Intent intent) {
                // minor "work"  ===> WE NEVER REACH HERE
                int x = 0;
                int y;
                y = x;
                Log.d("BootReceiver","We got here!");

                if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction()))
                                  {

                Intent i = new Intent();  // more useless work
                      }
        }
}


On Jan 12, 11:24 pm, Kumar Bibek <coomar....@gmail.com> wrote:
> Hi,
>
> The boot receiver's code should not block for say, more than 5
> seconds, else, you get a time out. From your service, whatever you
> want to do, just spawn a thread. This should solve your problem.
>
> Your logcat has a lot of unwanted logs. In your receiver class, try to
> do some logs. If you see them in your log cat, then everything is
> fine.
>
> Kumar Bibekhttp://tech-droid.blogspot.com
>
> On Jan 13, 8:13 am, Ian <pale.cold.f...@gmail.com> wrote:
>
>
>
> > What I see in all my sims when the emulator starts is this pop-up:
> >   "process android.process.media is not responding"
> >    which I click on "wait" and then the debugger connects to my main
> > Activity.
>
> > Also, I just reran and saw BOOT_COMPLETED broadcast "timeout":
>
> >   01-12 21:57:54.916: WARN/ActivityManager(65):
> >   Timeout of broadcast BroadcastRecord{438ebcc8
> > android.intent.action.BOOT_COMPLETED} -
> > receiver=android.os.binderpr...@43843438
> >   01-12 21:57:55.286: INFO/ActivityManager(65):
> >   Annotation: Broadcast of Intent
> > { act=android.intent.action.BOOT_COMPLETED
> > cmp=com.android.providers.downloads/.DownloadReceiver }
>
> > is the above supposed to happen?
>
> > I tried increasing the memory of the AVD but that didn't do anything.- Hide 
> > quoted text -
>
> - Show quoted text -
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to