dashman wrote:
> ok - i was able to get rid of the thread.
>
> in the handler - i conditionally call
>
> this.sendMessageDelayed( android.os.Message.obtain( this, 0, sim ), 1000 );
>
>
> next issue.
>
> i've got the handler defined in the activity class as
>
> final android.os.Handler simHandler = new android.os.Handler() { ... };
>
> i get the following warning:
>
> This Handler class should be static or leaks might occur
> (com.example.MyActivity.1)
>
> If i make it static - i can't call an Activity instance method.
>
>
do in your activity:
simHandler = new android.os.Handler(this)
and let your activity implements Callback iface
pskink
--
--
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
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.