How to make edit text not editable but clickable in JAVA

Is it possible to make EditText clickable but not editable. I don’t want it to be editable (Neither should the keyboard come up nor should we be able to change the hint) Actually I want to use Edit text simply as an image with a hint (which cannot be changed). I know the actual way […]

How to set Id of dynamic created layout?

I want to give ID to some views (textview ,imageview etc) in a layout that is programmetically created. So what is the best way to set ID.

Print the contents of a Bundle to Logcat?

Is there an easy way to print the contents of a Bundle to Logcat if you can’t remember the names of all the keys (even being able to print just the key names would be cool)? Thanks!

Android: how to refresh ListView contents?

My ListView is using an extension of BaseAdapter, I can not get it to refresh properly. When I refresh, it appears that the old data draws on top of the new data, until a scroll event happens. The old rows draw on top of the new rows, but the old rows disappear when I start […]

ALLOW button not working after update

On the devices which have installed the latest update of Android Marshmallow – that is June2016 update, when I ask for permissions, the ALLOW button is not working. I have tested with these 2 devices: Nexus 6p (Andoid version – 6.0.1, Build number – MTC19V) Nexus 7 (Android version 6.0.1, Build number – MOB30M) Both […]

Sync Adapter without Account

I need to fetch some data over the cloud from my app. I’ve watched the google IO video on RESTful android apps @ It recommends in the final slides to use a SyncAdapter to integrate with the Android System. Later I learned that one has to use an Account to implement SyncAdapter. My app […]

Android SharedPreferences Best Practices

In an application I have been building we rely on SharedPreferences quite a bit, this got me thinking about what is best practice when it comes to accessing SharedPreferences. For instance many people say the appropriate way to access it is via this call: PreferenceManager.getDefaultSharedPreferences(Context context) However it seems like this could be dangerous. If […]

I can't install intel HAXM

So, I installed Android Studio and I had no problems with that. However, when I tried to run the emulator, it said that intel HAXM was not installed. So I found the installer, run it, and it even though it said my laptop supports it, that it was no enabled. So I went, enabled the […]

Problem with crash with ItemizedOverlay

I have been trying for hours to figure out why I can not use an Itemized Map overlay without doing this before adding it to the ovelays of the map: GeoPoint point; OverlayItem overlayitem = new OverlayItem(point, “”,””); MarkerOverlay.addOverlay(overlayitem); If i try to do this without the MarkerOverlay.addOverlay(overlayitem); command then when i try to add […]

I lost my .keystore file?

Ok folks.. long story short, I was developing on a computer that I no longer have access to. I was able to retrieve the source code, but not the .keystore file used to sign and publish my application to the market (with several updates). Am I, and my poor users, out of luck if I […]

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