Top "Android" questions

Android is Google's mobile operating system, used for programming or developing digital devices (Smartphones, Tablets, Automobiles, TVs, Wear, Glass, IoT).

Can't start Eclipse - Java was started but returned exit code=13

I am trying to get my first taste of Android development using Eclipse. I ran into this problem when trying …

java android windows eclipse 32bit-64bit
How do you close/hide the Android soft keyboard using Java?

I have an EditText and a Button in my layout. After writing in the edit field and clicking on the …

android android-edittext android-softkeyboard android-input-method soft-keyboard
How to get current time and date in Android

How can I get the current time and date in an Android app?

android date time
How do I display an alert dialog on Android?

I want to display a dialog/popup window with a message to the user that shows "Are you sure you …

android android-dialog
How do I center text horizontally and vertically in a TextView?

How do I center the text horizontally and vertically in a TextView, so that it appears exactly in the middle …

android textview
How to fix 'android.os.NetworkOnMainThreadException'?

I got an error while running my Android project for RssReader. Code: URL url = new URL(urlToRssFeed); SAXParserFactory factory = SAXParserFactory.…

java android android-networking networkonmainthread
How can I connect to Android with ADB over TCP?

I am attempting to debug an application on a Motorola Droid, but I am having some difficulty connecting to the …

android networking tcp debugging adb
Is there a way to get the source code from an APK file?

The hard drive on my laptop just crashed and I lost all the source code for an app that I …

android android-resources decompiling apk
How to get screen dimensions as pixels in Android

I created some custom elements, and I want to programmatically place them to the upper right corner (n pixels from …

android layout screen pixel dimensions