BroadcastReceiver and onRestart

by RyJan » Sat, 07 Mar 2009 10:53:19 GMT


Sponsored Links
 I have an app that has an integrated BroadcastReceiver to handle
incoming calls.  That BCR interacts with the NotificationManager to
post text to the notification bar on the top of the screen.

In previous versions it seemed that when the user would use the
Notification drag-down to get into my App, the onCreate method would
be called essentially re-initializing my app.

In 1.1 this doesn't seem to happen, i need to manually refresh my app
to list new data.

I was curious if its was ok to override the OnRestart() method in my
activity to refresh my data list?

or is there a better way to let my activity know through the
BroadcastReceiver that it needs to look for new data?

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. newbie problem

Hi all
I am new to Android . I installed  everything as per android
developers pre-requisites in my linux machine . I created a hello-
world application as per the android-dev  specification . Everything
worked smoothly , only for the fact that the instead of seeing a small
grey box with hello-world on it , I see an emulator with only ANDROID
written on it and nothing else . On the right hand side there are
buttons and on the left there is a grey box with only ANDROID  written
on it . Anybody can help me out about my problem?

--

2. I have a factory G2 - and want to upgrade the software - help?

You need to call t-mobile for updates.




> 

3. WiFi behavior/policy while device is asleep

4. Porting Ogre to Android

5. Paging chapter SBY

6. DOM, SAX or XMLPullParser ? Any suggestions ?

7. NexusOne OTA update (Dari Twitternya Amon_RA)