Get Your IP Address Android Code

Posted on April 25th, 2011 in Uncategorized | Comments Off

I recently had a need to know the IP address of my phone when it was attached to my local network. I thought that this would be easy – just use the WifiManager – right? Get the WifiInfo then call getIPAddress() and that should give me what I needed. Well I was wrong…

Read the rest of this entry »

Understanding Android Activity Life-cycle

Posted on October 25th, 2010 in Android, Code | Comments Off

When I first starting programming for the Android I was quite confused about the life-cycle of activities. It seemed almost strange how the application started, stopped, and paused without seemingly any logical reasoning. The activity would be destroyed and re-created when the screen was rotated and paused when other applications were started…

I soon learned that having a good grasp on the life-cycle of an activity was critical. Making an efficient application and knowing when to save critical data related to your activities state, let alone restoring your application to a particular state is all a part of the activity life-cycle.

There is a lot of different articles and information available on the internet about the life-cycles of activities. The Google documentation has good information on this as well. But I’m always better at understanding things if I see them for myself.

So I decided that I would write a simple activity that prints out debug statements each time one of the functions of the life-cycle was executed! Then I would be able to see exactly what is happening during each phase and when each function occurs during different situations.
Read the rest of this entry »

Paint.NET – Great Image Editing Software – Free!

Posted on October 19th, 2010 in Ramblings..., Software | Comments Off

I’ve always loved to create my own graphics for websites, videos, even the family photos. One thing that stopped me was the price of good editing software.

In my search for a great editing package I’ve come across a real gem. Paint.NET (sorry mac users – windows only) This software has everything and then some.

The interface is extremely intuitive everything is laid out simply allowing you to easily find the tools you need. It has a thumbnail interface allowing you work with multiple images.

Read the rest of this entry »

Learn about an canadian pharmacy online without prior prescription.