No, not quite...

The boot up of the phone is a special case scenario.  I'm saying that in
that scenario you can't rely on the broadcast system, so you need to come
up with another code path to manually get your activity's receiver code
executed.

I would take the code that is executed in your receiver and move it to a
new method in your activity class. Make the receiver call that method. Then
when your intent with special data comes in (it can be as simple as a
boolean value), you can call that same method and get the same result by
bypassing the broadcast mechanism.

I can explain in more detail later if that doesn't make sense (I'm on my
phone and helping my son with his homework right now), but hopefully that
gets you on the right path.

On Tue, Jan 19, 2016, 8:13 PM NuffsaidM8 <mcditt...@gmail.com> wrote:

> I apologize for not taking the time to work out my issues all myself. I'm
> a little out of my league here and am on a tight schedule. I am still
> slightly confused about a few things, such as:
>
> Why do I need to pass data through to the activity? All I want to do right
> now is start it up so that when I broadcast an intent with a filter
> recognized by the other receiver, it executes the code in the receiver in
> the activity class. I think you are insinuating that I could check for the
> data and once I can read it I can send the intent. Is this correct?
>
> --
> 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 android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/6eafbab4-64bd-4358-91b4-f9b132741f9e%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/6eafbab4-64bd-4358-91b4-f9b132741f9e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAOq06s_XQ3Jiym0AoQGw_mDoAGKcPLbg7A81p56XqMMFBn%2BL6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to