sync

Dropbox Sync API Android - Updating Cached Files

折月煮酒 提交于 2019-12-01 10:41:08
问题 I am facing trouble in updating the existing cached file within my Android Application. for(DbxFileInfo fInfo : fileList) { Log.d(TAG, "File Path = "+fInfo.path.toString()); String fileName = fInfo.path.getName().trim(); try { DbxPath tempFilePath = new DbxPath(fInfo.path.toString()); DbxFile tempFile = mDbFileSystem.open(tempFilePath); if(tempFile.getSyncStatus().isCached) { Log.v(TAG, "File is already cached !"); if(tempFile.getSyncStatus().isLatest) { Log.v(TAG, "File's Latest Version is

Why does an ad hoc ipa fail to install on one device, yet succeed on another with the same iOS version?

自古美人都是妖i 提交于 2019-12-01 03:43:47
I have a client whose iPad 2 (iOS 5.0) is able to install an ad hoc ipa, yet his iPhone (also iOS 5.0 -- same exact build) receives the following msg on his device when attempting to install with his Windows iTunes: "iTunes sync. [app name] failed to install" I've worked with this guy for a long time testing many versions of this app and he's never had this problem. All his devices install or none. How can I solve this? As per Trott's suggestion (above), I'm moving the solution from my comment to a bona fide answer so that others can easily find the solution: Problem solved. Device id was

SyncAdapter not being called depending on order of Account setup calls

百般思念 提交于 2019-12-01 02:29:57
I've come across some slightly odd behaviour with my SyncAdapter. The first time I install my app (after uninstalling with adb), it launches and creates an account. Depending on the ordering of some statements (see below), my SyncAdapter's onPerformSync() will never be called; my account under "Accounts and sync" shows the "sync in progress" icon spinning indefinitely. If I then uncheck the sync checkbox next to my app's account, and then recheck it, my onPerformSync() is called immediately. This causes my SyncAdapter to never be called. "sync in progress" icon spins forever, unless I uncheck,

Why does an ad hoc ipa fail to install on one device, yet succeed on another with the same iOS version?

落花浮王杯 提交于 2019-12-01 00:59:23
问题 I have a client whose iPad 2 (iOS 5.0) is able to install an ad hoc ipa, yet his iPhone (also iOS 5.0 -- same exact build) receives the following msg on his device when attempting to install with his Windows iTunes: "iTunes sync. [app name] failed to install" I've worked with this guy for a long time testing many versions of this app and he's never had this problem. All his devices install or none. How can I solve this? 回答1: As per Trott's suggestion (above), I'm moving the solution from my

How to make Multiple ajax requests in a loop return values sequentially?

本小妞迷上赌 提交于 2019-11-30 23:57:34
I have to make a series of Ajax requests on a loop. Around 100 of them. And each request returns a JSONP variable. I extract data from the JSON and keep appending the value into a div. The problem is that I want the div to be appended with data in the order of function call. i.e sequentially. Now i get a different order everytime i refresh the page depending on the order in which the request completes. Here's my code. $.each(elem, function (index, item) { $.ajax({ type: 'post' , url: moviesSearchUrl + '&q=' + encodeURI(item) + '&page_limit=1', dataType: "jsonp", async: false, success:

SyncAdapter not being called depending on order of Account setup calls

不问归期 提交于 2019-11-30 22:08:09
问题 I've come across some slightly odd behaviour with my SyncAdapter. The first time I install my app (after uninstalling with adb), it launches and creates an account. Depending on the ordering of some statements (see below), my SyncAdapter's onPerformSync() will never be called; my account under "Accounts and sync" shows the "sync in progress" icon spinning indefinitely. If I then uncheck the sync checkbox next to my app's account, and then recheck it, my onPerformSync() is called immediately.

Calendar sync with custom add account in android

依然范特西╮ 提交于 2019-11-30 18:24:35
问题 I want to add events in calendar, i am able to add account but i don`t know how to sync with calendar. should i create a new calendar id ? how to verify event is created on calendar? 回答1: Check out this Google code project which will guide you. In that project there is a method which will give you id of account id associated with Calender. private int ListSelectedCalendars() { int result = 0; String[] projection = new String[] { "_id", "name" }; String selection = "selected=1"; String path =

What is the iOS (or RubyMotion) idiom for waiting on a block that executes asynchronously?

↘锁芯ラ 提交于 2019-11-30 16:43:09
I have been pulling my hair out for weeks on this niggling problem, and I just can't find any info or tips on how or what to do, so I'm hoping someone here on the RubyMotion forums can help me out. Apologies in advance if this is a little long, but it requires some setup to properly explain the issues. As background, I've got an app that uses a JSON/REST back-end implemented ina Rails app. This is pretty straightforward stuff. The back-end is working fine, and up to a point, so is the front end. I can make calls to populate model objects in the RubyMotion client and everything is great. The

How to use DataItem of Android Wear

丶灬走出姿态 提交于 2019-11-30 15:07:11
问题 I want to sync preference between handhelds and wearables. I implement sample code on handheld app. PutDataMapRequest dataMap = PutDataMapRequest.create("/count"); dataMap.getDataMap().putInt(COUNT_KEY, count++); PutDataRequest request = dataMap.asPutDataRequest(); PendingResult<DataApi.DataItemResult> pendingResult = Wearable.DataApi .putDataItem(mGoogleApiClient, request); System.out.println(dataMap.getDataMap().getInt("COUNT_KEY"));//print 3 And then implement below code on wearable app.

Notification callback in iOS when iTunes sync/file transfer is complete

↘锁芯ラ 提交于 2019-11-30 15:05:22
I have searched for how to receive callbacks in iOS5 when the file system has changed. I've found the following sample from Apple's site, but it only notifies the given delegate when a file is removed/created. DirectoryWatcher class in the DocInteraction sample app http://developer.apple.com/library/ios/#samplecode/DocInteraction/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010052 Is there an API call that I can make to receive a "sync is complete" callback event? Note, a user might transfer large files and I need to know when the transfer is complete. Also, in iOS5, iTunes sync can occur