android Using Netbeans for Android development

Eversince Google released the Android open mobile platform SDK, they have a plugin for Eclipse that enables developers to create Android applications under Eclipse. But that didn’t stop some guys to create an equivalent Android SDK plugin for Netbeans. The project has been continued since then.

If you’re a Netbeans user, don’t worry because you can use Netbeans for creating Android applications also. Several guys created a Netbeans plugin that makes it possible to do Android software development under Netbeans.

To start setting up Android development under Netbeans, just open up your Netbeans 6.5 IDE. After starting up, click on the Tools | Plugin from the menu and select the Settings tab from the dialog box. Click on the Add button and enter the Name of the plugin and update URL for the plugin your are manually adding. You can put any text for the Name field, the plugin update URL for the Android for Netbeans plugin is http://kenai.com/downloads/nbandroid/updates.xml .

android-netbeans-install-01

After clicking on Ok, it should now be included in the list of configured update centers.

android-netbeans-install-02

Go to the “Availalble Plugins” tab and you should see Android in the list. Click on the checkbox to mark it for installation. Then click the “Ok” button.

android-netbeans-install-03

You’ll get a dialog box similar to the one below informing you that the Android plugin will be installed. Click on the “Next” button.

android-netbeans-install-04

The license agreement will be displayed. You need to agree to to install the Android plugin. Click on the “Install” button once you have clicked on the “I accept..” checkbox.

android-netbeans-install-05

It should start download the Android plugin.

android-netbeans-install-06

After the download, you’ll get a message similar to the one below. It basically says that the plugin hasn’t been signed by the Netbeans group. This serves as a warning for potentially dangerous plugins. If you trust the developers of the plugin, just click on the “Continue” button.

android-netbeans-install-07

After which, you should get an “Installation completed successfully” message.

android-netbeans-install-08

Now that the Android plugin for Netbeans has been installed, you need to do just one more step to configure it. You need to tell Netbeans that it can now also setup projects for the Android open mobile platform. To do this, click on the Tools | Java Platform menu of your Netbeans IDE.

android-netbeans-install-09

Click on the “Add Platform” button. Select the “Google Android Open Handheld Platform” and click the “Next” button.

android-netbeans-install-10

Now locate where you have extracted the Android SDK on your computer and click “Next”.

android-netbeans-install-11

Give the platform a name. I think “Android” would be appropriate and click on the “Finish” button.

android-netbeans-install-12

You should now have added Android in your list of supported platforms for the Netbeans IDE.

android-netbeans-install-13

That’s it. You can now start developing Android applications using your Netbeans IDE. I’ll post about writing an Android application in Netbeans next time.

Related posts

Responses

  1. Neo says

    Excellent !! Extremely detailed and well Illustrated. Really Helps… Cheers!!

  2. SnakeDr says

    For the last section, using netbeans 6.5.1 on OSX it won’t let me click next after selecting the Android SDK, any ideas? :(

  3. Zigy says

    I have exactly the same problem with netbeans 6.5.1 on Mac OS X. If you find any solution, let us know.
    Cheers Zigy

  4. Got the same problem…

  5. dodolpitax says

    snakedr ‘n zigy : u need to download the android sdk from the android websites. ‘n then extract to specify folder

  6. It doesn’t work for me NetBeans don’t recognize my extracted Android SDK folder as a platform folder. any solution ??

  7. I am also facing the Same Problem

  8. Thank u so much..i hv been luking for this since a long time

  9. Great tutorial, works like a treat, thanks for the info.

    Now… what to code?? No excuses now!

  10. There is executable file named SDK Setup in extracted android folder, launch that and you need to download the platform from internet, these extracted files are incomplete without downloading platform files

  11. try to update then do it you should be fine by then worked for me on NB 6.7.1

Leave a Reply