Actually, I guess the key was realizing I could have multiple intent-filter 
tags.  Adding the latter one resolved the issue:

<https://lh4.googleusercontent.com/-GSsL3J2AkgQ/UYgJ68MEJ3I/AAAAAAAAAcg/80M0xd3PDVE/s1600/intentfilter.png>



I guess I had previously been swapping between the two as I needed.


Thanks.





On Monday, May 6, 2013 2:34:04 PM UTC-5, bob wrote:
>
> So, I have a broadcast receiver that is supposed to start an activity on 
> device boot:
>
> public class Boot_Receiver extends BroadcastReceiver
> {
>
> @Override
> public void onReceive(Context context, Intent intent)
> {
> Intent activity_intent = new Intent(Main_Activity.class.getName());
> activity_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> context.startActivity(activity_intent);
> }
>
> }
>
>
> I think it used to work, but now it gives an error.  I can't seem to make 
> heads or tails of the error:
>
>
> <https://lh4.googleusercontent.com/-WeZCMwK-87E/UYgFlPDjJ2I/AAAAAAAAAcU/Vd-AhGl9h2g/s1600/bootissue2.png>
>
>
>
> Any ideas?
>
> Thanks.
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to