What are the IPC mechanisms available in the Android OS?

Will any one please tell me what are all the IPC mechanisms that are present in the android. To my knowledge are: 1) Intents, 2) Binders.

Android Gradle replace Package name for a value in manifest

I am using Gradle with Product flavors where I set a different package name for each one. productFlavors { appone { packageName “com.dg.app1” } apptwo { packageName “com.dg.app2” } appthree { packageName “com.dg.app3” } appfour { packageName “com.dg.app4” } } I need to be able to replace the package name inside the manifest for each […]

Nexus 7 (2013) and Win 7 64 – cannot install USB driver despite checking many forums and online resources

I’m trying to set up my Nexus 7 (2013) for debugging, but I am getting stuck at the step where you install the USB driver. Here’s what I’ve tried so far: Steps taken: Turned on debugging mode on Nexus 7 (2013) Connected device to PC Downloaded Google USB Driver at http://developer.android.com/sdk/win-usb.html (and unpacked it) Opened […]

Can an AAR include transitive dependencies?

So, right now I have a Library project, say project Foo that depends on a library like OkHttp. Now, the Foo has a maven buildstep that generates an AAR and pushes it up to a public place. So now lets say I have project B, we’ll call it Bar. Bar is an Android application, and […]

Reset Android textview maxlines

I want to make a TextView that is collapsable by user’s touch. When the TextView collapsed, I set textView.setMaxLines(4);. How to I clear this state in my expand method? I can only think of call setMaxLines() with a value large number like 10000. Are there better ways to implement this?

browse data in Android SQLite Database

Is there a way for an Android user to browse the SQLite databases on his/her phone and view the data in the databases? I use the SoftTrace beta program a lot. It’s great but has no way that I can find to download the data it tracks to a PC.

Detecting physical Menu key press in Android

I am trying to detect when the physical Menu button on my Android phone has been pressed. I though the code below would work but it does not. Where am I going wrong please? The error returned is ‘Illegal modifier for parameter onKeyDown; only final is permitted’ public boolean onKeyDown(int keyCode, KeyEvent event) { if […]

updating Google play services in Emulator

I have gone through many questions like this on Google Play, I am using Android 4.2.2 API 17. My app requires Google play services 8.1 , It compiles fine and when it runs on emulator it shows message that ‘You need to update your Google play services ‘ , When I click on update nothing […]

Why does Android prefer static classes

I see a lot of java code where android prefers to have developers use static inner classes. Particularly for patterns like the ViewHolder Pattern in custom ListAdapters. I’m not sure what the differences are between static and non-static classes. I’ve read about it but it doesn’t seem to make sense when concerned with performance or […]

How to highlight ImageView when focused or clicked?

A good example of this is either on the Twitter launch screen (the screen with the large icons that is seen when the application is first launch) or even just look at the application tray when you focus an application icon. Basically I need to highlight an ImageView where the highlight contours to the image […]

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