How to compile and run the Google Contacts application in Android Emulator

Can someone point to some tutorial on setting up and creating applications for Google contacts that are in packages / applications / contacts and launching them in an Android emulator.

I know that it has many dependencies, including the provider itself, which is a separate service. and other libraries from the source folder, but I'm trying to understand how Google developed their contact application and uses some of its methods in my application.

I am currently debugging manually! ^ - ^ .. its very very painful, esp after intent calls ..

but if I could compile and create the Contacts application myself and run it in the emulator, I can add some simple debugging messages and recompile them, and then trace them. Can someone please help me with this.

Thanks in advance

+6
source share
1 answer

Compilation of application contacts for a full source of Android.

  • install the build environment.
    (Ubuntu 64bit, Git 1.7 or later, JDK6, Python 2.4 ~ 2.7)
  • get the full android source.
    ( http://source.android.com/ )
  • complete assembly with all source.
    ( http://source.android.com/source/building.html )
  • If you get complete success, you can partially create all the applications of the platform.
    go to android root directory and type linux at the command prompt
    # mmm package / apps / Contacts
  • emulator rooting for installing system applications.
    and set write permissions to '/ system / app' in the emulator.
  • Click Contacts.apk in the emulator.
+4
source

Source: https://habr.com/ru/post/902808/


All Articles