Hi All,

Below is the error log..

***********************************************
I/pppd    ( 1874): ppp/ip-up script ended
D/pppd    ( 1830): Script /etc/ppp/ip-up finished (pid 1854), status = 0x0
D/Tethering( 1245): MasterInitialState.processMessage what=3
D/AndroidRuntime( 1336): Shutting down VM
W/dalvikvm( 1336): threadid=1: thread exiting with uncaught exception
(group=0x4008c560)
E/AndroidRuntime( 1336): FATAL EXCEPTION: main
E/AndroidRuntime( 1336): java.lang.RuntimeException: Error receiving
broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE } in
com.android.systemui.statusbar.policy.StatusBarPolicy$1@405e5218
E/AndroidRuntime( 1336):     at
android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
E/AndroidRuntime( 1336):     at
android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 1336):     at
android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 1336):     at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 1336):     at
android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 1336):     at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1336):     at
java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 1336):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 1336):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 1336):     at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 1336): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 1336):     at
com.android.systemui.statusbar.policy.StatusBarPolicy.updateConnectivity(StatusBarPolicy.java:910)
E/AndroidRuntime( 1336):     at
com.android.systemui.statusbar.policy.StatusBarPolicy.access$1200(StatusBarPolicy.java:84)
E/AndroidRuntime( 1336):     at
com.android.systemui.statusbar.policy.StatusBarPolicy$1.onReceive(StatusBarPolicy.java:575)
E/AndroidRuntime( 1336):     at
android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
E/AndroidRuntime( 1336):     ... 9 more
D/dalvikvm( 1336): GC_CONCURRENT freed 267K, 48% free 2989K/5703K, external
1046K/1509K, paused 2ms+19ms
D/Tethering( 1245): MasterInitialState.processMessage what=3
E/MountService( 1245): Network Not Connected .......................
W/MountService( 1245): Insertion mount failed (-4)
E/MountService( 1245): Network Not Connected .......................
W/MountService( 1245): Insertion mount failed (-4)

****************************************************
--------------
Regards

Vikas KM
http://arowboat.org



On Fri, May 4, 2012 at 4:45 PM, Vikas KM <[email protected]> wrote:

> HI Robert...
>
> Below is the code....
>
> **************************************
>
>             ConnectivityManager CM;
>             CM = (ConnectivityManager)mContext.getSystemService(Context.
> CONNECTIVITY_SERVICE);
>             CM.reportInetCondition(CM.TYPE_MOBILE, 100);
>
>             NetworkInfo ni;
>              //CM.setNetworkPreference(0);
>             //CM.setMobileDataEnabled(true);
>             //CM.setRadio(0, true);
>
>             SystemClock.sleep(3000);
>
>             Intent broadcastIntent = new Intent();
>             broadcastIntent.setAction("ConnectivityManager.
> CONNECTIVITY_ACTION");
>             if(broadcastIntent != null)
>                 mContext.sendBroadcast(broadcastIntent);
>
>             ni = CM.getActiveNetworkInfo();
>             if (ni != null && ni.isConnectedOrConnecting())
>                 Slog.e(TAG, "Network Connected .........................");
>             else
>                 Slog.e(TAG, "Network Not Connected
> .......................");
>
>
> ***************************************
>
>
> Is the above code right way of doing?
> I want apps to know that there is network.
>
> I am able to connect to internet through browser but the network icons are
> not up...
>
> Using Android version gingerbread..
>
> Any help in this regard will be grateful...
> --------------
> Regards
>
> Vikas KM
> http://arowboat.org
>
>
>
> On Mon, Apr 30, 2012 at 9:22 PM, Robert Greenwalt 
> <[email protected]>wrote:
>
>> Can you explain yourself a bit more?  How are you updating the
>> connectiivtyManager?  How is it returning null?
>>
>> On Wed, Apr 25, 2012 at 11:51 PM, Vikas KM <[email protected]> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to update the connectivity Manager saying that internet is
>>> available.. but its returning null.
>>>
>>> Any Help?
>>>
>>> --------------
>>> Regards
>>>
>>>
>>> Vikas KM
>>>
>>> --
>>> unsubscribe: [email protected]
>>> website: http://groups.google.com/group/android-porting
>>>
>>
>>
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to