Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:android:developing_with_netbeans [2010/08/03 23:25] – created billh | docs:android:developing_with_netbeans [2013/03/12 14:58] (current) – billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Developing with NetBeans ====== | ||
+ | |||
+ | ===== Modules ===== | ||
+ | * http:// | ||
+ | |||
+ | ===== Instructions ===== | ||
+ | The following was modified but originally taken from here: | ||
+ | * [[http:// | ||
+ | |||
+ | - from the command line, [[starting an android project|start an android project]] | ||
+ | - in NetBeans, start a "Java Free-Form Project" | ||
+ | - set the folder location and project name, and point the Build Script to the ant build.xml file | ||
+ | - set the Build Project to " | ||
+ | - the Source Package folders should only have the res and src directories | ||
+ | - set your JDK accordingly, | ||
+ | - in your Java Sources Classpath, add the jar file from <your android sdk dir>/ | ||
+ | - Project Output directory should be set to " | ||
+ | - your project will now open in NetBeans (but it won't work correctly yet: package R does not exist) | ||
+ | - (if you did the steps exactly as above, these items should already be done for you) go to the Files tab, and edit nbproject/ | ||
+ | - edit the ide-actions:< | ||
+ | < | ||
+ | <action name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | - edit context-menu:< | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | - save the file and click Build (you should now get R.java within the gen directory) | ||
+ | - FIXME - figure out how to get NetBeans to stop complaining about R.java without adding an import for it (the build works anyway) | ||
+ | |||
===== External Links ===== | ===== External Links ===== | ||
+ | * [[http:// | ||
* [[http:// | * [[http:// |