background preloader

Development

Facebook Twitter

Multithreading For Performance. [This post is by Gilles Debunne, an engineer in the Android group who loves to get multitasked. — Tim Bray] A good practice in creating responsive applications is to make sure your main UI thread does the minimum amount of work.

Multithreading For Performance

Any potentially long task that may hang your application should be handled in a different thread. Typical examples of such tasks are network operations, which involve unpredictable delays. Users will tolerate some pauses, especially if you provide feedback that something is in progress, but a frozen application gives them no clue. In this article, we will create a simple image downloader that illustrates this pattern. An Image downloader Downloading an image from the web is fairly simple, using the HTTP-related classes provided by the framework. Static Bitmap downloadBitmap(String url) { final AndroidHttpClient client = AndroidHttpClient.newInstance("Android"); final HttpGet getRequest = new HttpGet(url); A client and an HTTP request are created. Demo Future work. CursedBlog. Use your Android phone as a wireless keyboard and mouse to remote control your computer. So, I decided to get a Lenovo ThinkPad x120e for development purposes.

Use your Android phone as a wireless keyboard and mouse to remote control your computer

The Chromebook I got from Google I/O made me appreciate the value of a light laptop with massive battery life, and the experience of installing Ubuntu on it made me think that I could actually start using something like that for development purposes. Of course, the disadvantages of the Chromebook are that it’s not necessarily easy to install different OSes on it, and the stupid, stupid touchpad. The SSD can be upgraded, so that’s not a big deal. –RANT– One of the reasons I got into Android way back in the G1 days was that I wanted a decent smartphone, but having played around with iPhones, I really liked physical keyboards as well, so along comes the G1, and I was instantly sold.

The trend towards buttonless trackpads is terrible for the same reasons soft keyboards aren’t the end all, be all. So of course I ripped the HDD out, and replaced it with a Samsung 470 series 128gb SSD. Of course, the next step was Ubuntu. Getting Started in Android Game Development. If you're interested in developing a game for the Android platform, there is a lot you need to know.

Getting Started in Android Game Development

I'm the developer of Light Racer, Light Racer 3D, Antigen, Deadly Chambers and Wixel, which are currently available on the Android Market. I've also been involved with the development of about 5 other games for Android and iOS and am co-author of Beginning Android Games 2nd Edition. I've developed games before but the original Light Racer was my first Android application and I learned quite a bit about writing Android games that I'd like to share with everyone. I even wrote an online book detailing the development of Light Racer 3D, which is full of how-tos and useful code snippets. If you have previous experience with game development, moving over to the mobile platform won't be all that difficult. Android is a Java-based environment. Get the SDK The first step in getting started with the Android platform is to get the Android SDK (Software Development Kit).

Learn the activity lifecycle. Tim Hoeck's Android Blog » Blog Archive » Nexus One Emulator Skin. Code Style Guidelines for Contributors. The rules below are not guidelines or recommendations, but strict rules.

Code Style Guidelines for Contributors

Contributions to Android generally will not be accepted if they do not adhere to these rules. Not all existing code follows these rules, but all new code is expected to. Java Language Rules.

Android UI

Android Developers Reference. Sound. Blogs - forums. Networking.