Burst of app crashes immediately after publishing to Google Play

Immediately after publishing a new version of an application on Google Play, I get a burst of new crashes from an unknown device called “unknown Full Android on Emulator”. Here is a screenshot from Crashlytics after the application was uploaded to Google Play. This crash did not come from a real device. Does anyone know […]

Load local html in WebView?

I want to load a local html into a WebView WITHOUT using “file:///” because that does not allow cookies. Is there a way to use something like “localhost” ? Secondly, I could not find a way to enable cookies in the getSettings(). Because cookies are not allowed while using “file:///”.

Trying to get the display size of an image in an ImageView

I’m trying to get the real size of an image displayed in an image view. Actually my image is larger than the screen and the imageview is resizing the image to diplay it. I’m looking for this new size. I’ve tried to override the onDraw method of the ImageView in a custom view but I’m […]

How to browse localhost on android device?

I try to browse localhost on my htc magic. I have connected my device with eclipse via usb. browsing I get a “Page not avialable. I remember, some days ago it worked but on the emulator I am able to browse localhost any ideas? regards

Get my phone number in android

How can I get my phone number in android when I use: TelephonyManager tMgr =(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); String mPhoneNumber = tMgr.getLine1Number(); and use: <uses-permission android:name=”android.permission.READ_PHONE_STATE” /> return Null why?

Shape drawable as background, a line at the bottom

I am using a drawable as a background of a TextView just to have a divider line below the text. A achivied it with this drawable-xml: <?xml version=”1.0″ encoding=”utf-8″?> <layer-list xmlns:android=”http://schemas.android.com/apk/res/android” > <item> <shape android:shape=”rectangle”> <solid android:color=”#FFDDDDDD” /> <gradient android:angle=”0″ android:startColor=”#FFAAAAAA” android:endColor=”#FFEEEEEE” /> </shape> </item> <item android:bottom=”2dp”> <shape android:shape=”rectangle”> <solid android:color=”#FF000000″ /> </shape> </item> </layer-list> […]

Tap outside Android dialog to dismiss it?

I was wondering if it’s possible to somehow tap outside a popup dialog (or an Activity with a dialog theme), and dismiss it by just tapping outside of it? I made a quick picture to illustrate it: Normally, you have to press the back key to dismiss the dialogs, but on Honeycomb it could be […]

What are the sizes of the icons in Android notifications action-buttons?

In expandable Notifications: what dimensions (in dp) should the icons have? Like the Icons for Snooze and Email here:

Error:Cause: buildToolsVersion is not specified

I create a simple project and then I right-click on the project and then I use the make mudole app option. Now I have two build.gradle folders: 1- build.gradle:project My Application. 2- build.gradle: Mudole app. the first build.gradle is as follows: // Top-level build file where you can add configuration options common to all sub-projects/modules. […]

No resource identifier found for attribute 'parentActivityName' in package 'android'

I’m trying to complete this tutorial from the Android Page http://developer.android.com/training/basics/firstapp/starting-activity.html But I Eclipse throws this error: “No resource identifier found for attribute ‘parentActivityName’ in package ‘android’” I have included the android-support-library. Here is the whole AndroidManifest.xml code <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.example.myfirstapp” android:versionCode=”1″ android:versionName=”1.0″ > <uses-sdk android:minSdkVersion=”11″ android:targetSdkVersion=”15″ /> <application android:icon=”@drawable/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > <activity android:name=”.MainActivity” […]

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