tarikiest Posted May 27, 2012 Share Posted May 27, 2012 Bonjour; je veux savoir comment utiliser ACTION_USER_PRESENT pour activer une activity après le déverrouillage du système d'android. merci Link to comment Share on other sites More sharing options...
oqs Posted May 28, 2012 Share Posted May 28, 2012 je suppose que tu dois utiliser un receiver! Link to comment Share on other sites More sharing options...
tarikiest Posted May 28, 2012 Author Share Posted May 28, 2012 merci pour votre réponse , mais............ reciever ??? veuillez bien éclairé que veut dire reciever; donner un petite exemple , ou m'envoyer vers un tuto merci Link to comment Share on other sites More sharing options...
oqs Posted June 1, 2012 Share Posted June 1, 2012 par exemple pour voir que mes moyens de connections ont changés j'utilise: public static void setConnectionListener(Context context){ BroadcastReceiver mConnReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { boolean noConnectivity = intent.getBooleanExtra(ConnectivityManager.EXTRA_NO_CONNECTIVITY, false); } }; context.registerReceiver(mConnReceiver,new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION)); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.