Haven't tried, but it seams that the solution can be found here:

http://stackoverflow.com/questions/5276032/connectivity-action-intent-received-twice-when-wifi-connected

-Roland

2015-06-04 13:19 GMT+03:00 Rahul Kaushik <[email protected]>:

> Hello Team,
>
> i am using broadcastreceiver to check if user is online or not,once user
> get online i want to run  a service,
> Problem is broadcastreceiver is running 2 times
>
> MainfestFile
> <receiver android:name="com.fc.utils.AutoSyncRec" >
>             <intent-filter>
>                 <action
> android:name="android.net.conn.CONNECTIVITY_CHANGE" />
>
>             </intent-filter>
>         </receiver>
>
> In BroadcastReceiver
>
> Intent i = new Intent(context, AutoSync.class);
>         context.startService(i);
>
> PLease suggest
>
> Thanks
> RK
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to