Strict Mode in Android 2.3 Gingerbread helps developers make better, leaner apps

In the slew of new things to be included in Android 2.3 Gingerbread, here’s one that the devs will love. It’s a new feature called “StrictMode”, and is designed to monitor an app as it works and watch for calls, commands, or other app functions that could end up slowing things down on your device. According to the Android Developers Blog, it is made to:

  • detect disk writes
  • detect disk reads
  • detect network usage
  • on a violation: log
  • on a violation: crash
  • on a violation: dropbox
  • on a violation: show an annoying dialog

So what does this mean, specifically? It means that developers will now be able to find out what causes slowdowns and bottlenecks in their apps that would ultimately cause an app to crash or force close. This means a better app experience, and more stable apps in general for the end user. Looks like Google is all about the apps, and they plan to stay that way. Be sure to let us know your thoughts in the comments!

[via android-developers]

Zombie art found in Gingerbread SDK – What this means for us

zombie gingerbread platlogo

Deep within the SDK of our new favorite OS, Android 2.3, is something most didn’t expect to see…Zombies! Yes, Zombies!

We see them everywhere, aimlessly walking about, mumbling brief sentence fragments to the likes of “brains…” and “uuuuughghghghghghg….” So one might ask, “Why are there Zombies in my Gingerbread?” One may say that Zombies have a special aquired taste for Gingerbread, I mean, it tastes nice, and gives a warm feeling, particularily with a cup of Spiced Rum and EggNog. Maybe this is that warm feeling long forgotten by our Zombie friends, and as such, is missed dearly. We could only speculate.

So if you’re looking for some conversation at the water cooler on your choice of wallpaper, or simply have a special place in your heart for Zombies, as does an unamed developer at Google, get the Android 2.3 SDK and navigate to platforms/android-9/data/res/drawable-nodpi/platlogo.jpg to show it off at your next Walking Dead LARP party.

[Thanks to our Tipsters!]

Rumor: Android 2.3 “Gingerbread” SDK being released November 11?

Well, it’s that time of the month again. A little under a month ago, we brought you a rumor that the Gingerbread SDK was dropping around the middle of October. Well, IntoMobile is jumping into the fray with a rumor that the Android 2.3 SDK is actually going to be released on November 11th.

It seems that Android Maps UI change we showed you a couple of days ago is adding some fuel to this fire, along with the rumors of the upcoming Nexus Two by Samsung and the Adobe Flash Player update message we told you about just today..

However, with that all being said, I must remind you that this in fact just a rumor, and that it needs to be treated as such. November 11th is just a few days away, though, so I suppose we’ll just have to wait and see.

[via IntoMobile]

Google providing Android SDK for developers to bring interstitial ads to your phone

Due to popular demand from advertisers and publishers, Google has announced that they are introducing interactive video and interstitial (ads displayed before or after content is viewed) ad units on the Android platform.

Google states that this will give advertisers the chance to reach a much larger audience, and for publishers to maximize their earning potential. From the post on the Google Mobile Ads blog:

“AdMob interstitial ads are reserved for developers of the most popular and engaging iOS and Android apps.  These high value ad units can be placed at app-open or in-app and provide an additional option for premium publishers to effectively monetize their user base.”

Google has cited CBS Mobile as an early adopter of Android that is excited about these new ads, and is expecting them to be very popular among publishers and advertisers.

[via Google Mobile Ad Blog]

Android developers: improve performance using Traceview

The Android Developers Blog has a nice breakdown on a tool called Traceview that Android developers can use to improve performance on their applications.   I could go into detail but Tim Bray does a good job on the blog of breaking it down. He explains how to use the logged data to find out what what part of your app is taking up the most time, then drilling down to find the likely culprits of code causing any mischief.

I’m sure many of you developers may already know about this tool, but just in case, it’s good to spread the word.  Nobody wants buggy, laggy apps bogging down their Android device.  Hardware can only go so far and even then, all it takes is one bad app to eat up your battery or crash your phone.

[via Android Developers Blog]

HTC Releases Froyo Code For the EVO 4G and Droid Incredible

As with everything Android eventually the source code makes its way to us. Again this is the case with the EVO 4G and Droid Incredible for the Froyo updates. With this release we can expect to see custom ROM’s based on the new updates. I find it kind of amusing that the source code for the Incredible is more readily available then the device itself. :) Anyway coders, on your mark, get set, GO!!!!!

[via engadget]

Google Becoming More Open with Access in the Development Process

In a move to be more open with developers, Google is taking steps to provide once closed contributed source code to the public. Before the policy change any publicly contributed source code went into the private tree for only Google engineers’ eyes. Now with the new change publicly contributed source code goes into the public tree for all developers and manufacturers to see when using the NDK (Native Development Kit). Now this does not mean that everything is available as Google needs to contain the secrets to their success from other competitors.

The reason for this change is they want to prevent disasters from happening by having botched released software from manufacturers. It will bridge the gap and allow application developers to stay on top of things making sure their software will work for their intended audiences on the Android platform. Google made a statement on the issue by saying “this has nearly happened before when one unnamed OEM wanted to start shipping pre-release the Android 1.5 – codenamed Cupcake – on its phones.”

This makes good news for us because we depend on the applications we use on our phones to work when needed. We don’t want them broken with every major update. As a developer or end user what do you think of these new changes? Do you think it is a good step in the right direction for Google?

[via The Register]

Android Development 101- Part 3: Introduction to Databases

In case you missed part 1 and part 2, Hackaday is in the process of an Android Development “course” if you will that is walking you through the process of developing for the Android platform.

They have now posted the third part in this series which introduces you to using databases, specifically SQLite databases with the Android OS. You will learn how to implement, insert and select items from the database for use in your application. If you have been developing any apps from these tutorials we would love for you to share them with us. I am going to give these a try and see what I can come up with.

[via hackaday]

How to install the official Droid Incredible boot animation

What is it with people an boot animations? We only see them for a few seconds, maybe only once per day or not even at all. We even showed you the Samsung Captivate boot animation a few days ago. But as well all know, with the Android community, it’s all about customizing. Recently a rogue OTA update went out to a small batch of Incredible owners and one of the new features is the official Droid Incredible boot animation.

First off, you there are a few things you should know:

  1. You perform these steps on an unrooted Droid Incredible via the Android SDK (also works on the original Droid)
  2. The command for the audio file may not work the first time. If it doesn’t work, run it a few more times and it should work.
  3. You need the HTC Incredible USB driver that installs with HTC Sync. Grab them HERE

That being said, let’s get our hands dirty.

  1. First, download the official Droid Incredible boot animation
  2. Unzip the files into your Android-SDK/tools folder
  3. Make sure nothing is currently selected, then hold Shift and right click inside your tools folder
  4. Choose “Open command window here” and type in the following commands: adb push bootanimation.zip /data/local and then adb push android_audio.mp3 /data/local followed by adb reboot
  5. Your phone should now reboot with the official Droid Incredible boot animation

If you don’t have the Android SDK installed, you can check out our guide to installing it.

[via droidlife]