Android Tutorial

Android, an open source operating system for mobiles devices (smartphone and tablet), led by Google. The Android SDK provides a set of tools and APIs to develop Android application, using Java. So, if you know Java, Android programming is easy :)

In this series of tutorials, we show you the list of basic tutorials to get you start program Android easily.

Note All Android tutorials are developed in Eclipse 3.7, and tested with Android 2.3.3.

P.S This is just the initial version of Android tutorials, will keep publish more in future.

1. Quick Start

Get you start in Android programming.

  • Android hello world example
    Tools and SDK to develop Android application.

2. Fundamentals

Some Android basic stuffs.

  • Android activity example
    Understand Android’s activity, a simple example to navigate from one screen (activity) to another screen (activity).
  • Android wrap_content and fill_parent example
    The different between wrap_content and fill_parent to control the component’s width and height.
  • Attach Android source code to Eclipse IDE
    Android source code is important to understand how Android works, a guide to attach Android’s source code to Eclipse IDE.

3. User Interface Controls

Play with Android UI controls.

  • Android button example
    Use “Button” to display a simple button.
  • Android textbox example
    Use “EditText” to render an editable textbox component.
  • Android password example
    Use “EditText” + inputType=”textPassword” to render a password component.
  • Android checkbox example
    Use “CheckBox” to render checkbox component.
  • Android radio buttons example
    Use “RadioButton” and “RadioGroup” to render radio buttons component in group.
  • Android toggle button example
    Use “ToggleButton” to render a button which has only two states (On and Off).
  • Android rating bar example
    Use “RatingBar” to render a rating bar in stars icon.
  • Android spinner (drop down list) example
    Use “Spinner” to render a drop down box for selecting items.
  • Android date picker example
    Use “DatePicker” and “DatePickerDialog” to render a date picker component.
  • Android time picker example
    Use “TimePicker” and “TimePickerDialog” to render a time picker component.
  • Android analogclock and digitalclock example
    Use “AnalogClock” and “DigitalClock” to render a clock like component, which supports hours, minutes and seconds.
  • Android progress bar example
    Use “ProgressDialog” to display a progress bar in dialog to tell use that your task is takes time to finish.
  • Android alert dialog example
    How to display a alert box.
  • Android prompt dialog example
    Custom AlertDialog example.
  • Android custom dialog example
    Custom Dialog example.
  • Android Toast example
    Custom Toast view example.
  • Android ImageView example
    Use “ImageView” to display an image file.
  • Android ImageButton example
    Use “ImageButton” to display a button with a customized background image.
  • Android ImageButton selector example
    Use “Button” and “selector” tag to display button’s images depend on the button states.

4. Layouts

Play with Android layout controls.

  • Android LinearLayout example
    Most common layout, arranges components in horizontal or vertical order.
  • Android RelativeLayout example
    Most flexible layout, arranges components base on the “relative” or sibling component.
  • Android TableLayout example
    Most flexible layout, arranges components in row and column format, just like HTML table , <tr> and <td>.
  • Android ListView example
    Display components in a vertical scrollable list.
  • Android GridView example
    Display componenets in a two-dimensional scrolling grid.
  • Android WebView example
    Allow you to open an own windows for viewing URL or custom html markup page.

5. FAQs

Some common asked questions in Android.

  • How to open an URL in Android’s web browser
  • How to set default activity for Android application
  • How to make a phone call in Android
  • Where to download Samsung Galaxy S2 USB driver?
  • Android debugging on real device
  • Android – How to center button on screen
  • How to turn on/off camera LED/flashlight in Android
  • Android : how to check if device has camera
  • How to send SMS message in Android
  • How to send Email in Android
  • Android : The connection to adb is down, and a severe error has occurred.

References

  1. Android Developer
  2. Android Fundamental
  3. Android in Wikipedia
Tags: android , Tutorials 来源:http://www.mkyong.com/tutorials/android-tutorial/

更多相关文章

  1. CSS 元素样式来源
  2. html表单、元素的来源及csss外部样式和上下文选择器
  3. 今天聊点干货—关于CSS样式来源
  4. 苹果Mac如何设置允许任何来源应用程序安装?
  5. 第四章 MPS来源需求 第3节 MPS来源需求
  6. 最小二乘法来源(翻译)
  7. 介绍一个可以离线查询 IP 来源和 ISP 信息的终端利器
  8. 电商流量来源分析平台:从数据底层到数据可视化
  9. android Map遍历的四种方式

随机推荐

  1. android找不到图片资源
  2. 浅析Android手机卫士读取联系人
  3. Android(安卓)中的盒子模型
  4. Android:常用属性整理
  5. Android的UI结构试图工具hierarchyviewer
  6. 转:打造一款 Android(安卓)联网 tic-tac-t
  7. Android(安卓)RelativeLayout 属性
  8. Android中animation方面知识: Android:int
  9. Realtek 8192cu 支持 Android(安卓)Hotsp
  10. Android抽屉实现