How about adding your own alias action, and broadcasting that from another app?

13 февраля 2012 г. 18:52 пользователь Ali Chousein
<[email protected]> написал:
> Hi,
>
> I have a broadcast receiver which is registered to
> ConnectivityManager.CONNECTIVITY_ACTION. I'm looking for a simple way
> to test my implementation. Issuing the command "adb shell am broadcast
> -a android.net.conn.CONNECTIVITY_CHANGE" makes the broadcast receiver
> get notified. What is missing is the NetworkInfo class which is
> retrieved through
> "(NetworkInfo)intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO)".
> Does anybody have experience or good suggestions how to pass
> NetworkInfo together with "adb shell am broadcast -a
> android.net.conn.CONNECTIVITY_CHANGE"?
>
> Thanks all in advance,
> -Ali
>
> --
> 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 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

Reply via email to