devgp
devgp

Reputation: 1321

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

Upvotes: 6

Views: 1865

Answers (1)

IvoryCirrus
IvoryCirrus

Reputation: 622

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.

Upvotes: 4

Related Questions