Get free space on internal memory

Is it possible to get the amount of free memory on an Android device (not on the SD CARD) via the Android SDK? If so, how?

ActivityManager: Warning: Activity not started, its current task has been brought to the front

package supa.mack.doppler; import java.util.Set; import; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.bluetooth.*; import android.widget.Toast; public class doppler_test extends Activity { TextView out; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); out = (TextView) findViewById(; // Getting the Bluetooth adapter BluetoothAdapter […]

How to set edittext to show search button or enter button on keyboard?

How to set EditText to show Search button or enter button on keyboard?

How to animate floating action button using android activity transition?

I am planning to implement something like this in one of my project but the concept for the following is unclear to me, there’s no such tutorial available either, moreover you don’t get to see this very often. Here is how it looks like Click here to go to source From all the references what […]

Visual Studio Emulator for Android – Install Gapps (Google Play Services)

I’m using the new VS Android Emulator with Android Studio: It doesn’t have Google Play Services installed… so I’m following this guide to install: I’ve downloaded the proper Gapps file (in my case): Now I’ve dragged and dropped the ZIP file onto the emulator… and it’s just stalled at “copying file”… Is […]

Custom Fonts in Android

I have already read some articles and searched on Google, but I failed to do it. My problem is regarding the font-face. In Android, there are only 4 attributes in “android:typeface”: Normal, Sans, Serif, Monospace. So what do I have to do to use “Verdana” in my application? Please suggest me a correct way to […]

CheckBox in RecyclerView keeps on checking different items

Here’s the XML for my items inside the RecyclerView < xmlns:android=”” xmlns:card_view=”” android:id=”@+id/cvItems” android:layout_height=”wrap_content” android:layout_width=”fill_parent” android:layout_margin=”2dp” card_view:cardElevation=”0dp” card_view:contentPadding=”0dp” card_view:cardBackgroundColor=”#FFFFFF” > <LinearLayout android:orientation=”horizontal” android:layout_height=”fill_parent” android:layout_width=”fill_parent”> <TextView android:layout_width=”0dip” android:layout_height=”match_parent” android:layout_weight=”0.8″ android:id=”@+id/tvContent” android:textSize=”15dp” android:paddingLeft=”5dp” android:paddingRight=”5dp” /> <CheckBox android:id=”@+id/cbSelect” android:layout_width=”0dip” android:layout_weight=”0.2″ android:layout_height=”match_parent” android:button=”@drawable/cb_checked” android:gravity=”center_horizontal” android:textAlignment=”center” android:layout_gravity=”center_horizontal” /> </LinearLayout> </> And here’s the RecyclerView adapter that inflate the layout above […]

Unable to run 'adb root' on a rooted Android phone

This question already has an answer here: adb shell su works but adb root does not 6 answers

how set emoji by unicode in android textview

Hi I’d like to do the following: ??? unicode = U+1F60A String emoji = getEmijoByUnicode(unicode) String text = “So happy ” textview.setText(text + emoji); to get this in my textview: So happy 😊 How to implement ‘getEmijoByUnicode(unicode)’? What should be the type of ‘unicode’? (String/ char/ int??!) Please note that I do NOT want to […]

Add Google Play Services to Eclipse project

I’ve red a number of posts and articles but it’s not working for me. I am not able to add/use the Google Play Services in my project. My steps: I start a project which is using the Google Api’s 2.2 I have download the Google Play Services using the SDK I import the Google Play […]

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