Difference between elevation and translationZ

I tried both features and I don’t know really why I should use elevation instead of translationz or viceversa. Both generate shadow when I used them. I should use at same time (with the same value)? I should use just one? Thank you in advance! EDIT: I did a visual comparison to can see it […]

Open activity by clicking on the push notification from Parse

I want to receive a push notification from Parse and open an List activity and use intent.putextra(“dataFromParse”) before starting the activity. I’m able to receive the push but only open the MainActivity by using this: PushService.setDefaultPushCallback(this, MainActivity.class); ParseInstallation.getCurrentInstallation().saveInBackground(); I want to have this as the default, but should also be able to start the List […]

Android ImageView Is Not Displaying Image?

Can anyone tell me why the following code is not working? The Image does not appear at all. <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” <ImageView android:src=”@drawable/splashscreen” android:scaleType=”center” android:layout_width=”wrap_content” android:layout_height=”wrap_content” /> </RelativeLayout>

How to search for a value in firebase Android

I am saving data as follows in the Firebase: I want to find all records that have #Yahoo in their title. What will be the exact query for that? I am confused with the random key created. I am not sure how to handle this so i am posting it here. Firebase firebase = new […]

Android Activity restarts after Unlocking device

I am creating a simple Android project. But my every activity gets Restart when user unlock the screen(after locking). Is it normal behavior of android app? OR i have to handle it in Manifest? or some where else? Please Help…

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 […]

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