Tag: android-emulator

Enabling WiFi on Android Emulator

How to enable WiFi on Android emulator? I have tried to find this but everyone is confusing WiFi with 3G.

No internet on Android emulator – why and how to fix?

I am trying to use internet with the Android emulator, but with no success. Any ideas?

RuntimeException: Unable to instantiate application

When i run my application, everytime i am getting the below exception in my logcat: 04-14 09:29:53.965: W/dalvikvm(1020): threadid=1: thread exiting with uncaught exception (group=0x409c01f8) 04-14 09:29:53.985: E/AndroidRuntime(1020): FATAL EXCEPTION: main 04-14 09:29:53.985: E/AndroidRuntime(1020): java.lang.RuntimeException: Unable to instantiate application android.app.Application: java.lang.NullPointerException 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.LoadedApk.makeApplication(LoadedApk.java:482) 04-14 09:29:53.985: E/AndroidRuntime(1020): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3938) 04-14 09:29:53.985: E/AndroidRuntime(1020): at […]

gen already exists but is not a source folder

I am developing my Android project, After I removed a unused library, I got the error: myproject/gen already exists but is not a source folder. Convert to a source folder or rename it In my Activity code, all resources from R.java can not be resolved. I tried, right click on my project => Java Build […]

Android – Emulator in landscape mode, screen does not rotate

When I switch to landscape mode (NUMPAD 7 or CTRL+F11) the emulator rotates the screen to landscape orientation but the Android OS and none of the apps rotate. So everything is sitting sideways. Is there something in the AVD configuration that needs to be set in order for the device to rotate properly?

Which Android IDE is better – Android Studio or Eclipse?

I’m starting to develop for Android. Which IDE should I use – Android Studio or Eclipse sdk? I would like to know which one is better.

Android SDK AsyncTask doInBackground not running (subclass)

As of 15/2/2012 I have yet to find a good explanation to nor a reason why this does not work. The closest to a solution is to use the traditional Thread approach, but then why include a class that does not (seem to) work in the Android SDK? Evenin’ SO! I have an AsyncTask subclass: […]

How to play ringtone/alarm sound in Android

I have been looking everywhere how to play a ringtone/alarm sound in Android. I press a button and I want to play a ringtone/alarm sound. I could not find an easy, straightforward sample. Yes, I already looked at Alarm clock source code… but it is not straightforward and I cannot compile it. I cannot make […]

File Upload in WebView

I have been struggling to upload files from WebView since last few days and there is no progress. I googled and implemented all suggested solutions but none works, like: solutions suggested here – Android webview, file input field filechooser doesn't show up…, http://blog.tourizo.com/2009/02/how-to-display-local-file-in-android…. and so on. Problem: I have a HTML page with the following […]

Accessing localhost:port from Android emulator

I’m running a web service on my local machine that runs at localhost:54722. I want to call the service from an app running in the Android emulator. I read that using 10.0.2.2 in the app would access localhost, but it doesn’t seem to work with the port number as well. It says HttpResponseException: Bad Request.

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