Hi Noam,
I'd recommend taking a look at Megha's sample version:
http://groups.google.com/group/android-developers/msg/5a5dc19ae00eb25b
This is what I used as the basis for my map activity, and it solved a
lot of the problems I was having before. It's easier to use that as a
starting point and ad
Ok, but now it gives me this error:
Unable to pause activity [package]:
java.lang.IllegalArgumentException: Receiver not registered: [package]$
[IntentReceiver].
Why is this happening?
Thanks,
Noam.
On Apr 10, 8:14 am, cirion <[EMAIL PROTECTED]> wrote:
> You should UNregister the receiver in o
You should UNregister the receiver in onPause. Your activity is going
away, so you don't want to receive any more broadcasts.
On Apr 9, 1:10 pm, "Noam Habot" <[EMAIL PROTECTED]> wrote:
> Ok..this is my onPause:
>
> @Override
> public void onPause() {
> this.registerReceiver(this.myIn
Ok..this is my onPause:
@Override
public void onPause() {
this.registerReceiver(this.myIntentReceiver, this.myIntentFilter);
super.onPause();
}
It doesn't give the error I posted 2 minutes ago, but it gives the error
"error receiving broadcast null in [package]$[IntentRec
Now it tells me that the receiver isn't registered:
Unable to pause activity [package]:
java.lang.IllegalArgumentException: Receiver not registered: [package]$
[IntentReceiver].
Why is this happening?
Thanks,
Noam.
On Apr 9, 12:54 pm, cirion <[EMAIL PROTECTED]> wrote:
> Hi,
>
> unregisterRecei
Hi,
unregisterReceiver should definitely be called from onPause. onFreeze
will only get called if another Activity is starting and your own
Activity may be destroyed. In contrast, onPause will be called every
time your Activity stops displaying.
Hope this helps,
Chris
On Apr 9, 12:37 pm, "[EM
I don't have an onPause. Could this be the problem?
However, I have a onResume and a onFreeze:
@Override
public void onFreeze(Bundle icicle) {
this.unregisterReceiver(this.myIntentReceiver);
super.onFreeze(icicle);
}
@Override
public void onResume() {
su
Check if your onResume and onPause methods are called properly. There
are some bugs in the lifecycle model, sometimes onPauze will be called
but onResume isn't called when you go back to the activity so that
could generate some problems.
On Apr 9, 5:54 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
I tried emulator -wipe-data and it still doesn't work..Does anyone
have a suggestion?
Thanks,
Noam.
On Mar 13, 9:33 pm, cirion <[EMAIL PROTECTED]> wrote:
> Argh, never mind. This seems to be one of those problems that can be
> fixed with emulator -wipe-data.
>
> On Mar 13, 7:47 pm, cirion <[EMA
9 matches
Mail list logo