Skip to content

haxorplatform/androidhx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haxe Android Project

Installation

  • Eclipse isn't needed.
  • Install FlashDevelop (not obligatory)
  • Download and install the latest Apache ANT
  • Download and install the latest Java Development Kit
  • Follow the instructions to install Android SDK
    • It will install libraries for different android versions (these downloads and installations will take some time)
  • Make sure your JAVA_HOME environment variable points to your JDK programs like [java,javac,...] because ANT searches in it.
  • Run haxelib install androidhx if you want to use android externs classes
    • Also using -java-lib PATH_TO_ANDROID/platform/android-X/android.jar in the Project Properties works too.

prop.jpg

Development

  • The installations should make all necessary tools available.
  • Make sure that android tools like android and adb are visible from the command line.
  • Run CreateProject.bat to create the project base and APK packaging data like AndroidManifest.xml (it was already done in this template)
  • Read the Android Documentation about packaging and what Resources and Manifests are.
  • Check AndroidManifest.xml to change where your Main class will point.

Build

  • With the project base created just press F8 or *Project Build in FlashDevelop.
    • Build.bat runs ant debug in the backstage.
  • Check deploy/bin folder and see the .apk there.
    • Check information about ant release for an "official build".

Run

Caveats

  • Check the BAT files to see what happens during Build and Run.
  • Check the Project Properties for extra flags and commands used in this template.
  • If you change class names and other resources stuff. Double check AndroidManifest.xml and the BAT files.
  • The R resources class will follow the package attribute in the <manifest> tag in the AndroidManifest.xml file.

About

Template project for Android development in Haxe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors