Android Emulator: Calendar application will not synchronize with google calendar - android

I would like to reopen this question since I am having the same problem:
Use Calendar within emulator Android 4.0 +
Namely, I see a Calendar application on virtual devices running android 4.0
or later (there is no calendar application on android 3.2 even though my physical
gingerbread phone has once such an app, which I find strange). However I am not
able to synchronize the data on the android 4.0 or later emulator with my google
account's calendar data. Here are the details:
I had created an Android 4.2.2 emulator and launched the calendar application
from within such an emulator. I want to sync my google account with the calendar
application. So I hit menu -> Settings -> ADD ACCOUNT. Nothing happens. So I tried
to hit menu -> Calendars to display -> Calendars to sync, but the list is empty
and hitting menu does not bring up a menu.
I suspected the problem was I needed google apis to work. So I created a new
4.2.2 virtual device with google apis. When I launched such emulator and then the
calendar application I got a screen saying "Make it Google", "Do you want to add
an existing account or create a new one?". Click on Existing. I entered my
sign in details. I click on the popup asking me to agree to google terms
of service, and I accepted. It then says "Signing in..." "This can take a few minutes."
The Backup and Restore screen shows up and I click forward and proceed. However I
do not see the contents of my google calendar's account on the android calendar.
When I launch the calendar application again it asks me once again to
"Make it Google" and enter my account information. If I enter the old
information it complains telling me I have already specified such an
account. However my google account's data does not show up in android calendar.
I cannot understand why or what I am doing wrong.
(Alas I do not have a 4.0+ phone to test with so I am stuck having to get
the emulator to work).
Thanks for your feedback,
Jason Posit

I know this is older, but I did find a solution. I was never able to get a Google account to work since Google blocks active sync on free accounts.
The solution for me was to signup for a free outlook.com account and use outlook.com's active sync settings.
The steps I followed are from my blog and are as follows:
Sign out for free account at outlook.com
Select a Corporate Account
Enter username such as email#outlook.com
Select Manual Setup
Select account type of “Exchange” (This will allow us to sync with active
sync)
Enter Server as s.outlook.com
Security type as SSL/TLS
Select next
Confirm settings.

As "Corporate Account" type isn't being provided in newer emulator images, one can install custom CalDAV adapter, which amusingly does work with Google's CalDAV interface.

Related

App Action Works on App Actions Test Tool But not On Google Assistant

I have cloned the project from https://github.com/actions-on-google/appactions-common-biis-kotlin. I made the package name of this project the same as my draft project in Play Console which has a temporary app name 'com.acesoft.actions (unreviewed)'. I can trigger the app actions with App Action Test Tool (AATT). If I set the Invocation Name to "test app" with AATT, it would work on my physical test device if I say "Open active tasks in test app". However, Google Assistant would not open the app when I say "Open active tasks in todo". Todo is the display name for the app. According to the documentation, the default invocation name is the display name of the app. The command "Open active tasks in todo" would result in a search in the web. What did I do wrong? How do I invoke the app actions without AATT?
I have also tried typing the following in Google Assistant:
"open active tasks in todo"
"open active tasks in actions" ("actions" is the last part of the temporary name)
All these commands would result in web searches instead of opening the app!
Can anyone help?
If your app is not published on the Play store, it definitely will not work. Google Assistant only formally recognizes apps that have been uploaded and have passed review. It works in the test tool because that tool establishes a temporary "preview" of how things will work if it were fully published.
Still, in some cases, Google Assistant is unable to match the name of the app as spoken to the name of the app as installed on the device. This situation is not possible to resolve on your own. What you will need to do is contact Google Assistant support and explain what you are trying to do. They might be able to make a change manually to the backend to enable this.
You can see someone else having a similar problem in this public bug. However, please do not file a new bug, and do not fill out the form unless your app is uploaded to Play. If your app is uploaded to Play, follow the instructions given in the last comment on that issue:
If your app is shipping on the Play store, then you can get support for this using this support form - you should choose "App Actions review" for now, and point out that you would like a manual mapping for your app. Don't worry about the actions console project ID - that is for another project.
For me it was enough to put my app into "internal testing" in the Play Console and then install the app on device through the test link that is provided by the Play Console. I could use Google Assistant and use the app name for invocation.

Import contacts from google account to Android Emulator

I'm using the Android Studio emulator, specifically a Pixel 2 emulator running Android 7.1.1 with Google APIs.
In my team we have a Google test account that has all sort of contacts that are useful for us for development and testing.
I have connected the emulator to this Google account (by going to Settings -> Accounts -> Add account -> Google) however I'm still unable to see the accounts associated with the Google test account in the device's "Contacts" app.
I've looked in account page and made sure that the syncing for "Contacts" is toggled on. I even tapped on "Sync now" but still I don't see any contacts in the "Contacts" app.
For comparison, we also have physical test devices in the team that are connected to this Google test account and there it works fine - the contacts are synced to the physical test device. So it seems to only be an issue with the Android Studio emulator (on GenyMotion emulator it also works).
How do I fix this issue?
I've attached two screenshots, one for the contacts app and the 2nd one for the Google account page.
In the 2nd screenshot there is a refresh icon appearing next to contacts, but no matter how many times I perform "Sync now" it doesn't disappear.

Not able to use GenyMotion 2.4.0 google Calendar

I am building an android app which needs to create a calendar event. I use the following code for this:
Intent calIntent = new Intent(Intent.ACTION_INSERT);
calIntent.setData(CalendarContract.Events.CONTENT_URI);
startActivity(calIntent);
The calendar even adding activity opens up but shows a dialog box-"Before you add a calendar event, you must add atleast one calendar event to your device and make a calendar visible"
So i add an account by entering my Google email id and password and i get the error:
Cant safely connect to server.(java.security.cert.CertPathValidator
Exception: trust anchor for certificate path not found.)
Anyone else who got this issue? how to get this to work?
You need to install the google play services in the genymotion virtual device in order to use your Google account for the calendar application.
To achive this purpose, follow this steps:
Download ARM Translation Installer v1.1
Download the correct GApps for your Android version. Here the last version for Android 5.1 or here the 4.4 version.
Open your Genymotion VM and go to the Homescreen, drag&drop the Genymotion-ARM-Translation_v1.1.zip onto the Genymotion VM window. It should say "File transfer in progress", once it asks you to flash it click 'OK'. When finish restart VM.
Once you're on the Homescreen again drag&drop the gapps-5.1-2015-04-20-15-56-24.zip (or whatever version you got) onto your VM, and click 'OK' when asked. Once it finishes, again Reboot your VM.
Now you can add your Google account in settings. After that you can use google services for apps that you have installed like Calendar.
An image of my virtual device with google acount working:
http://i.stack.imgur.com/4tQdK.png
Hope this helps!

ICS Emulator will not create Calendar Account

Please help. I absolutely need to be able to test the Calendar.contract provider in my app using the SDK emulator. Purchasing a $400 hardware device just to test is not a real option.
I have seen the posts that remind us that we need to target the Google API platform, which we have done. Next, I have seen a work around where it is suggested that we create a google account as an exchange account by specifying the m.google.com server and clicking "Accept all SSL". Unfortunately, that generates the error that:
You have typed an incorrect server address or the server requires a protocol version that Email doesn't support.
We created a basic Google account. However, the emulator still says we must create at least one calendar account and forces us into creating the Echange Account. According to the emulator, the account we did create as a Google account has no calendars associated with it, even though I can go to Google Calendar, access that account, and add items to a calendar.
Can anyone suggest a solution?
Thanks,

How to use and test the Android 4.0 Calendar API in the emulator?

Do most use real phones to test Google Account specific Android features? For example, I want to develop/test the Ice Cream Sandwich calendar api and in the emulator I can add a Google Gmail account to the operating system, but the calendars never seem to sync.
Here's a related post:
How to read and edit Android calendar events using the new Android 4.0 Ice Cream Sandwich API?
My question is how do you test it? I'd like to upgrade my nexus s phones and the galaxy 10.1 tablet but I'd also like to make sure the upgrade will be safe. It would be nice if the emulator could support limited sync'ing, etc.
Thanks.
One work around is to add you Google account as an Exchange account -- see http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=138636&topic=14299 for info.
Basically, enter your gmail address, but change the server it connects to to m.google.com and enable SSL.
I was never able to get a Google account to work since Google blocks active sync on free accounts.
The solution for me was to signup for a free outlook.com account and use outlook.com's active sync settings as I did not have access to an Exchange account.
The steps I followed are from my blog and are as follows:
Sign out for free account at outlook.com
Select a Corporate Account
Enter username such as email#outlook.com
Select Manual Setup
Select account type of “Exchange” (This will allow us to sync with active
sync)
Enter Server as s.outlook.com
Security type as SSL/TLS
Select next
Confirm settings.

Categories

Resources