2

For development I would like to use the calendar in an Android 4 emulator but the option "Calendars to display" is empty and I am not able to add an account with calendar.

I found several solutions but none of them worked:

m.google.com

Like adding account with m.google.com as server but it keeps telling me "You don't have permission to sync this server. Contact your server's administrator for more information." because it is disabled for new devices.

CalDAV

In the link above they are talking about using CalDAV but how without appstore? I installed the caldav4j apk to use CalDAV but it does not run. logcat tells me java.lang.NoClassDefFoundError: android.provider.Calendar$Events.

Add Google Account

If I add an normal Google account I can only select mail for sync, calendar is missing.

Android x86

Maybe I could avoid this problem by using Android x86 like suggested here as performance booster.

Community
  • 1
  • 1
PiTheNumber
  • 22,828
  • 17
  • 107
  • 180

1 Answers1

1

Got it working using AndroVM.

  1. Download VirtualBox and an AndroVM image with gapps. Like androVM_vbox86p_4.1.1_r6.1-20130222-gapps-houdini-flash.ova. vbox86p is for phone and vbox86tp for a table with phone functions.
  2. Follow the configuration tutorial: Import Virtual Machine, activate network
  3. Start the VM and enter your gmail account during setup.
  4. For debugging with eclipse: run AndroVM Config app (on mobile desktop) to get the IP and on the host: adb connect [IP]

Hareware keys: ESC = back, F1 = menu, Pos1 = home/unlock, End = lock

Btw: AndroVM is a speed rocked compared to the normal emulator.

PiTheNumber
  • 22,828
  • 17
  • 107
  • 180