How to kill an application with all its activities?

Possible Duplicate: Quitting an application – is that frowned upon? I want to offer the user an option to exit the application as I need to delete some sensitive data, which is stored in the SharedPreferences as long as the application needs it. As soon as the user wants to exit, the password in the […]

Android Studio 1.2 – Project encoding mismatches by default

I’m a bit of an Android rookie, and I just upgraded to Android Studio 1.2. When I make a new project (API 16: Android 4.1 (Jelly Bean)), I immediately get the following warning: Warning:The project encoding (windows-1252) does not match the encoding specified in the Gradle build files (UTF-8). This can lead to serious bugs. […]

How can I force the Action Bar to be at the bottom in ICS?

Ice Cream Sandwich (Android 4.0) adds the option of having the Action Bar at the bottom of the screen on phones, and that’s something I’d love to have in an application of mine. The docs mention uiOptions=”splitActionBarWhenNarrow” for when you want something, i.e. tabs, at the top and Action Bar shortcuts at the bottom. I’ve […]

“aapt.exe” exited with code 1 when building Mono for Android project

I put together a fairly simple Mono for Android application that does nothing more than play an “AndroidResource” MP3 in a background service (copied from Greg Shackles latest Visual Studio Magazine article on Background Services in MfA). I put the code together, with my own custom MP3 file, and tried to build it, only to […]

Samsung Galaxy s3 emulator settings

Can anyone with galaxy s3 access confirm the below emulator settings for Galaxy s3? Target: Google APIs – API Level 15 Skin: Built-in WXGA720 Hardware Back/Home: yes Abstracted LCD density: 320 Keyboard lid support: no Max VM application heap size: 48 Device ram size: 1024

Android Zxing change orientation to portrait

I’m trying to rotate Zxing display after reading a few questions and posts about the issue. After following the instructions, the display did rotate, but the rectangle of the scanner is not positioned as it should (as can be seen on the image attached). This is what I have done: in CameraConfigurationManager: camera.setDisplayOrientation(90); in […]

android activity has leaked window$decorview Issue

I am working with Android application to show network error. package; import; import; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import; import; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class NetErrorPage extends Activity implements OnClickListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.neterrorlayout); Button reload=(Button)findViewById(; […]

Is it possible to run Xamarin Mono on Linux?

I want to know if it is possible to run Xamarin on Ubuntu. I don’t like java, so I want to make Android apps with C#. Is a package for Ubuntu, because I haven’t seen one so far? Or… Can I run Xamarin on Ubuntu using Wine? Or… Is there an alternative software (with the […]

How to make a Facebook Messenger-like notification like this in Android

I want to implement notifications like the one in the following image. Notification appears any time. I think it’s of course a background service waiting for new messages from the server then shows this. What I think this is an activity implemented as dialog with this custom UI. Am I correct? And is it a […]

Slow uploads to running Android emulator

I have searched but not found any queries or answers for my specific circumstance. I have a fast new machine with plenty of memory running Windows 7. I’m using the latest Eclipse and Android SDK. When I run an app the emulator takes about 45 seconds to start (blazingly fast for the emulator!) from run […]

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