ResultReceiver vs Messenger

I’m implementing a REST client according to the first method of this presentation – http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html currently I’m using a ResultReceiver for the “binder callback” between the service and the service helper, is there any reason I should prefer a Messenger over ResultReceiver or the opposite for this ?

How to create a Drawable with needed background color programmatically?

I need to create a simple Drawable object with needed color as background color, but I don’t know how I can do it programmatically without using a XML schema (is it possible really?). Please, tell me, I need it to do for making a LayerDrawable and working with SeekBar (changing background of SeekBar programmatically). Thank […]

How to open Google Maps using address?

How can I open Google Maps(using Intents or adding Google Maps into my application) with address? I have the address, but I don’t have latitude/longitude. How can I do it? Thank you.

Attempt to invoke interface method 'boolean java.util.List.add(java.lang.Object)' on a null object reference

This question already has an answer here: What is a NullPointerException, and how do I fix it? 12 answers

get bitmap information from bitmap stored in drawable folder

I wanna read in a bitmap that I have in my drawable folder and store it as a Bitmap variable so that I can set it as a background. Would the best way to do this be using a “file reader”? like Bitmap decodeFile (String pathName) method Or is there a way to just set […]

get “ connect: already connected” error if I draw a bitmap as the background of SurfaceView and then play video

What I want to do is Show a background image on the SurfaceView before starting to play video. I tried to just draw a jpeg image as its background of SurfaceView. It worked. I also tried to play a video on the SurfaceView. It also worked. But, when I tried to draw the jpeg image […]

Is there a way to invoke navigation from mobile browser?

I am developing a very small HTML5/javascript website to be openned by mobile browsers from devices like android / iphone. I am using geo location of HTML5 to get the current location but once I have that I want to navigate to some destination. The best I came up with was that the user clicks […]

Error on Samsung S4 “GetPTLAFormat: Invalid format”

I am having a hybrid android application (Android web view + JS/HTML UI). Few day back application was working perfectly on all the devices but from last few days application is not working on Samsung S4 device Android 4.2.2. In logs i am getting following erros while starting the app: E/IMGSRV(22014): 0: GetPTLAFormat: Invalid format […]

Android getting external storage Absolute Path

I want to download some files and save them into the internal storage of the phone/tab. Tried on Samsung Galaxy Note 2 and Galaxt Tab 10.1. When I use /storage/sdcard0/ on them the code runs successfully but when I use Galaxy Nexus 3 the code fails. I want to get absolute path of the phoe […]

insert separator between view-pager

How could i insert some padding between the pages inside view-pager like in the market app – the black line

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.