Prev Page Coding A WebView
This App Tutorial Coding A Screen Splash
Next App Tutorial Coding Gradient Drawables
If you are just arriving at this page; and you are not familiar with with creating Android Apps, we suggest you begin with our tutorials:
Coding Android App Pages
and How To Create a Simple App in Android
From there follow along with each tutorial lesson.
AIDE and ANDROID STUDIO
We are using AIDE(the SDK coding environment for android devices), to create these tutorial apps on our tablet with android version 5; using the Java XML programming language.
We are using the AIDE coding editor to code our pages; and then to Create - Build, RUN and INSTALL them on our android device.
AIDE has a free and paid version. As of this year, the paid version of AIDE is about $20 canadian.
Once you create your apps code pages, you need to RUN the app to INSTALL it on your tablet or smartphone.
can also create; RUN your apps using the code in these tutorials, with Android Studio. Android Studio is for desktop computers. Choose Java XML as the programming language.
Android Studio is free to install and use for your android app development. Although not as convenient as testing your app on an actual android device; you can test your newly created app in Android Studio using an
Complete Example Codes are available for each of our tutorials. With these example codes you can make a functioning android app in
either AIDE or Android Studio.
First, create a java/xml android template app using AIDE, (or Android Studio). Then you can get the code for this app from the EXAMPLE CODE section on this page.
Replace the code on the pages you need to(with our tutorial code); in order to create this app.
Sometimes, new pages have to be created.
All the other coded pages in your app
can remain as they are; they don't need to be changed.
This is the Splash Screen
It will show for 3 seconds, then goto the App's first page
This is App's First Page
When To Use A Timed Screen Splash
A Screen Splash is ideal to use in your app for a variety of reasons such as;
promote your brand's logo
promote a new product or service
daily promo coupons
promote contests or competitions
A splash screen is shown to your users prior to them seeing the first page of your app. So, you want to use the splash screen to tell them something that
is unique to your products or services.
Also, a splash screen should not be too lengthy; as this could annoy users, and they may not use your app at all.
So keep the splash screen short if possible, 1 - 3 seconds is recommended, and use it to a users advantage.
If your just promoting your brand's logo, keep it short like 1 - 2 seconds, at most.
If you have daily giveaways, promo coupons and the like; user might be more accepting of a lengthier splash screen, because you are giving them something for free.
A splash screen is not recommended for advertising, as this could annoy users and they may uninstall your app.
Creating - Naming Your App Using AIDE
When creating your app,(from left menu) choose:
Create New Project;
New Android App(gradle, android Java/xml)
Hello World App Java/xml
if your using the original version of AIDE
You can name your app whatever you like; if your using the name as shown in our example code use;
TimedScreenSplash as the app name and,
for the package name(next line) use:
If you want to name it differently, you can, just change the code to whatever name you choose where it says, com.aac.screensplashexample, in the coded pages, usually at the
top of the java class pages like- MainActivity.java
Code for the app - TimedScreenSplash
For this app you will use these coded pages:
2 layout files - main.xml and splash_activity.xml, both XML files
2 activity classes(the java files) - MainActivity.java, and SplashActivity.java
1 strings file - strings.xml for the text on our page
1 AndroidManifest.xml file, where we define our activity for the splash screen
Since we are adding a image to our splash screen we add that image to our
drawables folder at src/res/drawable-hdpi.
To save the splash screen image, just right click on the image in the Example
code Section, and save it to your tablet or computer;
then copy paste it into the AppProject/TimedScreenSplash at res/drawable-hdpi folder.
Use your tablet's File Manager to do this, as you cannot directly paste an image within the AIDE code editor files.
That folder src/res/drawable-hdpi also has our ic_launcher.png image; but we don't need to add it because it was
added automatically when we created our android template app.
EXAMPLE CODE - Code For This Tutorial
JUST USE YOUR MOUSE to copy the code for this tutorial
App Name is 'TimedScreenSplash - located at AppProjects/TimedScreenSplash in AIDE, open the AIDE app, then open App Projects, THEN select the 'TimedScreenSplash',
app from your files hierachy(left menu); then click on any file from the app, like strings.xml Make sure at top of page, the app name 'TimedScreenSplash' is there next to
AppProjects like so: AppProjects/TimedScreenSplash, then you know you have the proper App.
Once a file is in the editor, you can edit, save it, then RUN your APP, Install,
and Open your app.
Make sure you SAVED EACH PAGE,(or choose automatic saving in AIDE settings) before you RUN your code. SAVE, RUN, INSTALL, OPEN, your App. Once it has been
installed on your tablet, you can open it Simply by Clicking on the Android little green App Icon,with the wording 'TimedScreenSplash' on your tablet. It will
be with your other installed apps.
If you make further changes to this App, you need to SAVE, RUN, UPDATE, INSTALL, OPEN the app.
This free script provided by