Quantcast
Channel: vogella blog » Android
Browsing all 12 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Android SQLite and ContentProvider Book available for the Kindle

Today I released my new Android SQLite and ContentProvider book for the Kindle device. This book demonstrates how you can develop Android applications using the integrated SQLite database. It also...

View Article



Image may be NSFW.
Clik here to view.

Android – INSTALL_FAILED_INSUFFICIENT_STORAGE

If you work with the Android Emulator and deploy to it for a while you may receive the following error message in the LogCat View. Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE The reason for...

View Article

Android StrictMode – NetworkOnMainThreadException

I have writen about StrictMode before. In case you have not noticed; StrictMode for network access results in a fatal error as for Android 3.0 (Honeycomb) or later, unless your app is targeting an API...

View Article

Image may be NSFW.
Clik here to view.

How to center a Button in an Android Layout?

In my last Android Training several people asked how they could center a single view, e.g. a Button, so I assume it is worth a short blog entry. If you have a single Button in your Activity and you...

View Article

How to determine the ID in the R.java file of a drawable resource in Android?

Assume you have several drawables in your Android resource folder and what to iterate over them. You use a certain naming schema and would like to use this to determine the resources ID’s. The...

View Article


Android: How to check if a LocationProvider is available?

In Android the LocationProvider for example for GPS might not be available. You can find out if a LocationManager is enabled via the isProviderEnabled() method. If its not enabled you can send the user...

View Article

Image may be NSFW.
Clik here to view.

How to define a Android Multiline EditText

Defining an Android Mulitline EditText Field is done via the inputType=”textMultiline”. Unfortunately the text looks strangely aligned. To solve that also use the gravity=”left|top” attribute....

View Article

Image may be NSFW.
Clik here to view.

Setting to update Android applications only if connected with WLAN (Android...

In case you are on a limited data plan you should setup your device to update your applications and the system image only via WLAN. To set this up, open the Google Play application, open its options...

View Article


How to enable the Development Settings on your Android 4.2 phone by Lars Vogel

Developer Settings in your Setting application of your Android phone allow to set configurations which simplify the analysis of your application. For example you can enable that the touch area is...

View Article


Determine the active Android framework maintainer by Lars Vogel

If you want to know the current Android maintainer you can use the following link: Android framework maintainer Thanks to Arvid Gerstmann for pointing me to that URL on Google+.

View Article

Using XML layout references in Android

Android supports resource selectors based on qualifiers. For example to use a special layout file for activity_main.xml on a tablet in landscape mode you would typically define a layout file also...

View Article

Android Development Tools (ADT) for Eclipse now building with Maven Tycho

The ADT project is now using Maven Tycho for there build. See Bug report and ADT build instructions for details.

View Article
Browsing all 12 articles
Browse latest View live




Latest Images