CloudServices/NativeSync: Difference between revisions

Jump to navigation Jump to search
Line 3: Line 3:
[[Mobile/Fennec/Android_OtherBuildEnvs#Mac_OSX | Setting up an Android dev environment]]
[[Mobile/Fennec/Android_OtherBuildEnvs#Mac_OSX | Setting up an Android dev environment]]
* note: installing *all* the platform tools (all Android from 1 to 3.3) takes a while, if you only need a specific SDK version, just install from the GUI tool:
* note: installing *all* the platform tools (all Android from 1 to 3.3) takes a while, if you only need a specific SDK version, just install from the GUI tool:
  $SDK/tools/android
  $ANDROID_HOME/tools/android


=== Emulators ===
=== Emulators ===
Line 9: Line 9:
* to create:
* to create:


Use the command line <tt>$SDK/tools/android</tt>, or use the graphical Android AVD Manager (from within Eclipse: <tt>Window > AVD Manager</tt>).
Use the command line <tt>$ANDROID_HOME/tools/android</tt>, or use the graphical Android AVD Manager (from within Eclipse: <tt>Window > AVD Manager</tt>).


  $ $SDK/tools/android create avd -t android-10 -n NAME -c 2047M
  $ANDROID_HOME/tools/android create avd -t android-10 -n NAME -c 2047M
 
produces the output
  Auto-selecting single ABI armeabi
  Auto-selecting single ABI armeabi
  Android 2.3.3 is a basic Android platform.
  Android 2.3.3 is a basic Android platform.
Line 25: Line 28:
* to launch:
* to launch:


  $ $SDK/tools/emulator -wipe-data -avd NAME -partition-size 2047
  $ANDROID_HOME/tools/emulator -wipe-data -avd NAME -partition-size 2047


{{note|The partition size is set large so that you don't run into an insufficient storage error.}}
{{note|The partition size is set large so that you don't run into an insufficient storage error.}}
Line 31: Line 34:
* to delete:
* to delete:


  $ $SDK/tools/android delete avd -n NAME
  $ANDROID_HOME/tools/android delete avd -n NAME


After installation, fennec would crash on installation (unable to locate mozutils library, although it's in the apk). Possibly related to emulator failing to run NDK applications?
After installation, fennec would crash on installation (unable to locate mozutils library, although it's in the apk). Possibly related to emulator failing to run NDK applications?
Line 100: Line 103:
** Ensure your Android device is connected to your computer's USB port.
** Ensure your Android device is connected to your computer's USB port.
** Run
** Run
  $SDK/platform-tools/adb install -r objdir-droid/dist/fennec*apk
  $ANDROID_HOME/platform-tools/adb install -r objdir-droid/dist/fennec*apk


* Emulator:
* Emulator:
** Ensure the emulator is running.
** Ensure the emulator is running.
** Run
** Run
  $SDK/platform-tools/adb install -r objdir-droid/dist/fennec*apk
  $ANDROID_HOME/platform-tools/adb install -r objdir-droid/dist/fennec*apk


{{note|You may need to run <tt>adb kill-server; adb start-server</tt> if adb doesn't recognize the emulator.}}
{{note|You may need to run <tt>adb kill-server; adb start-server</tt> if adb doesn't recognize the emulator.}}


* Logcat debug statements
* Logcat debug statements
  $SDK/platform-tools/adb logcat
  $ANDROID_HOME/platform-tools/adb logcat


=== Setting up Eclipse ===
=== Setting up Eclipse ===
Confirmed users
355

edits

Navigation menu