I want to get notification on lost of Mobile network (Voice) not Wi-fi
(Data).

Here is the code, If gives notification for Wi-fi (Data) network
events but not for Mobile network.

Menifest :

     <uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE"/>

    <application android:icon="@drawable/icon" android:label="@string/
app_name">

                <receiver android:name=".notifier">
                        <intent-filter>
                            <action 
android:name="android.net.conn.CONNECTIVITY_CHANGE" />
                        </intent-filter>
                </receiver>

        </application>

Java :

public class notifier extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {

        Toast toast = Toast.makeText(context, "Network Changed !!",
Toast.LENGTH_LONG);
        toast.show();
    }
}

Please tell me how can I get notification for Mobile network (Voice).

-- 
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