Resolvi com SharedPreferences
Obrigado
Gorio
Em 28 de janeiro de 2016 09:23, Gorio <goriofab@gmail.com> escreveu:
Bom dia Srs. e Srtas.Preciso obter o momento exato em que uma conexão de wifi for conectada e também quando for desconectada, porém adicionando o seguinte broadcast estou tendo muitas chamadas no mesmo broadcast.<receiver android:name=".broadcast.WifiBroadcastReceiver">
<intent-filter>
<action android:name="android.net.wifi.STATE_CHANGE" />
</intent-filter>
</receiver>Log do broadcast ta assimCONEXÃO -> DESCONEXÃO01-28 09:14:24.004 Wifi log: [type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: 0x, roaming: false, failover: false, isAvailable: true]01-28 09:14:24.017 Wifi log: [type: WIFI[], state: DISCONNECTED/SCANNING, reason: (unspecified), extra: 0x, roaming: false, failover: false, isAvailable: true]01-28 09:14:40.360 Wifi log: [type: WIFI[], state: CONNECTING/CONNECTING, reason: (unspecified), extra: 0x, roaming: false, failover: false, isAvailable: true]01-28 09:14:40.422 Wifi log: [type: WIFI[], state: CONNECTING/CONNECTING, reason: (unspecified), extra: "BRCDIR5G", roaming: false, failover: false, isAvailable: true]01-28 09:14:40.437 Wifi log: [type: WIFI[], state: CONNECTING/AUTHENTICATING, reason: (unspecified), extra: "BRCDIR5G", roaming: false, failover: false, isAvailable: true]01-28 09:14:40.578 Wifi log: [type: WIFI[], state: CONNECTING/AUTHENTICATING, reason: (unspecified), extra: "BRCDIR5G", roaming: false, failover: false, isAvailable: true]01-28 09:14:40.601 Wifi log: [type: WIFI[], state: CONNECTING/CONNECTING, reason: (unspecified), extra: "BRCDIR5G", roaming: false, failover: false, isAvailable: true]01-28 09:14:40.644 Wifi log: [type: WIFI[], state: CONNECTING/OBTAINING_IPADDR, reason: (unspecified), extra: "BRCDIR5G", roaming: false, failover: false, isAvailable: true]01-28 09:14:41.648 Wifi log: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "BRCDIR5G", roaming: false, failover: false, isAvailable: true]01-28 09:14:43.102 Wifi log: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: "BRCDIR5G", roaming: false, failover: false, isAvailable: true]01-28 09:15:18.454 Wifi log: [type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: true]01-28 09:15:18.516 Wifi log: [type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: true]01-28 09:15:18.554 Wifi log: [type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: true]01-28 09:15:18.600 Wifi log: [type: WIFI[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: <unknown ssid>, roaming: false, failover: false, isAvailable: false]Alguma sugestão para este caso ?ObrigadoAtenciosamente
Gorio
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
0 comentários:
Postar um comentário