Skip to content

Android App : Calculate two number, Splash Screen, Apps Icons, Live Demo of Installed APK in Emulator : https://www.dropbox.com/s/4w13fesup98d0af/AndroidAppCalculator.mov?dl=0

Notifications You must be signed in to change notification settings

TrishaChetani/AndroidAppCalculation

Repository files navigation

AndroidAppCalculation

  • This app is used for addition of two number.

Tech stacks

  • Android
  • JAVA
  • GRADLE as Build tool

What app can perfrom

  1. Android app has icon
  2. Launch with Splash Screen
  3. User can add two number

2.0 Setup

Dev Setup

Android Activity Life Cycle

* Understanding of Activity life cycle (https://www.tutorialspoint.com/android/android_acitivities.htm)
-onCreate() : first callback and called when the activity is first created.
-onStart() : callback is called when the activity becomes visible to the user.
-onResume() : called when the user starts interacting with the application.
-onPause() : activity does not receive user input and cannot execute any code and called when the current activity is being paused and the previous activity is being resumed
-onStop(): callback is called when the activity is no longer visible.
-onDestroy(): callback is called before the activity is destroyed by the system.
-onRestart(): when the activity restarts after stopping it.

RUN

How to run the app on emulator (https://developer.android.com/studio/run/emulator.html)
How to run your app on real device (https://developer.android.com/training/basics/firstapp/running-app.html)

Folder Structure

  • App : Main Folder
  • App - manifests : `AndroidManifest.xml' : Currently it include the activities only, it can have : services, broadcast receivers, and content providers that compose the application. It also names the classes that implement each of the components and publishes their capabilities, such as the Intent messages that they can handle. These declarations inform the Android system of the components and the conditions in which they can be launched.
  • App -java - com.example.trishachetani.wwcode - MainActivity :
  • Currently : MainActivity : onCreate() : will have all the id of editText and button and onClick() : will add two number
  • App -java - com.example.trishachetani.wwcode - SplashActivity :
 setContentView(R.layout.layout); // set the layout to be displayed 
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Intent i = new Intent(SplashActivity.this,MainActivity.class); // Intent is basically  used for operation to be performed(https://developer.android.com/guide/components/intents-filters.html)
startActivity(i);
finish();
}
 },1000);

Video of Running App

https://www.dropbox.com/s/4w13fesup98d0af/AndroidAppCalculator.mov?dl=0

Imgur

APK :

https://www.dropbox.com/s/4gpf78hwenppvt5/app-release.apk?dl=0

About

Android App : Calculate two number, Splash Screen, Apps Icons, Live Demo of Installed APK in Emulator : https://www.dropbox.com/s/4w13fesup98d0af/AndroidAppCalculator.mov?dl=0

https://www.dropbox.com/s/4gpf78hwenppvt5/app-release.apk?dl=0

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages