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. I want to run my application in system process instead of application

And that's a good thing... prevent some junk app from taking down your
phone and forcing a reboot.


2. suggestion for keyboard

One thing that WinMo did correctly, is that it allowed you to select
an input type (writing, onscreen keyboard, etc) and stick with it.  It
remembered what you were using last.  The new software keyboard (Thank
you!) is great, but it would be better if you didn't have to mess with
toggling as much.

I work out six days a week, and I use the website to
record my progress.  My workouts are logged into fields and then they
graph them for me, it's really a cool website.  Anyway, all of what
I'm inputting when I record my progress is numbers.  Weight, miles,
minutes, reps --- all numbers.  So every time I enter a field, the
software keyboard pops up and it's all letter keys, so I have to
toggle to numbers.  No big deal so far, right?  Well, today, for
example, my workout consisted of 40 fields.  That means I opened the
software keyboard and had to then toggle to number keys 40 times. Even
when I was in one field and then tapped into the one next to it the
keyboard refreshed itself and came back up as letters.  Tap, toggle,
type.  Tap, toggle, type, at least 40 times today in the space of an
hour.  When I had winmo, the first time I toggled to numbers, but
afterwards when I moved into a new field, the keyboard might disappear
for a second and reappear but it would remember that I was on the
number keypad and come back up with that keypad.

I would not suggest adding a row of numbers to the onscreen keyboard.
The keyboard already takes up enough room.

I would just add a checkbox in the keyboard settings that says
"remember keyboard previous state" or "allow sticky toggle" or
something.  Some people might not do as much numerical entry as I do,
but if you want android to be able to handle spreadsheets (google
docs) this is something that will definitely need to be addressed on
the keyboard at some point.  Luckily I have the G1, so the hardware
keyboard is perfectly fine.  But for devices that don't have that
option, the ability to not have the keyboard reset as you move from
field to field would be helpful.

One other thing I noticed, the suggested words section doesn't seem to
know it's own family.  I was typing in my email address and it never
once suggested "gmail" while I typed.

Thank you, thank you, thank you.
You don't know how much I appreciate you guys coming in and giving
both Mac and Microsoft a run for their money.  You guys do great work,
and I tell people all the time "It's not a matter of *IF* Google will
improve or update it's products, it's a matter of *how soon?* "

3. Check Download freeware for you

4. SDK 1.5 CPU usage

5. Unbale to opem IM app.

6. Identifying HSDPA usage

7. Receiving Changes to the Phone state