Android-Programming
Android-Programming
What is an app?
An application is a software
program:
• Designed to perform a
specific function directly for
the user(s)
• Usually obtained through
the web or mobile devices
• Made to run inside an
operating system (i.e.
Android, Windows)
How are apps developed?
Setup
• Setup you development environment (i.e. Android Studio)
• Setup devices for testing (virtual or hardware devices)
• Have an idea for an app
Development
• Create your application (Coding)
Debugging and Testing
• Build and run your application (Compiling Code)
• Debug your application
• Test your application on emulator or device
Publishing
• Prepare your application for release
• Release application (i.e. to Play Store)
GETTING STARTED
Download Android Studio - Download Here
Now in the same “1: Project” tab, where the red arrow is pointing add :
Firebase.setAndroidContext(this);
Now click on “BasicGestureDetectFragment”. And for every event that you want to save
data for add:
Do this for each of the gestures and make sure to change the name of “child”.
Hit the green play button to run your
application and launch the emulator.
Your app will take a minute or two to
appear on the virtual device. While its
loading go to your app’s firebase domain
it should look like the image below
Android Studio shows you the performance that your app
requires of the CPU, GPU, Memory, and Network.
In realtime you should see your data appear on your firebase database.
If you would like more information on saving or retrieving data click here .
Authentication
Within your firebase
dashboard click over to the
“Login & Auth” tab.
Once installed you can install firebase command line tools via npm:
To initialize your project first “cd” to the project’s root directory and run : $ firebase init
<your-firebase-app>.firebaseapp.com
Note: Firebase Hosting is SSL-only so content will only be served over HTTPS.
THE FIREBASE.JSON FILE
The firebase init command makes this setting file in the root of your projects
directory. It is to configure what files are published upon deployment.
Note: These are defaults and advanced properties such as rules, redirects, and
rewrites can be added. For documentation here.
“There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.”
(C.A.R. Hoare)