Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile and run Google Contacts App in Android Emulator

Could someone please point to some tutorial on how to setup and build the Google's Contact apps which is under packages/apps/Contact and run it in Android Emulator.

I know it has lot of dependencies including the provider itself which is a separate service., and other libraries from the source folder, but what i'm trying to do is to learn the way Google has designed their contact app and use some of its techniques in my app.

Currently i debug manually !! ^-^.. its very very painful, esp following Intent Calls..

but if i were able to compile and build the Contacts app myself, and run it in emulator, i can add some easy debug messages and recompile and then trace them. Could someone please help me with this.

Thanks in advance

like image 825
devgp Avatar asked Dec 01 '11 01:12

devgp


People also ask

How do I add contacts to my emulator?

So I found a thread which said create the contacts in gmail.com, then export them to a vcf file and use adb to push them to the emulator and then import them into Contacts . I tried this, the file copied over okay, and I ran the import, which showed a progress bar and the contact names being imported.

How do I add Google contacts to NOX player?

You need to export your gmail contacts as vcf (vCard) file (but not CSV file) and then import the downloaded file into nox player using the nox's "contact app" (if you don't have contact app you will have to download it from play store), then settings under contact on the right side, then import under manage contacts ...

How do I run an app on AVD?

In Android Studio, create an Android Virtual Device (AVD) that the emulator can use to install and run your app. In the toolbar, select your app from the run/debug configurations drop-down menu. From the target device drop-down menu, select the AVD that you want to run your app on. Click Run .


1 Answers

Compiling contacts app nees for Android full source.

  1. establish build environment.
    (Ubuntu 64bit, Git 1.7 or later version, JDK6, Python 2.4~2.7 )
  2. get android full source.
    ( http://source.android.com/ )
  3. full build with entire source.
    ( http://source.android.com/source/building.html )
  4. if full build success, you can partially build each platform apps.
    go to android source root and type in linux command line
    # mmm package/apps/Contacts
  5. rooting the Emulator for install system apps.
    and set write privileges to '/system/app' in Emulator.
  6. push Contacts.apk into emulator.
like image 85
IvoryCirrus Avatar answered Nov 15 '22 13:11

IvoryCirrus