Android account management and synchronization mechanism, android Account Management

Source: Internet
Author: User

Android account management and synchronization mechanism, android Account Management

When using it, I found that I had established my own independent account management. At the same time, in the contact, I could directly click send information, view the circle of friends, and other functions, which made it quite convenient.

Then we did some research, mainly from two aspects.

1. Account Management is the implementation mechanism and synchronization implementation method.

This look: http://blog.csdn.net/swust_chenpeng/article/details/39401497

Or directly: http://blog.csdn.net/w2865673691/article/details/37403147

Http://blog.csdn.net/u010002056/article/details/9210157

2. About syncAdapter

For more information, see SampleSyncAdapter In sdk sample.

Possible import errors:

Permission is only granted to system apps android. permission. WRITE_SECURE_SETTINGS

Window-> Preferences-> Android-> Lint Error Checking.

In the list find an entryID = ProtectedPermission. Set the Severity to something lower than Error. This way you can still compile the project using Eclipse.

Http://stackoverflow.com/questions/13801984/permission-is-only-granted-to-system-app


Http://blog.csdn.net/xjanker2/article/details/6146289

When uploading data to gae, it is mentioned that moudle cannot be found: "A model moudle cannot be found. You need to create a _ init _ in the model __. is a python module. If you encounter this problem, I hope it will help you."

However, this project must be used with the server, and the server must be built on the Google App Engine. Therefore, you must first create an app on gae and remember the appId. This is because the code on samplesyncadapter_server is implemented based on python. Download and decompress the code from the App Engine SDK for Python. for more information about how to use it, see:

Http://blog.sina.com.cn/s/blog_bd0b53180101e9rw.html

Http://lampeter123.iteye.com/blog/390536

Http://www.qrong.com/archives/495

Http://ego008.iteye.com/blog/554757

Http://bbs.chinaunix.net/thread-1505938-1-1.html

Let's just look at it. Then we can use the appcfg under the google_appengine directory (sdk installation directory. the py command uploads the server code to gae. The command is appcfg. py update \ workspace \ authenticatoracti.pdf \ samplesyncadapter_server \. However, when uploading files, an error occurs: appcfg. py: 2416 An error occurred processing file '': HTTP Error 401: Unauthorized. aborting ., I don't know why, but later on in appcfg. py is followed by a parameter named oau22. the specific reason is unknown. You can see that the syncadapter page is displayed.



Then you can use it with the client.

Finally, if you want to click an item in the contact to jump to the specified intent, you can configure it in manifest. xml:

 <activity            android:name=".authenticator.AuthenticatorActivity"            android:label="@string/ui_activity_title"            android:theme="@android:style/Theme.Dialog"            android:excludeFromRecents="true"            android:configChanges="orientation">            <intent-filter>                 <action                    android:name="android.intent.action.VIEW" />            <data                    android:mimeType="vnd.android.cursor.item/vnd.samplesyncadapter.profile"/>                <category android:name="android.intent.category.DEFAULT" />            </intent-filter>        </activity>


You must add the <category/> label. Otherwise, the intent cannot be called in the contact. Click the corresponding mineType type to jump to the corresponding Activity.

The contacts synchronized from age are read-only. Why ???


The pop-up dialog box in the figure shows the Activity popped up by clicking View Profile (theme is in the dialog style)




How to remove the management account in "account and synchronization" on the android smart Server

You should say it's a Google account. Just quit or log out of the account.
 
What if I disable my account and synchronize background data on my Android phone?

No effect. All functions are properly used.
The time setting does not matter with the background synchronization. You only need to set the time to "automatically get the network value.
If your QQ is offline, no messages will be sent, which is equivalent to disconnecting QQ. Why is it offline ..

However, as far as I know, some large games can only be played with background data, but mobile phones cannot. Rest assured

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.