Philippines, Technology, Mobile, Android, Games, Mac, Linux, WordPress
Google+TwitterLinkedinFacebook
Subscribe
HomeMobileHow to setup Netbeans for Android development

How to setup Netbeans for Android development

When Google released the Android open mobile platform, they have made an Eclipse plugin to be able to develop Android software using the Eclipse IDE. 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.

android-and-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 .

Update: New update url for downloading the plugin is now http://kenai.com/downloads/nbandroid/updatecenter/updates.xml – Thanks pop.

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.

Responses

  1. After doing all I just cant find android when i start a new project.please help

  2. thank you very very very very very very much!~~~~~~~~
    I really need it.

  3. After Selecting the platform and clicking on “Finish” the platform is NOT added to the list.

    why???
    please Help me. thanks

    im use.
    netbeans 6.9.1
    nbandroid-0.11

  4. Thanks man, without you i would you have been dead…

  5. I just downloaded Netbeans 6.9 with a view to getting started with some android development. However, I found that I could not get past adding the platform folder in the wizard. Just realised what the problem was though, I did not have the Java ME enabled in the plug ins, once I did that I was able to complete the wizard.

    Anyway thought this might help somebody, in hindsight it seems obvious but I had overlooked it!

  6. LogikBlitz says

    This guide works, even on Netbeans 6.9.1 but when adding the platform you have to choose the root of the SDK – just like in the guide.
    When pressing next, netbeans kept on incisting that no platform had been chosen, so a shutdown and reopening of netbeans fixxed this, and everthing went smooth after that.
    This was done on a Macbook Pro.
    Thanks for the guide. Very helpfull.

  7. thanks a bunch….

  8. Xotan says

    Thanx for the introduction.
    Can anybody tell me how to include the DOCs into Netbeans IDE. For other platforms NetBeans has the option to include JavaDocs, but for the Android-Platform this option is not available (don’t know why). Since developing with NetBeans and available JavaDoc is very comfortable I would like to use this for Android too.
    Thanks for any help!

  9. xenix says

    I am working with netBeans 6.9.1.
    I could install android plugin,
    but when I tried to add platform, there was no option
    “Google Android Open Handheld”, and no platform was found in Android sdk folders. Somebody has the answer?

  10. Akshit says

    I can’t see “Google Android Open Handheld Platform” In add platform.
    Netbeans 7.0
    NBAndroid 1.0

    plz help me

  11. I’ve got the same problem as Akshit on Netbeans 7.0. Anyone solved this?

  12. This article is out of date now. Please take a look at http://www.nbandroid.org/p/installation.html

    While the beginning here is mostly OK (autoupdate setup if you use current URL) the rest dealing with Java platform is obsolete. The whole concept is abandoned a new new version. Just set up Android SDK location in Tools | Options | Misc | Android and you are ready to go.

  13. Yohan says

    I believe we need to activate installed plugins (i’m using netbeans 7.0.1) and previously i have not activated user installed plugins yet and i can’t see new android project. but after i activated it, i can now build one

  14. Basically, the installation process was changed and the “platform” concept was scrapped. So follow the instructions for installing the nbandroid, found here:

    http://kenai.com/projects/nbandroid/pages/Intro

    They work, as of today, for:

    Netbeans 7.0.1
    NBAndroid

  15. I have just downloaded the required plugins for Andriod development.

    Everything went on successfully however when it came to add the Andriod plat, i had no option for it listed, I am using Netbeans version 7.0.1.

    Need help!!

  16. Nazmul Ahsan says

    NetBeans 7.0.1, after installing android, I cannot see the plat form options either, can anyone please respond?

    Thanks

  17. I am working with netbeans 6.9.1
    I could install android plugin,
    but when I tried to add platform, there was no option
    “Google Android Open Handheld”, and no platform was found in Android sdk folders.
    what I must do to fix it??????

Leave a Reply

  • Hi, I'm Gerry. Welcome to my blog and sites about mobile, technology, The Pinoy, #crazyidea, games, WordPress, Ubuntu, Mac, iOS, Android, Symbian... I started sites like Ortigas Online and iMakati which focuses on local community information. Read more about Gerry
    Status (Twitter, Linkedin, Facebook...)

    Just found out that the Android-based HTC Sensation XL phone is now in the Philippines for about Php 28,000.

  • Visit my other sites

    • Apps & Games

      Reviews, news of mobile apps & games for Android, iOS, Blackberry, Symbian...

    • Connected Phone

      The computer is the mobile phone. The always connected phone evolution.

    • Mobile/Web Development

      Mobile/Web apps, development, services for Android, iPhone & WordPress.

    • Pinoy Me

      Pinoy businesses, enterprises, startups, professionals all over the world

    • Java Midlet

      Java mobile apps & games - news, reviews, tips, mobile phone & devices

  • PINOI Sites

    Are you interested in putting up your own PINOI-enabled local community site? Contact me

    • PINOI

      Enabling local communities on the Internet

    • Makati

      iMakati.com is a site that provides information about Makati City.

    • Ortigas

      Community site that provides information about the Ortigas Center.