background preloader

Android

Facebook Twitter

Nyheter. Hello, World. Welcome to Android application development!

Hello, World

This class teaches you how to build your first Android app. You’ll learn how to create an Android project and run a debuggable version of the app. You'll also learn some fundamentals of Android app design, including how to build a simple user interface and handle user input. Set Up Your Environment Before you start this class, be sure you have your development environment set up. Note: Although most of this training class expects that you're using Android Studio, some procedures include alternative instructions for using the SDK tools from the command line instead. This class uses a tutorial format to create a small Android app that teaches you some fundamental concepts about Android development, so it's important that you follow each step. Anddev.org. A Visual Guide to Android Graphical User Interface Widgets. Common Tasks and How to Do Them in Android. Android SDK and Eclipse ADT on Fedora 14/13, CentOS 5.5, RHEL 5.5/6.

This is guide howto install Android SDK Tools r16 and Eclipse ADT (Android Development Tools) Plugin on Fedora 16, Fedora 15, Fedora 14, Fedora 13, CentOS 6.2/6.1/6 and Red Hat (RHEL) 6.2/6.1/6.

Android SDK and Eclipse ADT on Fedora 14/13, CentOS 5.5, RHEL 5.5/6

This Guide Contents 1. Preparing Your Development Computer and Install Required softwares 1.1 Install Sun/Oracle Java 7 JDK/JRE 1.2 Install Eclipse SDK 3.7 (Indigo) 2. 2.1 Change root user 2.2 Download and Install Android SDK Note: Latest SDK r16 (Android 2.3 Gingerbread and 3.x Honeycomb) emulator is currently working only with Glibc 2.7 or greater, so that’s why CentOS 5.7 and Red Hat (RHEL) 5.7 needs a newer version of Glibc to run Android SDK tools. Errors on CentOS 5.7 and Red Hat (RHEL) 5.7 looks following: 2.2 Extract Android SDK 2.3 Move Android SDK to right location 2.3 Add Write Permissions to /opt/android-sdk 2.4 Add Android SDK into PATH environment variable Add following lines to /etc/profile or $HOME/.bash_profile 2.5 64-bit Systems needs following 32-bit system packages.

Building Custom Components. Android offers a sophisticated and powerful componentized model for building your UI, based on the fundamental layout classes: View and ViewGroup.

Building Custom Components

To start with, the platform includes a variety of prebuilt View and ViewGroup subclasses — called widgets and layouts, respectively — that you can use to construct your UI. A partial list of available widgets includes Button, TextView, EditText, ListView, CheckBox, RadioButton, Gallery, Spinner, and the more special-purpose AutoCompleteTextView, ImageSwitcher, and TextSwitcher. Among the layouts available are LinearLayout, FrameLayout, RelativeLayout, and others. For more examples, see Common Layout Objects. If none of the prebuilt widgets or layouts meets your needs, you can create your own View subclass. Creating your own View subclasses gives you precise control over the appearance and function of a screen element.

The sections below explain how to create custom Views and use them in your application. The Basic Approach A Custom View Example. List of Sample Apps. Welcome to code samples for Android developers.

List of Sample Apps

Here you can browse sample code and learn how to build different components for your applications. Use the categories on the left to browse the available samples. Each sample is a fully functioning Android app. You can browse the resources, source files and see the overall project structure. You can copy and paste the code you need, and if you want to share a link to a specific line you can double-click it to the get the URL. Import Samples from GitHub Android Studio provides easy access to import Android code samples from GitHub and is the recommended method to retrieve Android code samples. To import a code sample into Android Studio: In the Android Studio menu, select File > Import Sample to open the Import Sample wizard. Note: When starting Android Studio, you can also select Import an Android code sample in the Welcome to Android Studio wizard to import a sample project from GitHub as a new project.

Download Samples.