Don't try to update an app widget every 10 seconds. Do something more coarse-grained (e.g., every minute or more) and use AlarmManager.
2011/7/12 GuiZ <[email protected]>: > How i can solve this or bypass? > > > > On 11 Lug, 19:29, Mark Murphy <[email protected]> wrote: >> Sbarazzarsi del gestore dal widget app.BroadcastReceivers non è >> possibileutilizzare in modo affidabile le cose che continuerà dopo OnReceive >> () (o, nelcaso di un, AppWidgetProvider onUpdate ()). >> >> >> >> >> >> >> >> >> >> On Mon, 11 luglio, 2011 alle 11:40,guiz<g.camerli...@ gmail.com> ha >> scritto:> Ciao a tutti,> ho un problema di fermare e gestore (provo anche un >> timer che ho l'> stesso problema) che io chiamo in un widget.Cerco di >> rimuovere richiamate, ma> la curva non si ferma. >> >> > Crea gestore >> >> Handler Handler> privato = Handler new (); >> >> > Privato Runnable eseguibile = new Runnable () {> @ Override> public void >> > run () {> RunEdt ();> handler.postDelayed (questo, 10000); >> >> >}>}; >> >> > Aggiorna inizio >> >> > Handler.postDelayed (eseguibile, 100); >> >> > Io cerco di fermarlo OnDeleted >> >> > Public void OnDeleted (contesto Context, int [] appWidgetIds) {> >> > handler.removeCallbacks (eseguibili);>} >> >> > Qualche idea? >> >> > -> Hai ricevuto questo messaggio in quanto sei iscritto a Google> Gruppi >> > gruppo "Gli sviluppatori Android".> Per postare in questo gruppo, invia >> > un'email a [email protected]> Per annullare l'iscrizione >> > a questo gruppo, invia un'email a> androide-sviluppatori + >> > [email protected]> Per maggiori opzioni, visita questo gruppo >> > all'indirizzo>http://groups.google.com/group/android-developers?hl=en >> >> -Mark Murphy (a Commons >> >> _Android Versione Programmazione Tutorials_ Disponibile 3.5! > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

