Monthly Archives: March 2014

How to include all permissions in the Android manifest

March 31, 2014

If you wish your Android app to require all permissions then add this XML to your Android.manifest file: <uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” /> <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” /> <uses-permission android:name=”android.permission.ACCESS_LOCATION_EXTRA_COMMANDS” /> <uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” /> <uses-permission android:name=”android.permission.ACCESS_WIFI_STATE” /> <uses-permission android:name=”android.permission.ADD_VOICEMAIL” /> <uses-permission android:name=”android.permission.AUTHENTICATE_ACCOUNTS” /> <uses-permission android:name=”android.permission.BATTERY_STATS” /> <uses-permission android:name=”android.permission.BIND_ACCESSIBILITY_SERVICE” /> <uses-permission android:name=”android.permission.BIND_NFC_SERVICE” /> <uses-permission android:name=”android.permission.BIND_NOTIFICATION_LISTENER_SERVICE” /> <uses-permission android:name=”android.permission.BIND_PRINT_SERVICE” /> <uses-permission […]


ContentResolver.addPeriodicSync doesn’t work – never syncs

March 7, 2014

Probably you’ve followed Google’s Android sync adaptor training guide up to http://developer.android.com/training/sync-adapters/running-sync-adapter.html#RunPeriodic and are wondering why syncing never happens. There are two mistakes in the training guide as far as explaining how to make addPeriodicSync work: You must callĀ ContentResolver.setSyncAutomatically with true as the third (sync) parameter to enable syncing for your adaptor. The fourth (pollFrequency) […]