Dummy Guide to NetBeans Android Development

Start by setting up the Android SDK (fantastic Ubuntu instructions here), then install NBAndroid.

Now you can create a new Android project:

Having set up the Android SDK, you're able to select your Android platform in the IDE:

The project structure created by the above templates is nice and easy to understand:

Build the project and you have your APK file and everything else generated in the Files window:

Nice features are included, such as code completion in Android XML files:

Several other features are included, as described here, such as "Export Signed Android Package", as well as deployment to the Android emulator. Now that I have everything set up (took literally about 10 minutes from start to finish), I'm going to be experimenting a bit with Android development via NetBeans IDE.



Posted by W. Wayne Liauh on June 26, 2011 at 07:47 AM PDT #

its a great one..i need to know how the netbeans handle the android programs..could anyone teach me about this?

Posted by guest on June 26, 2011 at 10:55 AM PDT #

I always followed the tradition of developing Java application using Netbeans. Thanks for letting me know the steps for developing Android apps, as I work in a mobile application development company, I will be benefited from this illustrative post! Thanks for sharing.

Posted by Rahul Aggarwal on June 26, 2011 at 04:39 PM PDT #

Is Android SDK available for windows?

Posted by guest on June 26, 2011 at 07:47 PM PDT #

Android is available on Linux , Mac OS and Windows. There are also sources for other operating systems.
This tuto is excellent; simple and practice.
Thanks Geertjan !

Posted by Constantin on June 29, 2011 at 08:56 PM PDT #

Can't get it to build a project. keep getting the following error.

apply returned: 255

Posted by Allan on July 02, 2011 at 06:26 AM PDT #

This is a very nice tutorial regarding creation of a new android project using Netbeans, also it minimizes the efforts and complexity of the project as it already adds lots of files required for XML along with the project creation. I would also like to use netbeans as its good well known and I am very much familiar with it, so now I would like to try netbeans for android project. Keep posting such valuable information.

Posted by Jacob Dixon on October 23, 2011 at 05:18 PM PDT #

Thanks for writing superb article, recently i have shifted my IDE from eclipse to NetBeans, i am looking for the same what u have posted.

Posted by guest on December 26, 2011 at 06:42 PM PST #

I use Nb 7.11 under Vista and have installed Android 4.0.4 correctly (I beleave at least!). When building a project I always get the error message: 'Project Folder already exists and is not empty'. Can you give me an advice what to do.

Kind regards
J. A. Brocks

Posted by Dr. Josef A. Brocks on May 03, 2012 at 08:58 AM PDT #


I had the same problem and I just solved it. Follow the following steps:

1. Delete existing "NetbeanProjects" folder (you can always backup other projects before deleting the folder).

2. Start Netbeans (I am using netbeans 7.1.2).

3. Go to Tools > Plugins > Settings (tab)

4. Click "Add" button at the lower right corner of the dialog panel.

5. The dialog box "Update Center Customizer" will show.

6. Enter a name (e.g. Android Plugin) and select the "Check for updates automatically" check box.

7. Enter the following url in the URL box http://kenai.com/downloads/nbandroid/updatecenter/updates.xml

8. Select OK.

9. Now select the "Updates" tab in the same panel, you should have at least one update pending.

10. Select the update(s) and click the "Update" button.

You can now close the panel and create new android project as appropriate. Remember the package convention "com.bla.bla" and build the project. Should be OK now.

The problem is that you must have downloaded the kenai plugins manually. Those plugins are probably outdated. The above URL gives the up-to-date updates. And if this doesn't work, change your Android SDK version to 4.0.3 or lower.

Posted by guest on May 19, 2012 at 03:28 AM PDT #

finalmente una solucion al problema de 'Project Folder already exists and is not empty'. :) muchas gracias.. saludos

Posted by Francisco Valerio on July 18, 2012 at 07:48 PM PDT #

After I build my project when I go to run it it ask me to select a device. But none of my devices that I have loaded show up in the window.They are there when I select manage android SKD on the new application screen. What am I missing?

Posted by guest on January 12, 2013 at 09:20 PM PST #

Good one with explanation from scratch.... Even this http://www.compiletimeerror.com/2012/12/configure-android-on-pc.html might also help... Have a look...

Posted by guest on May 04, 2013 at 08:55 AM PDT #

Very cool! Thank you!

Posted by Lee Wright on July 24, 2013 at 02:28 AM PDT #

BUT i am still wondering how to enable netbeans to do this! i have downloaded the nbandroid...now wat?

Posted by Roy on July 08, 2014 at 11:59 PM PDT #

You missed the great big yellow "Installation Guide" button on http://nbandroid.org?

Posted by Geertjan on July 09, 2014 at 03:48 AM PDT #

I wanted to know about the Net beans android development. this article has given me an insight about it but I want you to provide with more detailed information so that more undetrstanding could be gained.

Posted by guest on July 22, 2015 at 05:38 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« June 2016