sync

How to Sync an NSDocument from iPad/iPhone to Mac osx with iCloud

坚强是说给别人听的谎言 提交于 2019-12-13 02:36:26
问题 How to Sync an nsdocument from ipad/iphone to Mac osx with icloud I managed to get it working! from Mac osx to iPhone/iPad but not from iPad/iPhone to Mac osx Here's my code from the subclassed nsdocument file on osx: Header file: #import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h> @interface subclassedNSDocument : NSDocument @property (strong) NSData *myData; @end Implementation file: - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError { BOOL

Iphone syncing via cable

拈花ヽ惹草 提交于 2019-12-13 02:33:58
问题 I've made an IPhone App that communicates to a service by calling a webservice and exchanging data as xml. For this to take place, there should be WIFI access. What I'm trying to do now is to do the same but in places without WIFI access. The only way I can think of doing this would be through the USB cable (dock cable?). Unfortunately, no amount of searching online has revealed a way to do this. Is it even possible? Does anyone know how to do this? Some pointers on at least where to look for

Add badge and intent to QuickContactBadge with SyncAdapter

筅森魡賤 提交于 2019-12-13 02:15:03
问题 I have a SyncAdapter and contact syncing works fine. Only i want a nice badge added to the QuickContactBadge in the contact application. How can i get this to work? 回答1: I found the solution. You basically tell, in your manifest, which activity can handle contacts which are merged. When doing the merging you have chosen a mime type, use this mime type in an for an activity you choose: <intent-filter android:icon="@drawable/hyves"> <action android:name="android.intent.action.VIEW" /> <category

Queries with empty values from parse.com

℡╲_俬逩灬. 提交于 2019-12-13 02:00:43
问题 Somehow I couldn't find the answer to this. I am running a query to parse.com and want to download all of the rows that contain an empty value in one of my columns. ParseQuery<ParseObject> query = ParseQuery.getQuery(Constants.myTestTable); query.whereEqualTo("MyColumn", ""); When I upload a csv to parse where MyColumn does not have any value the column cells on parse show "(undefined)" and I cannot retrieve the data. However, when I delete all content in the cell I am able to retrieve it. I

Xamarin.Forms Background Thread

百般思念 提交于 2019-12-12 22:18:30
问题 I'm trying to get a really simple application running listing google Task. I have a SQLite local db I'd like to sync / try syncing at regular interval with Google's server. I was thinking of simply running a simple background thread so it'd work easily on all devices. Problem comes down creating that background thread in a PCL project (Xamarin.Forms) I can't seem to find a proper way of making one. Currently I just have a second thread running as such: private bool Sync() { //Does stuffs }

AccountManager blockingGetAuthToken gets stuck

痞子三分冷 提交于 2019-12-12 20:15:40
问题 I've been using the SampleSyncAdapter as a base to create my own SyncAdapter. It seems to work well to add a new account, but once I want to get the authtoken with AccountManager.blockingGetAuthToken(... it gets stuck and then throws an OperarationCanceledException after a few minutes. Does anyone have an Idea of what could be wrong here? The code is almost the same as the sample except I am authenticating towards my own server. 05-24 23:00:23.258: ERROR/SyncAdapter(4961):

Google contacts api (gdata) syncs low resolution photos

久未见 提交于 2019-12-12 14:45:20
问题 I'm using google contacts api (gdata) to set a contact's photo in google contacts. I'm using fiddler and I see that the request is sent according to Google Contacts Examples but the photo downloaded back from google is always 96x96. The code I'm using to update and download the photo is: public void UpdateUserPhoto(Contact contact, Stream photo) { _contactsRequest.SetPhoto(contact, photo); } public static void DownloadPhoto(ContactsRequest cr, Contact contact) { if (contact.PhotoEtag == null)

How to Sync tables between two databases in both directions - SQL Server 2008 R2

纵饮孤独 提交于 2019-12-12 10:04:30
问题 We are running SQL Server 2008 R2. Our operational software runs against this database and we are going to run two separate instances of the operational software accessing two separate databases. Both databases are on the same SQL Server. There are a list of 26 tables, out of 200+ in the database, that will need to be synced across the two separate databases. The tables can be accessed from either database and insert/update/deletes must be synced across both databases. The sync needs to

Android Backup API

被刻印的时光 ゝ 提交于 2019-12-12 08:35:28
问题 Can anyone explain what exactly the Android Backup API is used for? I have read Using the Backup API and Data Backup from the Developer Docs, but it is still unclear to me. When is data backed up & restored? Specifically in these situations: A user installs my app on Device 1, data is backed up, and the user then installs my app on Device 2. Is user data from Device 1 automatically put on Device 2? If so, does this occur when the app is installed or when it is launched? My app is installed on

How use Sync Framework to sync tables that are recreated with mostly the same data?

怎甘沉沦 提交于 2019-12-12 06:32:15
问题 I already did a program that uses Sync Framework to sync some tables from Azure to OnPremise (Local Server). I made the program following this example: How to: Configure and Execute Synchronization with SQL Azure. It works incredible fast with tables that his changes are new rows. The new rows are sync perfect. The first sync takes hours but now all the syncs take seconds. But we have other tables that are deleted and recreated with mostly the same data (99% is the old and 1% is new data).