Archive

Archive for December, 2010

Understanding the LocationListener in Android

December 25th, 2010 ddewaele 8 comments

Introduction

Everybody who has done some Android development involving GPS location tracking is probably familiar with the LocationManager and LocationListener concepts.

  • The LocationManager provides access to the system location services
  • The LocationListener is used for receiving notifications from the LocationManager when the location has changed

However, there seems to be some doubt regarding the minTime and minDistance parameters that can be provided to the requestLocationUpdates call, and the way the locationlistener behaves.

Android Locationlistener

Continue reading “Understanding the LocationListener in Android” »

Bookmark and Share

Integrating maven in your Android Eclipse projects

December 14th, 2010 ddewaele 5 comments
Managing dependencies is very important in software development. The ability to declare your dependencies, handle transitive dependencies, and fetch these dependencies automatically is one of the benefits of using Maven. Today I installed Ubuntu on my laptop, and started checking out my Android projects from my GitHub repository.
During that checkout, I was ashamed to find that some of them had external dependencies declared that couldn’t be found on my newly installed system.The dependencies were pointing to a location on the desktop of the machine where I did the check-in. Shame on me.

maven-logo

maven-logo

One of the strenghts of maven2 is that by declaring the dependencies in the pom.xml, anyone checking out the pom will automatically have all of it’s dependencies resolved.
Having a JEE background, where maven2 is heavily used in my everyday working environment, I wondered if it was possible to combine maven2 with my Android projects, and came accross 3 interesing projects that make it possible.
The goal of this article is to provide you with a step-by-step guide to glue everything together, and start developing your Android apps in Eclipse using Maven2.
Continue reading “Integrating maven in your Android Eclipse projects” »

Bookmark and Share
Categories: Eclipse IDE Tags: , ,

Debug a remote Android process in Eclipse

December 7th, 2010 ddewaele 4 comments
Most people that are developing Android applications using Eclipse will probably use the Eclipse ADT plugin. The plugin offers a lot of functionality, including

  • Debugging features, via it’s integration with the Dalvik Debug Monitor Server (DDMS)
  • Emulator control from the Eclipse workspace
  • XML Validation for Android specific files (strings, views,  menus , ….)
  • Project Wizards, to facilitate the creation and packaging of your Android app

In this short article, we’ll be discussing the debugging of remote android processes (the processes defined in your manifest using the android:remote attribute).

Android Eclipse ADT Plugin

Continue reading “Debug a remote Android process in Eclipse” »

Bookmark and Share