upload android base code part7
This commit is contained in:
parent
4e516ec6ed
commit
841ae54672
25229 changed files with 1709508 additions and 0 deletions
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2010, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:text="@string/invite_contact_description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:id="@+id/invite_contact_uri"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
|
@ -0,0 +1,112 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2010, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<ScrollView
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="5dip"
|
||||
android:paddingBottom="13dip"
|
||||
android:paddingLeft="20dip"
|
||||
android:paddingRight="20dip">
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dip" />
|
||||
<TextView
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textStyle="bold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/login_activity_username_label" />
|
||||
<EditText
|
||||
android:id="@+id/username_edit"
|
||||
android:singleLine="true"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="250dip"
|
||||
android:scrollHorizontally="true"
|
||||
android:capitalize="none"
|
||||
android:autoText="false"
|
||||
android:inputType="textEmailAddress"
|
||||
android:text="user" />
|
||||
<TextView
|
||||
android:id="@+id/username_fixed"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:singleLine="true"
|
||||
android:layout_marginTop="2dip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textStyle="bold"
|
||||
android:singleLine="true"
|
||||
android:layout_marginTop="2dip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/login_activity_password_label" />
|
||||
<EditText
|
||||
android:id="@+id/password_edit"
|
||||
android:singleLine="true"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="250dip"
|
||||
android:scrollHorizontally="true"
|
||||
android:capitalize="none"
|
||||
android:autoText="false"
|
||||
android:password="true"
|
||||
android:inputType="textPassword"
|
||||
android:text="test" />
|
||||
<TextView
|
||||
android:id="@+id/message_bottom"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="5dip" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
<FrameLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#c6c3c6"
|
||||
android:minHeight="54dip"
|
||||
android:paddingTop="4dip"
|
||||
android:paddingLeft="2dip"
|
||||
android:paddingRight="2dip">
|
||||
<Button
|
||||
android:id="@+id/ok_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:minWidth="100dip"
|
||||
android:text="@string/login_activity_ok_button"
|
||||
android:onClick="handleLogin" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:text="@string/view_group_description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:id="@+id/view_group_uri"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
BIN
android/development/samples/SampleSyncAdapter/res/raw/img1.jpg
Normal file
BIN
android/development/samples/SampleSyncAdapter/res/raw/img1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- Font size used for the contact name in the editor -->
|
||||
<dimen name="contact_name_text_size">26sp</dimen>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Font size used for the contact name in the editor -->
|
||||
<dimen name="contact_name_text_size">18sp</dimen>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,132 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2010, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources
|
||||
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Label for this package -->
|
||||
<string
|
||||
name="label">Sample SyncAdapter</string>
|
||||
|
||||
<!-- Permission label -->
|
||||
<string
|
||||
name="permlab_samplesyncadapterAuthPassword">access to passwords for Sample SyncAdapter accounts</string>
|
||||
<!-- Permission description -->
|
||||
<string
|
||||
name="permdesc_samplesyncadapterAuthPassword">Allows applications direct access to the passwords for the
|
||||
Sample SyncAdapter account(s) you have configured.</string>
|
||||
|
||||
<!-- Permission label -->
|
||||
<string
|
||||
name="permlab_samplesyncadapterAuth">view configured accounts</string>
|
||||
<!-- Permission description -->
|
||||
<string
|
||||
name="permdesc_samplesyncadapterAuth">Allows applications to see the usernames (email addresses) of
|
||||
the Sample SyncAdapter account(s) you have configured.</string>
|
||||
<string
|
||||
name="notification_login_error">Touch to sign into your Sample SyncAdapter account.</string>
|
||||
|
||||
<!-- Title string for Login activity-->
|
||||
<string
|
||||
name="ui_activity_title">Sign-in</string>
|
||||
<!-- Message shown in progress dialog while app connects to the server -->
|
||||
<string
|
||||
name="ui_activity_authenticating">Authenticating\u2026</string>
|
||||
|
||||
<!-- AuthenticatorActivity -->
|
||||
<skip />
|
||||
<!-- Label above username EditText -->
|
||||
<string
|
||||
name="login_activity_username_label">Username</string>
|
||||
<!-- Label above password EditText -->
|
||||
<string
|
||||
name="login_activity_password_label">Password</string>
|
||||
<!-- Button to sign in after entering username and password -->
|
||||
<string
|
||||
name="login_activity_ok_button">Sign in</string>
|
||||
|
||||
<!-- Message shown in dialog if the username or password is invalid. -->
|
||||
<string
|
||||
name="login_activity_loginfail_text_both">The username or password isn\'t valid. A Sample SyncAdapter account is
|
||||
required. Please try again. </string>
|
||||
<!-- Message shown in dialog if the password is invalid -->
|
||||
<string
|
||||
name="login_activity_loginfail_text_pwonly">You entered the wrong password or your account has changed.
|
||||
Please re-enter your password.</string>
|
||||
<!-- Message shown in dialog to prompt the user for their password -->
|
||||
<string
|
||||
name="login_activity_loginfail_text_pwmissing">Type the password for this account.</string>
|
||||
<!--
|
||||
Message shown if the provided account doesn't support the current
|
||||
activity.
|
||||
-->
|
||||
<string
|
||||
name="login_activity_newaccount_text">Sign in to your Sample SyncAdapter account. </string>
|
||||
|
||||
<!-- Button that takes the user to the "sign in" screen -->
|
||||
<string
|
||||
name="sign_in_button_label">Sign in</string>
|
||||
<!-- Button for going to the previous screen or step -->
|
||||
<string
|
||||
name="back_button_label">Back</string>
|
||||
<!-- Button to cancel the current operation -->
|
||||
<string
|
||||
name="cancel_button_label">Cancel</string>
|
||||
<string
|
||||
name="profile_action">Sample profile</string>
|
||||
<string
|
||||
name="view_profile">View Profile</string>
|
||||
|
||||
<string name="header_account_type">SampleSync contact</string>
|
||||
|
||||
<string name="label_name">Name</string>
|
||||
<string name="label_phone_home">Home Phone</string>
|
||||
<string name="label_phone_mobile">Mobile Phone</string>
|
||||
<string name="label_phone_work">Work Phone</string>
|
||||
<string name="label_email">Email</string>
|
||||
<string
|
||||
name="menu_done">Done</string>
|
||||
<string
|
||||
name="menu_cancel">Cancel</string>
|
||||
|
||||
<!-- Strings for contacts.xml -->
|
||||
<skip />
|
||||
|
||||
<!-- The label of the button to add contact to this contact provider -->
|
||||
<string name="invite_action_label">Add to Sample SyncAdaper</string>
|
||||
|
||||
<!-- The description for the invite contact flow -->
|
||||
<string name="invite_contact_description">Congratulations! The user wants to add the contact
|
||||
to the amazing Sample SyncAdapter social network. If this was a real app, it should now
|
||||
make best efforts to add the contact to this network. This would probably involve
|
||||
looking up the person on the network, inviting if he is not there already and syncing
|
||||
the new contact down.
|
||||
|
||||
Ideally, when the user gets back to the People app, the new contact should already
|
||||
be there, enriching the original contact.
|
||||
|
||||
This is the information we got to lookup the contact:</string>
|
||||
|
||||
<!-- The label of the button to view a group -->
|
||||
<string name="view_group_action_label">Show sample group details</string>
|
||||
|
||||
<!-- The description for the view group button -->
|
||||
<string name="view_group_description">This would now show the details of the group.
|
||||
|
||||
This is the group uri:</string>
|
||||
|
||||
</resources>
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<ContactsAccountType
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
|
||||
<ContactsDataKind
|
||||
android:mimeType="vnd.android.cursor.item/vnd.samplesyncadapter.profile"
|
||||
android:icon="@drawable/icon"
|
||||
android:summaryColumn="data2"
|
||||
android:detailColumn="data3"
|
||||
android:detailSocialSummary="true" />
|
||||
|
||||
</ContactsAccountType>
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!--
|
||||
The attributes in this XML file provide configuration information
|
||||
for the SampleSyncAdapter.
|
||||
|
||||
See xml/syncadapter.xml for greater details, but this version of
|
||||
the file specifies that uploading (and thus editing) is supported.
|
||||
-->
|
||||
|
||||
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:contentAuthority="com.android.contacts"
|
||||
android:accountType="com.example.android.samplesync"
|
||||
android:supportsUploading="true"
|
||||
android:userVisible="true"
|
||||
/>
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<ContactsAccountType
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
inviteContactActivity="com.example.android.samplesync.activities.InviteContactActivity"
|
||||
inviteContactActionLabel="@string/invite_action_label"
|
||||
viewContactNotifyService="com.example.android.samplesync.notifier.NotifierService"
|
||||
viewGroupActivity="com.example.android.samplesync.activities.ViewGroupActivity"
|
||||
viewGroupActionLabel="@string/view_group_action_label"
|
||||
>
|
||||
|
||||
<ContactsDataKind
|
||||
android:mimeType="vnd.android.cursor.item/vnd.samplesyncadapter.profile"
|
||||
android:icon="@drawable/icon"
|
||||
android:summaryColumn="data2"
|
||||
android:detailColumn="data3"
|
||||
android:detailSocialSummary="true" />
|
||||
|
||||
</ContactsAccountType>
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2010, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- The attributes in this XML file provide configuration information -->
|
||||
<!-- for the Account Manager. -->
|
||||
|
||||
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accountType="com.example.android.samplesync"
|
||||
android:icon="@drawable/icon"
|
||||
android:smallIcon="@drawable/icon"
|
||||
android:label="@string/label"
|
||||
/>
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2010, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<ContactsSource
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
|
||||
<ContactsDataKind
|
||||
android:mimeType="vnd.android.cursor.item/vnd.samplesyncadapter.profile"
|
||||
android:icon="@drawable/icon"
|
||||
android:summaryColumn="data2"
|
||||
android:detailColumn="data3"
|
||||
android:detailSocialSummary="true" />
|
||||
|
||||
</ContactsSource>
|
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2010, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!--
|
||||
The attributes in this XML file provide configuration information
|
||||
for the SampleSyncAdapter.
|
||||
|
||||
We have two versions of this file - one here, and one in the
|
||||
xml-v11 directory (Honeycomb and beyond). This one specifies that
|
||||
the syncadapter does not support uploading (and thus the contacts
|
||||
associated with this syncadapter are not editable). The SDK 11
|
||||
version of the file specifies that the adapter DOES support
|
||||
uploading, so the contacts on SDK 11 and greater are editable.
|
||||
-->
|
||||
|
||||
<sync-adapter xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:contentAuthority="com.android.contacts"
|
||||
android:accountType="com.example.android.samplesync"
|
||||
android:supportsUploading="false"
|
||||
android:userVisible="true"
|
||||
/>
|
Loading…
Add table
Add a link
Reference in a new issue