Android Tutorial
Android, an open source operating system for mobile devices (Smartphone and tablet), led by Google. The Android SDK provides a set of tools and APIs to develop Android applications, 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.
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 publishing more in future.
1. Quick Start
Get you start in Android programming.
- Android hello world example
Tools and SDK to develop Android applications.
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 the checkbox component. - Android radio buttons example
Use “RadioButton” and “RadioGroup” to render radio button component in the 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 us that your task takes time to finish. - Android alert dialog example
How to display an 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 buttons’ images depend on the button states.
4. Layouts
Play with Android layout controls.
- Android LinearLayout example
Most common layouts, arranges components in horizontal or vertical order. - Android RelativeLayout example
Most flexible layouts, arranges components based 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.
Its Really Very Useful For Me..
ok so what we can do,,,
haha
Very informative and well formatted useful article. Well done job Mkyong! For beginners I would suggest short guide to develop basic android app easily. Look into ace blog
hi sir ,
in the menu content no hibernate tutorial link .please add that one
thank u its vry use full.
i want to knw how to store the data in android can u please help
Really this is a very useful post for android users. Thanks for sharing these nice informations. Click here for Telegram channels .
Really a very good tutor.
How can I just append one Audio files to another in android studio
i want to join the discussion am still a student but i need some help from you
Could you help me to understand how to implement the mvp patter on android applicacion using fragments?
hello sir i want to make some animations by clicking button in my layout can u please help me in that
must visit
http://www.javaproficiency.com/2015/09/android-tutorial-for-beginners.html
Your Tutorial are really very helpful.please help me in following code.how to get Location in Android??Please provide the code sir??
Great tutorials; by far the clearest to follow and easy to grab code snippets.
Keep up the good work, much appreciated.
thank you very much…..I am [email protected]
????????
? ?????
?????????????
It is really helpful!
The examples posted here are very helpful for my app development.. But i’m really stuck here..
i.e. I have two activities A and B.. which has a radiogroup each.. if i select a combination f,,one from A and one from B , it should direct to the next activity (i.e Activity C ) accordingly….Is there any way u can help me in this..????
Thanks in advance 🙂
you are awesome!
i know i m awwsome…….
bdw thanks…
hi im trying to develop android app where i have a launcher activity as main activity with login through google in third screen i’ve register button on register button click i want to open fourth activity as launcher activity but im unable please guide me.I wrote the intent in restart method but when app is killed its going to main activity
mat kar pagli itna kaam
Still interesting after a couple of years. WOuld be great to update for Android Studio.
HI All
I would like to dis display list of questions by the user and Answers given by others for the corresponding Questions.
On click My Questions it should display the list of Questions.If we click on each question it should display the Answers given by others in Android.Have any body done this earlier.if so,Can you please help me out?
To get Android installed, you can follow the instructions mentioned here –
http://www.allprogrammingtutorials.com/tutorials/android-sdk-installation-instruction.php
SIr I want to wirte a bluetooth application that scan and pair for incoming connection.If paired is complete I want to show message with Toast and change activity.And then,I want to be buletooth serial chatting.
To learn about basics of android visit here http://www.j2eebrain.com/android-tutorial
Find Hundreds of Libraries, Tools, Plugins and Resources for Android Development from Android-Libs.com
Sir, how can i add a multiple paragraph in a text view?
I used string.xml. even i uses n , i couldnt add more than some lines. how can i rectify it?
Please Update the Android Tutorials with more examples
sir please tell me how insert the button into the alert dialog box….
i am very beginner in android. your tutorial is very helpful for me. now, i need some tutorial on database using SQlite. Please give me some tutorial.
1) http://www.tutorialspoint.com/android/android_sqlite_database.htm
2) http://pulse7.net/android/sqlite-database-android/
Hope It Might help you..
Thank u for your tutorials. i need a tutorial on how to call Images in Android app from webservices.