Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1.28 KB

hello.md

File metadata and controls

54 lines (31 loc) · 1.28 KB

Hello World Tutorial

Hello World shows how to build a minimal JNI hello world program that uses Foundation and builds and runs on an Android device.

Steps

  • Start Xcode (Android plug-in must have been installed)
  • Select New->Project
  • Choose JNI Application

My text

  • Name project
  • Choose "com.apportable" for Organization Identifier
    • Optionally choose another identifier
    • If you do, after project creation, edit HelloAndroidActivity.m to match

My text

  • Continue to create project

My text

  • Connect Android device via USB to Mac

  • Make sure the device is in developer mode.

  • If your Mac recognizes the device, the Xcode scheme will transition from a generic Android target

My text

  • To showing the specific device

My text

  • Open HelloAndroid.m

  • Double click line 16 to set a breakpoint

My text

  • Click the Build and Run button in the upper left corner

  • Note "hello from printf" in the Output log

My text

  • Click the Step Over icon

  • Note "hello from NSLog" in the Output log

My text