602 questions
0
votes
0
answers
59
views
How to get updated information from a ContentProvider - Android Development
Android provides the framework to get on device information about calendars, that I can used to see the calendars and events that I've created in Google Calendar.
fun getUpcomingEvents(calendarId: ...
1
vote
0
answers
526
views
Achieving Data Synchronization in Android App with Kotlin - Best Approach and Option?
I am currently developing an Android application using Kotlin and need to implement data synchronization between my app and a server. I want to achieve the following functionalities:
Backup Data: ...
0
votes
0
answers
136
views
Sync Contact Adapter
I want to display my application name and icon on the user contact details like whatsapp icon.I will try to syncAdapter for this purpose.But i can not get in output.If anyone can you help me?
...
2
votes
0
answers
90
views
Android Contacts not working with custom account_type on all contacts
I m trying implement code to show my application in native Contacts app like WhatsApp, Skype and other calling app. So user can user my application instead of native Dialer app. I tried to implement ...
0
votes
2
answers
210
views
In Android, I'm unable to set a Contacts sync adapter to be read-only
My app syncs contacts with a custom server, with a lot of custom properties. Because of that, it has a built-in contact editor for its own contacts, and I don't want the native Contacts app to allow ...
0
votes
1
answer
108
views
How to allow periodic SyncAdapter to run when app is in 'force stopped' state
I have created a sample app here: https://github.com/lukewo/AndroidSyncApp
Is there a way to allow the SyncAdapter to run after the app has been put into a force stopped state or is this not possible ...
1
vote
1
answer
64
views
Why does the doc do not use `this` i.e `Service` for the argument for `Context` in the documentation?
What is the usefulness of having Service inherit from Context if it does not use it?
For example from the android docs for sync adapter
we see:
public class SyncService extends Service {
// ...
0
votes
1
answer
149
views
SyncAdapter onPerformSync not called for MediaProvider
I've trying to acquire changes from android media storage. I've created GallerySyncAdapter with next resource:
<?xml version="1.0" encoding="utf-8"?>
<sync-adapter xmlns:...
1
vote
1
answer
121
views
Syncing with server in specific interval at non-active hours
I want to sync the data with server between 12 am - 6 am only.
I have solutions like WorkManager and sync adapter at my disposal.
But some manufactures put restrictions on these work managers and ...
2
votes
0
answers
318
views
How to sync contacts like WhatsApp and Telegram in Android Studio
I am building a Messaging Application Exactly Like WhatsApp, The Technologies I have used are
Socket.io, FCM, Node.js, MongoDB. Until now I have achieved Chatting and Notification functionality
But ...
1
vote
1
answer
525
views
SyncAdapter to receive chat messages?
For my chat app I am looking for a good way to sync messages while the app is in background.
At the moment I have a websocket. When the app comes to foreground, messages get synced. This makes the app ...
1
vote
1
answer
396
views
Should I use SyncAdapter or AlarmManager to sync critical data with server in 2020?
I have some critical data to be synced with the server every half an hour or so. I tried using WorkManager but turns out that it cannot run reliably even if I have REQUEST_IGNORE_BATTERY_OPTIMIZATIONS....
6
votes
0
answers
153
views
ContentResolver requestSync not triggering SyncAdapter onPerformSync when wifi not available but cellular data is on samsung device
The problem is as follows. I have a working SyncAdapter and ContentResolver setup. The problem that SyncAdapters onPerformSync is not triggered happens when I have wifi turned on but the wifi does not ...
1
vote
0
answers
383
views
Android Coroutines in SyncAdapter being Interrupted
I'm having a tough time figuring out why do I observe InterruptedExceptions in the SyncAdapter#onPerformSync method.
Brief intro
My project originally contained only Java code and had a working ...
1
vote
1
answer
896
views
Difference between Android Sync Manager and Work Manager
I want to know that what will be the best approach between Android sync manager and Work manager for doing background related periodic task? Is there any difference in performance?
1
vote
1
answer
934
views
Enable auto sync programmatically
I want to enable auto sync in account settings in my app programmatically. I've set up the SyncAdapter, declared it in manifest, I added account and after this action I tried:
ContentResolver....
0
votes
0
answers
140
views
SyncAdapter onPerformSync does not get called
I am developing an offline-first app that uses a SyncAdapter to load the data to a webserver. Basically, the data is saved to a local SQLite database using greenDao library. Everytime data is added or ...
1
vote
0
answers
159
views
Sync not happening when app process is not running
I have scheduled a sync using SyncAdapter that runs for every 1hour. Post the first successful sync (time t1), I closed the app. After one hour, the sync had been canceled by SyncManager and did not ...
5
votes
1
answer
3k
views
Flutter - Is there anything similar to sync adapter in flutter
I wanted to sync my local DB with my server. In Android we have sync Adapter that does the work and make life easier. I would wonder if we have something similar in Flutter or how can I do that in ...
0
votes
1
answer
65
views
How to trigger onPerformSync when a certain variable value changes
I'm developing an app which contains updating profile picture. What I'm doing is the following: I'm storing the user's profile URI using sharedPreferences, and when the user updates their profile ...
13
votes
2
answers
2k
views
Flutter Syncing LocalDB With RemoteDB
I have data stored locally in sqlite. I have a remote MySql server. In android I could setup SyncAdapter to handle the syncing between the localdb and the remotedb.
When a record is saved locally ...
0
votes
0
answers
156
views
How can I have faster sync with API?
I implemented AbstractThreadedSyncAdapter in Android for sync data with the server. But Android prevent less than 15 min period for the automatic sync in API > 24.
How can I implement shorter sync ...
3
votes
0
answers
268
views
Auto sync using Sync adapter not working on android pie & mi devices
I have use sync adapter for data synchronization and make code for periodic sync in 5 minutes interval but onPerformSync() method not called in this interval on android os version 8 & 9 & mi ...
0
votes
1
answer
525
views
Android Sync DB Data to Server in a Separate Thread
I have use-case in my app where in for every minute lot of data gets stored in local database from a Producer thread in my app. Now i need a Sync Thread which independently checks local database for ...
0
votes
1
answer
184
views
Adding custom rows to contact details, only works with one contact
In an android app, I added a custom row to contact details with a custom mimetype to open my app on a specific activity.
It works well if I do it to one contact, but if I try to add it to all my ...
1
vote
0
answers
156
views
database is locked (code 5) after using ContentProvider
I'm using Room Persistence as a database in my project.
For using Android SyncAdapter, I have to use ContentProvider to access the database.
Now after a few weeks, I see database is locked (code 5) ...
0
votes
0
answers
145
views
No Edit option for my application created contacts exported to native contacts in Phonebook
I am working on an application which allows you to create a contact in the app and you can export it to native contacts DB using contact provider and also i am syncing my contacts to a server using my ...
4
votes
0
answers
417
views
Sync App Database with Google Drive - Algorithm / Logic
I have an app that allows users to sign in with google account. A user may be logged in with same account on multiple android devices at the same time. The app on these devices maintain a local ...
1
vote
1
answer
264
views
How to make new contacts exported from an app to Phonebook as EDITABLE
I have an application which has it's own sets of contacts which is coming from a server. I am exporting this contact to the native contacts database. So that i can access it from the phonebook. ...
1
vote
0
answers
360
views
Android Sync Adapter - Cannot explicitly add accounts of type error
I'm trying to create an Android Sync Adapter by following the Android Guides here.
However, it is returning the following error:
Caused by: java.lang.SecurityException: uid 10081 cannot explicitly
...
0
votes
0
answers
67
views
Can I use field variable in Android sync adapter which will be modified by the onperform sync method?
I have an Android Sync adapter to push the local data to server using volley request. I am using a integer variable lastid for checking that last synced data row. Is it okay to use a variable in ...
1
vote
0
answers
194
views
How to make requests to the Sync Adapter run in the order of a call after connecting to the network
I use sync adapter to sync local database with server database. Request is called when device`s data changes to save changes on the server. It can be done when device has no network connectivity. ...
0
votes
2
answers
1k
views
Edit Call history names
I've implemented a contacts app, and I would like my application's contact names to be displayed in the device's call log history (Phone app) in case I receive/make a call to these numbers. How could ...
0
votes
1
answer
48
views
How to show multiple times icon in contact detail for my app icon like whatsapp
I am trying to show multiple rows as my app also support chat and call services. I want to show same like whatsap is doing as shown in below image.
I have implemented the sync adapter and all the ...
0
votes
1
answer
64
views
Infinite loop of SyncAdapter
Yesterday I tested my app in some Virtual devices in Genymotion, and I realized some times, App sends infinite sync requests to the server on some devices (all of them were API<21). What's the ...
0
votes
1
answer
290
views
Update RecyclerView UI after SyncAdapter changes data in Kotlin
I need to refresh my RecyclerView after the SyncAdapter finish a task, When I click some item from my RecyclerView I send the data to a Webserver, my server returns some data and save it in a local db ...
1
vote
1
answer
76
views
Continuous execution without service and GUI app
If i close app(System.exit) and Service can do background task( with "android:process", so called another process).
But what if i don't even use Service, what can be next alternative?
Thread can not ...
4
votes
0
answers
639
views
SyncAdapter onPerformSync calls only for first time
I am building a sync adapter for my app where I want to show notification to users after querying for change in the database every 1 hour even if app will be killed.
I have created the sync adapter ...
0
votes
1
answer
194
views
Android SyncService destroyed exactly after 120 seconds
can someone explain me why SyncService is destroyed exactly after 120 seconds after it is created?
Also strange thing is that SyncAdapter method onPerformSync is still running after SyncService is ...
0
votes
1
answer
337
views
Why ContentResolver.cancelSync() doesn't cancel SyncAdapter syncing process?
How to cancel SyncAdapter syncing process? ContentResolver.cancelSync() doesn't cancel it.
I need it because I sync a thousand contacts (in onPerformSync()) from the app to Android Contact book (...
1
vote
0
answers
232
views
Android Sync Adapter not working on sdk 24 and above
I am new to android. And trying to add sync function in my application.
I checked the sync adapter to update app server with local SQLite DB. Checked from: https://github.com/codepath/android_guides/...
1
vote
0
answers
189
views
Failed to fire broadcast receiver in Android Oreo
Using SyncAdapter and AbstractThreadedSyncAdapter
https://riptutorial.com/android/example/32303/sync-adapter-with-every-min-requesting-value-from-server-
I have registered receiver in manifest and ...
0
votes
0
answers
57
views
implement syncAdapter to multiple activity in same application
I am facing a problem for a week almost I may have downgrade but if it comes with help it does not bother me. I followed a tutorial that allows me to use Android SyncAdapter to synchronize data ...
0
votes
1
answer
445
views
AbstractAccountAuthenticator allow only 1 account
I have implemented AbstractAccountAuthenticator as a requirement to use SyncAdapter hower my application is supporting only 1 account at a time.
When the user is trying to add another account via ...
2
votes
2
answers
2k
views
New contact creating rather than updating existing contact
I am integrating my app with android default Contacts application.I would like to show an option "xyz using MyApp" inside every Contacts Detail.I am able to see my app in Accounts Section with an ...
1
vote
0
answers
60
views
sync adapter turned off internet is not there
I have Periodic interval of 60 Seconds for Every 60 Sec Task should be Updated.Sync Adapter works fine when Internet is there but my issue is When Internet is Disconnected Sync Adapter stops ...
1
vote
1
answer
752
views
How to check if sync adapter is running and the interval at which it is scheduled, using adb shell?
I would like to know if there is a way to list the syncs that are currently active for an android app and where does android store the interval at which these syncs are scheduled?
I want to get this ...
0
votes
1
answer
912
views
Xamarin receive a push message that trigger action, without notification
I'm creating a Xamarin (android) app that I want to receive a push message and trigger a update in the application, not show a notification.
I first tested the OneSignal like this:
...
-1
votes
1
answer
67
views
Is there any way to know who is calling the sync adapter?
I have Content provider and sync adapter in my project.
In my project first i'm going to fetch data from server and then i'm storing it in my database sqlite.
Now i'm coming to my issue. Actually i ...
-1
votes
1
answer
93
views
Best way to start a task when connectivity is available again? (API 24 or higher)
As mentioned in Android 7.0 changes, apps targeting Android API 24 or higher do not receive CONNECTIVITY_ACTION broadcasts if they declare their broadcast receiver in the manifest.
I implement a sync ...