Category «Android»

Supporting Different Platform Versions in Android

While the latest versions of Android often provide great APIs for your app, you should continue to support older versions of Android until more devices get updated. This lesson shows you how to take advantage of the latest APIs while continuing to support older versions as well. The dashboard for Platform Versions is updated regularly …

Supporting Different Screens in Android

Android categorizes device screens using two general properties: size and density. You should expect that your app will be installed on devices with screens that range in both size and density. As such, you should include some alternative resources that optimize your app’s appearance for different screen sizes and densities. There are four generalized sizes: …

Supporting Different Languages in Android

It’s always a good practice to extract UI strings from your app code and keep them in an external file. Android makes this easy with a resources directory in each Android project. If you created your project using the Android SDK Tools (read Creating an Android Project), the tools create a res/ directory in the …

Starting Another Activity in Android

you have an app that shows an activity (a single screen) with a text field and a button. In this lesson, you’ll add some code to MainActivitythat starts a new activity when the user clicks the Send button. Respond to the Send Button In the file res/layout/activity_main.xml, add the android:onClick attribute to the <Button>element as …

Building a Simple User Interface

n this lesson, you create a layout in XML that includes a text field and a button. In the next lesson, your app responds when the button is pressed by sending the content of the text field to another activity. The graphical user interface for an Android app is built using a hierarchy of View …

Building Your First Android App

Welcome to Android application development! This class teaches you how to build your first Android app. You’ll learn how to create an Android project with Android Studio 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 …

What is in the Android SDK?

TheAndroidSDKisdownloadedinasimplezippedpackage(asdescribedinChapter3). ThebulkoftheAndroidSDK,innumberoffiles,consistsofdocumentation,with programmingAPIs,tools,andsamplescomprisingtherest.Thissectionprovidesacloser look at exactly what is included in the Android SDK. Navigate to the folder where you unpacked the Android SDK so that you can begin to explore the folder structure within. While there are a few files in the root folder, like android.jar (a compiled Java application containing the core SDK libraries …

What is Android ?

Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers. Android was developed by the Open Handset Alliance, led by Google, and other companies. Android offers a unified approach to application development for mobile devices which means developers need only develop for Android, and their applications should …