1. 程式人生 > >Using your Google Account in the Android Emulator

Using your Google Account in the Android Emulator

Whenever you need to access the People or Calendar app and want to add contacts or events you need an account. On the emulator though no account exists by default. So in this blog entry I am going to show you how to add your Google account to your emulator.

Update: Google has dropped support for the ActiveSync protocol (Exchange support)
for new accounts.

For existing accounts the method in this post still works. For new accounts that's no longer the case. Should I find a solution for new accounts, I will update this post.

First of all you have to go to the settings and select "Accounts & sync":

Settings - Selecting "Accounts & sync"
Settings - Selecting "Accounts & sync"

You see the list of accounts - which in the emulator should be emtpy:

Accounts & sync - Showing no accounts
Accounts & sync - Showing no accounts

After you have clicked on "Add account" you will see the selection of sync providers available. In the emulator the following two should be listed. The first one is the Exchange sync adapter, the second one is for email only. So you should select the "Corporate" type:

Add an account - Selecting the account type
Add an account - Selecting the account type

In the next step you have to enter your Google-account credentials as usual:

Add an Exchange account - Entering your credentials
Add an exchange account - Entering your credentials

The next step is not that straightforward. To use your Google account as an Exchange account you first have to change the presented domain username to your email-address again. Android by default chooses another name based on the mail-address you entered before. But this default domain name does not work here.

You also have to change the server to "m.google.com":

Account setup - Entering the account details
Account setup - Entering the account details

Now if you hit "Next" you are nearly done. You might want to check if the correct check marks are set, but the defaults should normally suit you well.

Account settings - Selecting sync settings
Account settings - Selecting sync settings

In the last step you can change the name of this account and after hitting "Next" once again, you are done.

Account setup - Setting the name of the account
Account setup - Setting the name of the account

Your newly created account is now listed in "Accounts & sync" screen and the initial synchronization has already been started. If you have mails or appointments you should notice notifications popping up soon. And your contacts and events should show up in the respecting apps.

Accounts & sync - Showing the new account
Accounts & sync - Showing the new account

From now on you can use the Calendar app to create and edit events on your device and have them synced with your account.

If you have any other suggestions that might help or tips on how to improve development on Android, please let me know in the comments section.

相關推薦

Using your Google Account in the Android Emulator

Whenever you need to access the People or Calendar app and want to add contacts or events you need an account. On the

Xcode No account for team "". Add a new account in the Accounts preference pane or verify that your accounts have valid credenti

問題背景 Xcode報錯誤資訊:No account for team "QMP96B5DPW". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.

Ask HN: What Do You Do When Your Phone Is in the Shop for Repair?

I pull out an old phone from my drawer, swap the SIMs and live in the past for a couple of days. With most of my old smartphones I need

Android Developers Blog: Control Flow Integrity in the Android kernel

Posted by Sami Tolvanen, Staff Software Engineer, Android Security Android's security model is enforced by the Linux kernel, which makes it a temptin

Build your own NDK from the Android source tree

Let’s say you want to port a Linux tool to Android. You got the latest NDK and you tried building the Linux tool you want to port. You too

Integrating Google Sign-In into Your Android App

試了一下,在程式裡加入 Gogole Sign-in,還滿簡單的,大約半小時~1小時就可以完成範例程式。試了一下 getID() 可以拿到一串好長好長的id, getEmail() 可以拿到user 的 email, 神奇的是程式不需要存取網路。 最佳的入門教學,應該是官方的這一篇: 先 git clo

First Look at Android Emulator 2.0, the biggest and the best update yet in years

I believe that all Android developers would agree that the biggest thing announced in Android Dev Summit 2015 was Android Studio 2.0 and

Android M及更高版本中使用 Settings.System 丟擲異常"You cannot keep your settings in the secure settings. "

最近專案需要從Android L遷移到Android M。在升級的過程中,遇到了如下的問題。  在專案中,有一些公共的資料是存放在存放在 系統資料庫SettingsProvider的System表中  在Android L中的使用方法是:  當需要寫資料時呼叫: Sett

Transfer learning & The art of using Pre-trained Models in Deep Learning

tran topic led super entire pooling file under mina 原文網址: https://www.analyticsvidhya.com/blog/2017/06/transfer-learning-the-art-of-fine

32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one of the following

environ 解決 一行 body blog _for side bit allow ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do

AndroidStudio Frameworks detected: Android framework is detected in the project Configure

ima gpo detect framework size div 打開 錯誤 onf 出現這個問題應該是文件沒有用正確的方式打開。 遇到這種情況,就要去檢查下載的這個包的結構。 我的這個文件明顯真正的是下面這個文件夾,如果把整個當做一個android文

How to edit codes on the server which runs jupyter notebook using your pc's bwroser

repl lan HA sin AR make you 技術 des If you don‘t use jupyter, you may have to edit your source codes on your pc and upload them to your se

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

The 問題 lin issue androi 回來 mips lam 上傳 原文:No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android今天把

Android Studio - No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

錯誤提示: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android 錯誤原因:確實是缺少對應的檔案,我出現這種情況是升級了NDK之後。 解決辦法:把缺失檔案放到NDK

Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your My

轉自:https://blog.csdn.net/haha_66666/article/details/78444457 Query : select * from order LIMIT 0, 1000 Error Code : 1064 You have an error in your

Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

https://www.jianshu.com/p/fd3d49c7f1f8 通過Android Studio 的Sdk Manager安裝NDK,安裝完之後編譯失敗,報錯資訊如下:  Error:No toolchains found in the NDK toolchains folder

No toolchains found in the NDK toolchains folder for ABI with prefix mips64el-linux-android

版權宣告:本文為恩城原創文章,未經博主允許不得轉載。如有問題請關注https://blog.csdn.net/AliEnCheng/article/details/84031161 問題復現 更新Android Studio完成時出現: 就是更新完studio後,ndk

Android studio 升級報錯No toolchains found in the NDK toolchains folder for ABI with prefix

ANDRID STUDIO 升級報錯 No toolchains found in the NDK toolchains folder for ABI with prefix 當出現 No toolchains found in the NDK toolchains folder for A

Error:Could not find common.jar (android.arch.lifecycle:common:1.1.0). Searched in the following loc

1.原因 谷歌引起的,在引用庫中 compile 'com.android.support:appcompat-v7:26.+' compile 'com.android.support:design:26.+' 就是這兩個的原因,谷歌必須要求指定版本,不能帶 + 號,也

Found 2 versions of android-support-v4.jar in the dependency list,The type android.support.v4.app.Fr

1、 Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at t