On Sun, Oct 3, 2010 at 10:27 PM, Prajakta Shitole <[email protected]>wrote:
> is it possible to paste ur code here..
>
> what code do u hv in ur onResume?? may be there is some problem with ur
> onResume as that gets called if the activity is brought to the front again..
>
@Override
public void onResume() {
IntentFilter netFilter;
netFilter=new IntentFilter(serverService.New_NET_STATUS);
newNetReceiver =new NetStatusReceiver();
registerReceiver(newNetReceiver,netFilter);
super.onResume();
}
just Register listeners for the broadcast receivers .Nothing more
>
>
> On Sun, Oct 3, 2010 at 1:19 PM, tarek attia <[email protected]>wrote:
>
>>
>>
>> On Sun, Oct 3, 2010 at 10:14 PM, Prajakta Shitole
>> <[email protected]>wrote:
>>
>>> have u checked the value of noConnectionAlert.. as it is a null pointer
>>> exception it is possible that the value is null..
>>>
>>
>> It's an object of Runnable .
>>
>>
>>
>>> On Sun, Oct 3, 2010 at 1:10 PM, tarek attia <[email protected]>wrote:
>>>
>>>>
>>>>
>>>> On Sun, Oct 3, 2010 at 9:14 PM, fernando <[email protected]>wrote:
>>>>
>>>>> It seems that you might have problems somewhere on onResume or onPause
>>>>> or onNewIntent. Do you have logcats showing the stack trace of the
>>>>> exception?
>>>>>
>>>>>
>>>> The LogCat as follow :-
>>>>
>>>>
>>>> 10-02 16:18:17.067: ERROR/AndroidRuntime(511): Uncaught handler: thread
>>>> Background exiting due to uncaught exception
>>>> 10-02 16:18:17.077: ERROR/AndroidRuntime(511):
>>>> java.lang.NullPointerException
>>>> 10-02 16:18:17.077: ERROR/AndroidRuntime(511): at
>>>> hello.world.Example.Test$2.run(Test.java:144)
>>>> 10-02 16:18:17.077: ERROR/AndroidRuntime(511): at
>>>> java.lang.Thread.run(Thread.java:1060)
>>>>
>>>>
>>>> Line 144 contains call for the thread handler to handle gui operation as
>>>> follow :-
>>>>
>>>> guiHandler.post(noConnectionAlert);
>>>>
>>>> What could be the issue,however if i waited then reopened it again it
>>>> will work fine .
>>>>
>>>>
>>>> On Oct 2, 3:56 pm, tarek attia <[email protected]> wrote:
>>>>> > Hi all,
>>>>> >
>>>>> > I have a weird behaviour on T-mobile ,as I made an application,then
>>>>> > after closing it and reopen it immediately after closing ,a message
>>>>> > box telling me that the application had to stop and fatal error
>>>>> > occurred,then I reopen it again after this,it opens normally
>>>>> >
>>>>> > Any Idea ? Do I miss something ?
>>>>> >
>>>>> > Regards,
>>>>> > --
>>>>> > tarek
>>>>>
>>>>> --
>>>>> 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]<android-developers%[email protected]>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/android-developers?hl=en
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> tarek
>>>>
>>>> --
>>>> 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]<android-developers%[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]<android-developers%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>>
>>
>> --
>> tarek
>>
>> --
>> 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]<android-developers%[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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
tarek
--
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