Archiv for January, 2009


published: January 30th, 2009

Android Developers: What syntax do you always seem to forget?

Thought I’d through a question out the to all the Android Developers and ask: What syntax or parts of the development process do you always seem to forget or relearn?

I’ve got 3 that I always have to look up or when I try to debug what I’ve just done, it never seems to work the first (or second time).

1. The show() part of a Toast.

I get the,

Toast.makeText( this, “Some text”, Toast.LENGTH_SHORT )

but I just never remember the show() on the end.  Then I go and run the behavior and mull over it for 5 minutes before I finally remember.

2. Entering new Activities into the manifest file, at least this one gives you an error.

3. For whatever reason, I can never remember the Android reference syntax the first time.  Is it R.android.id or android.R.id…thanks to Eclipse code completion this isn’t to big of an issue.

So what always seems to stump you about the Android API or syntax??  Leave a comment or you can you this for fodder for your own blog.

(Updated 1/30/09 7:55am : corrected some grammar…syntax errors)

published: January 28th, 2009

Use Math.round not (int) - I never claimed to be perfect!

Well this post will show my ignorance towards floating point math.  So my new Android Application, which I hope to put up on the Market soon, is a shopping list which allows you to track how much you’ve spent as your are shopping.  This obviously deals with the price of the products you are purchasing so I expect the user to enter floating point values, but I convert to integers to make math functions go faster.

(more…)

published: January 17th, 2009

Hello to “Hello, Android”

Guess I’m on a book “review” kick lately.  I wasn’t planning on posting back to back about the two Android books I’ve bought, but I just received my bound copy of “Hello, Android” by Ed Burnette the other day.  Call me old school, but I still prefer a bound book to a pdf.  I’ve had a pre-release pdf copy for a couple of months now, and wrote about it in a previous post, but just haven’t been able to bring myself to get all my thoughts down on “paper” till I got the actual book.  So here’s my take…
(more…)

published: January 6th, 2009

Thoughts on “Professional Android Application Development”

I am by no means a very good critique and haven’t written a book report since high school, but I have wanted to write my impression so far of the book “Professional Android Application Development” by Reto Meier.  First let me say I have great respect for anyone willing to author a book on software development.  Just writing development posts for this blog has been a huge learning curve for me, I don’t pretend to be the best technical writer!

(more…)

published: January 6th, 2009

Four different ways of opening a web page in Android

FIRST POST OF 2009!!

Threw this Android Activity together really quickly to see if I understood the different ways of getting a web page to launch.  The first three examples perform the same functionality, the Linkify.addLink call builds a means of launching an Intent.ACTION_VIEW.  The fourth example loads the url into a WebView in the layout.

(more…)