The tutorials are sectioned: Tutorials I, Tutorials II, Tutorials III, Tutorials IIII (Material Design), and Tutorials V, which explore
the topics of App Metrics, App Monetization, and App Distribution.
In the following section, you can read about the app topics that are covered in each of the 'Tutorials' sections I - IIII, and topics that are discussed in Tutorial V are also outlined.
The first tutorials explain in detail the coding pages within an android app (7 tutorials-reading time: about 30 mins);
(14 tutorials -total reading time 1-1.5 hour; interactive time to complete each app, about 1 hour per tutorial)
In these tutorials, you begin by creating your own android app; a simple one page app containing one activity.
To create your first app you will use a 'template' app; making it easy to create and learn at the same time.
Your app is created using AIDE,(an android app used for Creating Android Apps on your Android Tablet or Smartphone)
Once your app is created; we then edit the app and this is how we learn to code Android Java/XML.
Learn to add buttons, text, images; learn to code background color: screen orientation;
learn to code layout types like Linear layout, Frame layout, Horizontal Scrollview;
learn how to code a customized style, a pre defined system theme; and how to implement a Toast Text Message; learn how to use 'android:id' in coding elements.
In tutorials III, we will make apps with additional functionalities and features.
In our first tutorial, we first learn about Shape Drawables, the various types of, and how to implement a shape drawable line into our android app
A drawable line is a great for sectioning your app for any number of purposes.
WebViews - Ideal for bringing web links into your apps interface. In making this app, we will learn when to use a webview, and how to add one to your app. Android Tutorial WebView - how to add one to your android app
Splash Screen - Splash screens are shown to your users before the first app page; and as the name suggests, they are usually a matter of seconds; ideal for promoting products, coupons, deals, or just adding your own logo for branding.
With a timed splash screen you can use any seconds you like; although preferably 1, 2, or 3 seconds. In this tutorial we will make an app with a Splash Screen
Gradient Drawables - Adding style and color to your app's interface (UI) can be done using a variety of methods such as background colors, and android platform themes; which we have learned in our previous tutorials. Gradient drawables can also be used for this purpose.
Gradient drawables are used to add more than one color to your app elements such as: buttons, textviews, and layout backgrounds.
Typically, you use two similar colors;
one lighter and the other darker;
however, any combination of colors can be implemented.
In this tutorial, you will make an app with several gradient drawable colors, and learn how to create the different types; and then add them to your app buttons and the Linear Layout background. Android Tutorial - Gradient Drawable App
In the next 3 tutorials, we learn to make android apps with Fragments.
Fragments were added to the Android Platform in API 11. Fragments are ideal for modulizing your app's interface. There are many ways to design and customize your app interface using fragments.
For our tutorials we will make apps with these Fragments:
a weighted fragment, a listview fragment, and a tabbed fragment.
With a 'weighted fragment app' you add two fragments to the screen; and then section them by using a 'percentage of calculation'. Each fragment
is given a weight.
A 'listview fragment app', has two fragments; and can be used to itemize and list any number of items in your app.
And, a 'tabbed fragment app', is two or more fragments that are tabbed and you can browse each tab which contains its own fragment(screen view).
Share Intents - Sometimes, you might want to share images and text from your app with other apps on your device or to social networks like Twitter and Facebook. To share data like this, we need to code an 'Intent', in this case, a Share Intent.
You can add a share intent method to an app your making which will allow the user to share text and images.
In this tutorial we learn how to code a simple share intent for text.
For sharing images we must create a Share Intent for Images, which you can learn to code in this tutorial, how to share an image using a share intent method
Media Player - is a code class for android that allows you to play media; like audio, video and stream data as well. In its simplest form, you can have a audio file play automatically when an app page loads into the screen view. There are also many player controls you can add. In this Media Player Audio tutorial; we will make an app to play an audio file with two buttons; Play and Pause.
Media Player with Audio
Video Player - having a video player allows you to play videos within your android app. There are several coding methods you can use to do this; for this app we are using the Video View and Media Controller methods. Learn how to code a video player in this tutorialCoding Video Player
Localization - Localizing your app for languages from different regions of the world is something you can implement to give your app more exposure and potentially more downloads and sales.
In this app tutorial, you can learn how to code support for languages. Localize Your App
ListView - ListView is a common user interface in android apps. Basically, it allows you to list items in a row format. You can have one, two or more lines of data in a row. The data can be just text, or text and images, or just images. You can customize listview as you like.
And, ListView is scrollable once your rows exceed the physical parameter of your device view.
In these next two tutorials you can learn to code a simple listview, and a listview that displays a 'toast' message.
Android Tutorial, Coding a Simple ListView
How To Code Android, ListView with Toast Message
Sliding Drawers are often used in UI designs for apps. Sliding drawers do as the name suggests; they slide out from the side of the app, and can be returned to original slide positions using Toggle like handle. They can slide from the sides or top or bottom of the app view.
In these following tutorials, you can learn to code a sliding drawer, and a sliding drawer with a listview.
Android Tutorial, Sliding Drawer
Android Tutorial, Sliding Drawer with ListView
These tutorials introduce you to the Material Design classes which include many new code classes and improved updates to older classes. In tutorials IIII, you will make apps with some of the new code classes of Material Design, including 'Elevated View' ,'Shadowed Container' and how to implement a basic 'Toolbar'.
You will also makes apps with the new 'Themes' available to use in Material Design. Material Design code classes were added in Android version 5 API 21. Some of these new code classes are considered important because of their improved functionality over some older but similar code classes while others for new design layouts or features like 'Floating Tabs', 'Recycler View', and new 'Color Blends' for the user interface (UI).
Tutorials V cover the recommended components of app development which are added once your app has been built, tested, and is ready to be added to the various app stores, your website, and social media platforms where users can download your app.
In Tutorials V, you will learn about the most common 'Metrics Tools' used in analyzing mobile app performance, including methods used to determine user behaviour.
App Monetization allows you to add advertising to your app, charge a fee for updates or premium features in your app, and also charge for removing ads from your app.
And App Distribution is the marketing of your app to the app stores like Google, Amazon, and the many smaller venues where android apps are downloaded by users.
In these tutorials we explore the various online websites, (free and paid), that offer these essential app services.
Each tutorial also references the developer pages at Android Developer, where you can view all available coding properties for each Code Class we discuss.
You will learn many Code Classes, as we add them to the App. You can create your own App from the code from each of the tutorials.
If you haven't already, do read the Article for Beginners:
gohere to read it
Java XML code snippets;
You can view specific coding tasks; by browsing the HOW TOs section of our side menu; where we have added each Tutorial; or by clicking the 'Code Examples by Task' link.
These Android Tutorials are using the Android Programming Language - XML Java, and we are using the Software Application AIDE to create, build, and run our Android Apps.
The AIDE application can only be installed on a Tablet or (android device), with a minimum Version Android 4
For these tutorials, we are using AIDE on a tablet with Android Version 4.2.2(API 18); and on a cell phone with android version 6.01(API 23) All the coding we use is considered 'standard codes', and should function without issues across all android platforms up to the current version of 9 which is API 28.
AIDE can be installed on any android device from version 4 to version 8.
Read about APIs
With the Free AIDE version:
create simple template apps using java/xml android, you can practice your coding using the coding editor,
read two free android programming basic lessons.
fyi: (We are not associated with AIDE in any manner; when I downloaded and installed our first version of AIDE(couple years ago), the AIDE app was mostly free to CODE and RUN apps and the paid version was about 10 dollars) Having said that, if you plan on publishing your app to Google and Amazon for profit, then do consider the paid version)
If your prefer to learn on Android Studio, for desktop;(on your computer) the required apps are free to install and use. There is a link to them on this page and each tutorial page.
To use the code from our tutorials with Android Studio; just copy paste the code into their coding editor, or create a page to paste the code onto; like mycode.txt, or use an online free note service like Evernote.
Evernote lets you copy and paste(anything from websites),and sync files added between devices and desktop. You can login from android device or desktop computer.
AIDE vs Android Studio
Whether you learn with AIDE tutorials or Android Studio SDK tutorials, the
coding you will learn is the same as long as you choose Java XML as the program language.
If you create your app on your computer you will need to test it also in an android test environment; For desktop users of Android Studio; there is a program that will test your app in Android Studio, however, with AIDE, the process is much simpler because the app is already on your tablet, all you have to do is RUN and then INSTALL it.
There are some Android terms and meanings that would be helpful to know for these tutorials. Being familiar with them will likely make your reading/coding easier as you complete each tutorial. Each tutorial also has additional terms and meanings relevant to that particular android development topic.
apk - is the package name of your android app. This file, example: myandroidapp.apk is the file you distribute to the market places if your going to market your app once you create it. Or, if you want to have it available on your website for download.
When you first create your app, you give it a App Name, and a Package Name. The app name is whatever you want to name it: example, JapaneseVerbs. The package name is named/saved using this format: com.domain.packagename.
have a domain name, that is usually used; so if you had a domain named Japanese.com; you might name your package like this:
com.japanese.learnverbs The package name cannot be changed once created; the app name can be changed within your appProject; just select the AppName Example: JapaneseVerbs, and longPress till you can choose either of: rename, or delete the file.
The apk file can be found in your appProject in the 'bin' folder. You will know its the app apk because of the .apk format at the end of the name.You can copy paste this from your files hierachy in your tablet's file manager - just look for 'AppProjects'; you cannot copy/paste it directly within AIDE editor.
You can also use an APK Analyzer to find the completed app apk file (.apk) within your tablet or cell phone's files. There are several on Google Play for free download. Some have advertising, and
small fee to remove advertising.
This is also ideal if you need to find your apps 'certification number' which is required at some online web services that offer free api's for you to use in your app. The APK Analyzer tool will provide this information on all your devices apks. Just look for the app name once you initiate the APK Analyzer tool. Also Read Using an APK Analzyer Tool for Your Mobile Apps
keystore - is the folder you create to store the signed keys for your completed android app. Basically you first create the keystore in AIDE or Android Studio, and then you add the signing key once your have completed building your app. No need to have one until your android app is completed and your ready to distribute it to the markets or for your website. In AIDE, there is a tool for this in Settings. Also Read How to create a keystore for android apps
Android App -
refers to an app that is written with Java XML
Android Native - refers to an app that is written with C Java XML
Create new Project -
means to create a brand new android app
AppProjects - when viewing your apps AppProjects is the first folder you will see, all projects(your apps) and then all files reside within this folder directory AppProjects/nameOfApp/
AIDE Sample App - is a ready made app,usually containing code for simple pages (textViews) for an app; written in Java XML, that you can create in AIDE. As of this writing, AIDE has 3 simple apps you can create: they are, Hello World, Tetris, Clock Widget.
Simple App -Same as sample app; AIDE for android app contains a few simple app templates, for easy beginner app creation. A simple app usually contains basic functionality as opposed to more complex apps with perhaps more components added.
The Hello World app has one Activity containing one view (one screen view) and the app name (you can specify or change) at top of app page, and one small logo for the app (image resource).
Because it is a simple app it has only a few pages of coding, and a couple of resource files for the text strings and the logo app image. This is a good app to choose for a novice first learning android java/xml, as you can add to it, yet it is simple enough to understand.
Git Respository -
You will see the word GIT, amongst your files folders, usually placed at top of the hierachy.
In the SETTINGS of AIDE, you can choose to have the files from each app you create added to the GIT respository.
GIT is a coding hub where developers can find code snippets, classes, and code specific references. It is a public forum, it is free; you can post your own code there, work on codes submitted by other developers. You can also have your own private hosted web page on Git with a paid account.
Code class -
Most coding is referred to as classes, code class, or widget; also common is subclass and inherited class.
Widget is common for code classes pertaining to the UI(user interface); such as ListView widget.
These all basically mean a Code Class; or a code class from another code class or included within a code class hierachy.
Elements Within each Code Class, there are usually many elements; these elements are the code you can add to your app's code; for example the ACTIVITY Class has a textView element.
App Components- Usually refers to a necessary part of the app, like an Activity component. For example; Without the activity component, you would not be able to add a textVIEW element to your app ; as the activity must be declared in your coding in order to have a VIEW added. A VIEW element is a screen view - like a web page view.
xml is the file extension name added to most files in your Android Project that you can edit, and that you will create. When creating a page for xml just type the page name you want to create; the AIDE editor adds the file extension for you; then; look at your file hierachy to make sure file name is correct. example. myfile.xml
Code - Attributes - Values
- Within each Code Class, there are Elements, and within Elements there are Attributes.
and; Attributes have values.
EXAMPLE. Code Class VIEW, has a TextView, and TextView is an Element;
this TextView element has its own Attributes;
like android:fontsize, android:fontcolor, android:layout_width,
and each of these have a value: example, android:fontsize= "25dp",
fontsize being the attribute and 25dp being the value for the attribute.
All code is usually presented as such.
Resources (also called res or res folder)
Certain items in your app are placed in the resources; Like text, images, videos, you may add to your app. All such items are added to the resources folders in
your app and the code referencing any or all of this type of code (the resources) can be placed in the androidmanifest.xml file, the layout file, java class file, or the strings file.
Some commonly used resource folders are:
res/drawable(for images, animation xml files),
res/raw(for videos, audios),
res/anim(for animation images and drawables),
res/values-countrycode/strings.xml(for localize languages),
res/menu(for appbar menu items).
strings if your want to add some text to your View, then you need to use the strings.xml file. This is where each coded 'text name' string is put. @string/mytextname, is how it is coded in your TextView element. The 'mytextname' is then referenced in the strings.xml file with the 'actual text' you want to add.
drawables refers to the images, graphics you add to show in your app for each app image element you specify, each image is referenced in code
and placed in the resources/drawables
SAVE a file - after you edit or add new code to any of your apps file pages; you should save the code. Also, in settings of AIDE, you can choose to have the files save automatically after any changes made to them. Refer to SETTINGS, in AIDE. Click top right icon from AIDE, then choose, SETTINGS
RUN your app project - means to compile and update your code with any new code or changes you made; and you INSTALL and OPEN your app at the same time.
UPDATE YOUR APP- when you RUN your app, the prompts will ask you if you want to update your app - choose YES, then INSTALL, choose yes, OPEN, choose yes.
First tutorial -
Android Manifest XML File