Text overlay over imageview in android

I am trying to have textviews overlay over imageviews. Something like this Can someone help me with the code.

android: zxing barcode scan successful but not returning from activity

I am successfully using zxing to scan codes, by calling the installed barcode reader’s intent, but when it beeps and indicates a good scan I expect the zxing activity would return control so I can process the result, but it sits there and tries to scan again. I have to press the back button and […]

How to vertically align text in a TextView with Compound Drawable

This question is in a way a continuation of my last question. My problem now is pretty much the same, except that instead of separating the image and text in differend views (namely ImageView and TextView) I learned I can use the attribute android:drawableLeft to set an image “for” my text (the suggestion was pointed […]

What is the best server client communication protocol to use in Android and iOS?

We have a server application (implemented in Java) that will provide some data for our mobile apps. The apps will be created for Android and iOS. Which is the best protocol / library for this purpose? The overhead of the protocol should be as small as possible. Thanks. Edit: It should be a request->response szenario. […]

Android Galaxy S4 — Activity that is visible over lock screen

A few years ago, I wrote an alarm app that worked on Android 2, and I’m now trying to upgrade it to work on Android 4. Specifically, on the Samsung Galaxy S4. On Android 2, if the phone was sleeping, it would wake the phone up and display a “Snooze or Dismiss” screen over the […]

Highlight All Words that is searched via EditText

Hello I want to know how to highlight all Words that is inputted in the EditText and will appear in the TextView this post is related to this one Highlight Textview Using EditText

How can I change the duration for an Android AnimationDrawable animation on-the-fly?

I’m new to ANDROID platform. I’m using the following to animate a set of 16 “frames” using AminationDrawable in my app: In the XML file I have: <animation-list xmlns:android=”http://schemas.android.com/apk/res/android” android:oneshot=”false”> <item android:drawable=”@drawable/image_1″ android:duration=”200″ /> <item android:drawable=”@drawable/image_1_25″ android:duration=”200″ /> <item android:drawable=”@drawable/image_1_5″ android:duration=”200″ /> <item android:drawable=”@drawable/image_1_75″ android:duration=”200″ /> <item android:drawable=”@drawable/image_2″ android:duration=”200″ /> <item android:drawable=”@drawable/image_2_25″ android:duration=”200″ /> <item […]

Multiple Selection Spinner

I have a spinner that acts like a filter for searching among several categories. But the problem is that the spinner allows only one category to select from. Is there a way to obtain a multiple selection behavior for the spinner, or what other alternatives exists?

How to create a custom LayoutParams to be used on a custom layout?

I’m fairly proficient at creating complex custom layouts based on ViewGroup. The only thing I’m missing is the ability to create my custom LayoutParams. I really need the ability to get the margins and why not create other extra params to pass in to the parent. How can I go about creating a custom LayoutParam […]

Android BLE: onCharacteristicRead() appears to be blocked by thread

I’m implementing a series of characteristic reads against a BLE device. Because readCharacteristic() executes asynchronously, and because we have to wait until it completes before issuing another “read” call, I used a lock to wait() and then in ‘onCharacteristicRead() I notify() the lock to get things going again. When I wait() after calling readCharacteristic(), I […]

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