Android Notes

Aus CaiaWiki

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Eclipse + Android SDK Installation

Ist bei On the Fence Development gut beschrieben.

Sinnvoll ist auch DroidDraw - ein grafischer GUI Editor für Android.

Code Snippets

Text Property zur Laufzeit ändern

Hier für einen Button:
Button myButton = (Button) findViewById(R.id.button1);
myButton.setText("Neuer Text");


Ausrichtung ändern

Landscape (quer)
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
Porträt (hochkant)
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  • Notwendige Imports:
import android.content.pm.ActivityInfo;

Links

Android Libraries - Documentation

Android developer guide

Writing efficient code for Android

Android's security model

Getting started with Android Development

How Do I Develop an Android Application?

Guide to Using Google Android Databases

Groups

Android Developer Community

Android Internals+NDK - Google Group

StackOverflow - Android

Links zum Einstieg

Tutorials from android developers. Views mal anschauen!

Mehrere interessante Programmbeispiele

Persönliche Werkzeuge