google-code-export / freeboxmobile

Automatically exported from code.google.com/p/freeboxmobile
0 stars 0 forks source link

Mettre le timers de relève automatique des news dès l'installation #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Il faudrait que dès l'installation (ou la réinstallation) du module, la 
relève automatique des news se fasse.

Pour cela, il faut utiliser un intent :
<receiver android:name=".OnUpgradeReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data android:scheme="package" android:path="org.madprod.freeboxmobile" />
</intent-filter>
</receiver>

Pas certain que ca fonctionne pour la première install, mais pour une mise à 
jour ca fonctionne (si on ne fait pas ca, les timers sont annulés lors d'une 
mise à jour et ne sont pas réinstallé avant le BOOT_COMPLETED déjà 
présent dans le manifest

Original issue reported on code.google.com by olivier.rosello@free.fr on 23 Sep 2010 at 8:49

GoogleCodeExporter commented 9 years ago

Original comment by clement....@gmail.com on 23 Sep 2010 at 4:53

GoogleCodeExporter commented 9 years ago

Original comment by olivier.rosello@free.fr on 27 Sep 2010 at 8:31