I was pretty confused when I found out that the Android emulator does not provide a basic calendar application. Starting with version 4.0 “Ice Cream Sandwich” there seems to be a calendar API, but when developing an application for an older version like 2.2 “Froyo” you not only have no common API for accessing the calendar but also haven’t even got access to a simple calendar application in the emulator. After searching the web for quite some time on how to get a calendar application running on my emulator, I know compiled one myself for Android 2.2. Here’s how to do it:
- First, I set up a complete build environment on a virtual machine running Ubuntu 10.4 64bit (download Ubuntu here) following this guide: Initializing a Build Environment.
- Be sure to download the correct sources:
repo init -u https://android.googlesource.com/platform/manifest -b froyo
- When the download is ready, build the system, but only the needed components:
. build/envsetup.sh lunch full-eng make Calendar make CalendarProvider
- You’ll find Calendar.apk and CalendarProvider.apk in /out/target/product/generic/system/app. Copy them to the machine running the Android emulator.
- Run the emulator and install the APKs:
adb install Calendar.apk adb install CalendarProvider.apk
- Start the application in the emulator.
Download the compiled APKs
- AndroidCalendar.zip (compiled for Android 2.2 Froyo)
Hallo Stefan,
vielen Dank für die Bereitstellung der apks. Ich kann diese prima auf einem frischen 2.2 Emulator installieren. Wenn ich den Kalender anschliessend starte werde ich jedoch darum gebeten einen Exchange-Account einzurichten. Ich würde aber gerne einen Google Account anlegen. Weisst Du evtl. wie ich die Exchange-Einrichtung umgehen kann?
Schöne Grüße,
Philipp
Hallo Philipp. Du brauchst einen Emulator mit Google API (kann man im AVD Manager auswählen). Dann solltest du auch ein Google-Konto anlegen können.
Pingback:How to play Nintendo DS on your pc – Ideas Emulator | JailbreakNiche
Pingback:How do I install CalenderProvider.apk and Calendar.apk in a Froyo emulator? | XL-UAT
Pingback:How do I install CalenderProvider.apk and Calendar.apk in a Froyo emulator? [SOLVED] – Wanted Solution