There is no Calendar in the Emulator - android-emulator

I am building an application that accesses the Facebook account and gets the events then add them to Android Calendar.
There is no calendar in the emulator.
We tried to setup the Calendar.apk but it did not work.
Any idea?
I want to add events to the calendar through code directly. Is it possible or I have to add them to the online google calendar?
Any API?!?

I believe Calendar is a part of Google Apps. And there's no GApps on emulator by default.
You can try this solution.
They're trying to get Android Market on their emulator, but I believe there's a Calendar and Mail and all other GApps all included in their OS image.

I also needed calendar on adnroid emulator. The solution was next:
download Calendar.apk (native android calendar)
install it wia adb (http://developer.android.com/guide/developing/tools/adb.html) with the command
adb -e install Calendar.apk

Related

Geo fence in Visual Studio Android Emulator

I am trying to see, if anyone was able to run Geo fence on visual studio android emulator. When I try to add a geo fence, it gives me a 1000 status code. I have played around with all the location settings option in the emulator with not much luck. However, maps and other location tracking is working fine.
I have tried this code on android sdk emulator and device and it works fine there.
Looking for some inputs. Thanks in advance!
If you are relying on the geofencing API from Google Play Services, then this doesn't work because the VS Emulator for Android doesn't include the Google Play libraries out of box. The same workarounds for installing Google Play Services on other emulators (eg. Xamarin Player) may work on the VS Emulator for Android too.
I had a similar problem, but on Android Studio Emulator. Not sure if this will work for you, but just in case:
I solved it going to "Google Settings" > Location > Mode
And changing it from "Device only" to "High Accuracy".
This way my app finally worked.
Hope it helps.

Android activity for User option in Jelly Bean?

Could someone tell me what is the activity of User option in Android 4.2 tablet?
I want to start this intent by "adb shell am" command but i don't know that activity. Does it exist or not?
After direct check I confirm am is available on my Google Galaxy Nexus, Android 4.1.2. This is quite close to 4.2.
adb shell am prints the two screens of the built-in documentation that may help.

Running Android app in PiP mode

Is it possible to put Google TV Android app in PiP mode (not full screen)?
I think this would be a nice feature.
Currently, the only app that is able to run in PiP mode on Google TV is the "Live TV" app. We've passed the feature request on to the Google TV product development team, and we'll definitely let the dev community know if/when it's part of a release!
EDIT
There's a feature request opened for this at:
http://code.google.com/p/googletv-issues/issues/detail?id=13
If this is an important feature to you, add a star!
In Android 8.0 oreo, they support the custom pip mode now. The document is here.
https://developer.android.com/guide/topics/ui/picture-in-picture.html
Not only works for the tv devices but also mobile devices.

Turn auto-sync on in Android emulator

I've found this problem a few times on the web, but no answer:
I'm running an android application (using C2DM) on an emulator using a google api avd (api 8 upwards, tried a few of them). I've managed to register a google account on the device, but it says "sync is off".
Anybody knows how to turn this on?
Try the latest version of Google API's Add-on with an emulator and it may have solved the issue of using the account's sync on. as described here. Not guaranteed though !
You need install Google Apps

Testing GWT application on Mobile Emulator

I want an android and iphone emulator to run on windows to test my gwt application on windows. can someone point me to a proper emulator because i've been trying some with no success
The official iPhone simulator does not run on Windows. Seems you have to get a Mac ;-)
However the Android emulator can be installed pretty much anywhere:
http://developer.android.com/guide/developing/tools/emulator.html
If you point the Andorid browser in the emulator to your GWT application you should be able to test it. You can find messages from the browser in LogCat, watch out for the logging tag WebCore. You can even log from within your code and get the output in LogCat, see:
http://developer.android.com/guide/webapps/debugging.html