• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to listen in a BroadcastReceiver (onReceive) ether Auto-sync data is turning on/off ?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to monitor the state of Auto-sync data is turning on/off in BroadcastReceiver.
How to get status of Auto-sync data in onReceive method via intent/context?
What will be action name in the manifest to monitor the status of Auto-sync data ?

Here is my AutoSyncReceiver code.

Here is my manifest code.
 
Ranch Hand
Posts: 606
11
Android Python Open BSD VI Editor Slackware
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
not clear to me, are you maybe speaking over a sync adapter?
 
Hasnain Ahmad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Giovanni Montano wrote:not clear to me, are you maybe speaking over a sync adapter?



I want to check if the user change the state of Auto-sync data, I want to listen it, bound the state until pattern is true.
Like

Assume that firstly Auto-sync data is enable
In showPatternDialog I have dialog with that shows pattern if pattern is valid then,
I will disable it using this code.

Assume that firstly Auto-sync data is disable
In showPatternDialog I have dialog with that shows pattern if pattern is valid then,
I will enable it using this code.
 
Giovanni Montano
Ranch Hand
Posts: 606
11
Android Python Open BSD VI Editor Slackware
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot help you, I would use a Sync Adapter to manage that.

https://developer.android.com/training/sync-adapters/running-sync-adapter.html
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic