Cogitas Blog:
Google Android,
Common Lisp,
programming
and web design.

Parsing XML in Android

Filed under: google android — Tags: , — March 17, 2011

With web services used everywhere, being able to parse XML is a necessary skill when developing Android apps. Here’s an example for you to modify for your own purposes.
(more…)

Use a colors.xml file to create consistent Android layouts

Filed under: google android — Tags: , , — March 7, 2011

When defining a layout in Android using an xml file, the temptation is often to directly type in the colour, such as #000 for black. However, when developing a complex app, there is high risk of inconsistent colours throughout your app so the best way is to define a colour xml file, called colors.xml and saved in the values folder, and to refer to these colours, and these colours only, in your layout xml files. You may also define drawables that are colours in this file, for when you need a Drawable object of a certain colour, and not a Color object.
(more…)

Linkify your Android TextView

Filed under: google android — Tags: , , — January 5, 2011

Android features a text utility called Linkify, which, well, linkifies your text. That is, you can turn any word or groups of words or letters into a link – not only a link for your browser, though you can do that of course, but a link for your application to interpret as it wishes.
(more…)

AdMob announces accounts will be transferred to Google

Filed under: random — Tags: , , , , — June 24, 2010

AdMob has sent a newsletter to its publishers today, confirming Google buyout which took place on 27th May and asking publishers to sign a revised Terms of Service to enable transfer of the account to Google. The transfer to Google accounts is due to take place on 7th July.

AdMob is an ad service with a SDK for iPhone and Android developers, enabling them to show ads in their apps. In my experience, the payouts have fallen quite a lot over the last few months – I wonder if it is because there are too many publishers for not enough ads?

Anyway, as Google AdSense for mobile apps is only available within the USA and Canada at the moment, I am curious as to the effect of Google on AdMob ads inventory – hopefully, more advertisers will flock to the network and payouts will go up again ;-)