android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter_files"/>
</service>
- <provider android:name="cp" android:enabled="true" android:syncable="true" android:exported="false" android:label="@string/sync_string_files" android:authorities="org.owncloud.files"></provider>
+ <provider android:name="cp" android:enabled="true" android:syncable="true" android:exported="false" android:authorities="org.owncloud" android:label="@string/sync_string_files"></provider>
<activity android:name=".authenticator.AuthenticatorActivity"></activity>
- <provider android:label="@string/sync_string_contacts" android:name="cp2" android:syncable="true" android:enabled="true" android:exported="false" android:authorities="org.owncloud.contacts"></provider>
+ <provider android:label="@string/sync_string_contacts" android:name="cp2" android:syncable="true" android:enabled="true" android:exported="false" android:authorities=""></provider>
<service android:name=".syncadapter.ContactSyncService" android:exported="true">
<intent-filter>
<action android:name="android.content.SyncAdapter"></action>
<!-- for the SyncAdapter. -->
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
- android:contentAuthority="org.owncloud.files"
+ android:contentAuthority="org.owncloud"
android:accountType="owncloud"
android:supportsUploading="true"
/>
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
- Log.i("asd", data+"");
}
@Override
public class ProviderMeta {
- public static final String AUTHORITY_FILES = "org.owncloud.files";
+ public static final String AUTHORITY_FILES = "org.owncloud";
public static final String DB_FILE = "owncloud.db";
public static final String DB_NAME = "filelist";
public static final int DB_VERSION = 1;
cursor.getColumnIndex(ContactsContract.Contacts._ID));
String lookup = cursor.getString(
cursor.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY));
- Log.d(TAG, "Found Contact id: " + id + " with lookupkey: "+lookup);
try {
FileInputStream fis = getContactVcard(lookup);
lookup+
".vcf"
);
-
byte[] b = new byte[fis.available()];
fis.read(b);
query.setEntity(new ByteArrayEntity(b));
HttpResponse response = fireRawRequest(query);
-
if(201 != response.getStatusLine().getStatusCode()) {
syncResult.stats.numIoExceptions++;
}
}
}
}
-
}
protected Uri getUri() {