Android Emulator and NetBeans

Whenever you ask or search for help regarding Android development, you end up with some fix related to the Eclipse ADT plugin or the Android SDK tools. My intention is to fix that by repeating parts of a great tip I found at Tim Perry’s blog. It is about how to get hold of the resources placed under the /assets folder in you Android project while running your applictaion in the Emulator from NetBeans. If your application tries to access resources from the AssetManager you will get a FileNotFoundException. The reason for this is that the assets are not packaged with the .apk like it is if you package and deploy it using the SDK tools.

The solution is:

  1. Go into nbproject/project.properties and add ‘assets.available=true

Voila! You will now be able to run, debug and step through your code as you would expect.

NetBeans 6.7 beta

After having used NetBeans 6.7 Milestones for a while, I was very happy when the beta was released yesterday. I immediately installed it and started trying it out. The milestones had a tendency to use a LOT of cpu, but so far I have not experienced this with the beta. Maybe since I was stuck up in meetings yesterday and did not have time to code. Today will be better 🙂

Some Highlights

  • Connected Developer (Kenai)

    Create Kenai-hosted projects from within the NetBeans IDE
    Locate and open sources for Kenai-hosted projects in the IDE
    Full integration with Bugzilla

  • Maven

    Support for Web Services creation and consumption and J2EE
    POM Editor and Navigator enhancements

  • PHP

    Code coverage and Selenium support
    PHPUnit output improvements

  • C/C++

    Support of popular Qt library and tools

  • Groovy and Grails

    Out-of-the-box support for Grails 1.1

  • Profiler

    Enhanced Self Diagnosis (“Profile Me Now!”)

  • Java ME / Mobility

    Full support for SVG Rich Components in the Visual Mobile Designer