Preferencias compartidas dentro de broadcastreceiver
En mi aplicación,quiero usar Preferencias compartidas dentro de un receptor de transmisión...Pero no puedo acceder al método getPreferences() dentro...
SharedPreferences sharedPreferences = getPreferences(MODE_PRIVATE);
No puedo llamar con el objeto context...cualquier otro método???
41
Author: subrussn90, 2012-01-31
1 answers
Puede usar el Contexto desde onReceive(Context arg0, Intent arg1)
de BroadReceiver.
@Override
public void onReceive(Context arg0, Intent arg1) {
SharedPreferences prefs = arg0.getSharedPreferences("myPrefs",
Context.MODE_PRIVATE);
}
87
Author: Lalit Poptani,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-07-25 05:23:23
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-07-25 05:23:23