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…)
Parsing XML in Android
Use a colors.xml file to create consistent Android layouts
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…)
AdMob announces accounts will be transferred to Google
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