Tuesday, September 3, 2013

Making my First APP

As of right now, I am in the process of writing an Android App using

Animation Drawable: frame by frame animation
         -drawable-mdpi which is the medium resolution picture
         -we use xml for the animation b/c it keeps the design flow organized and to keep designs
Tween Animations: Alpha Animations: changing alpha property in the text from 0 to 1
         -call it a tween animation b/c it allows you to go between 0 which is transparent to 1 which is opaque.
         -allows you to set the duration of how long the animation plays
          -allows you to set the fill which sets whether or not the change of the opaque/transparency persists                 when the animation is done
Sound: MediaPlayer: allows you to play sound
           -MediaPlayer is set to play streams
           -set a new folder is the res folder and name it what you need to name it and instantiate it
           -MediaPlayer must call release() on the media player so not to many instances of it will call it again
OnCompletion listener: listens for when MediaPlayer is done playing to release media player

Sensors: Acelerometer: senses the movement
             -use the sensorManager gives us the system service that manages senses.
             -Accelerometer is a sensor that we want to listen to
             -SENSOR_DELAY_UI:  used for the speed of the interface which is 2, sutiable for the UI
***System services are constantly running in the background, we need to stop using system services to go to the background****Can kill battery life faster if you don't stop it so we use:
use Base Activity Class: onResume, onPause, onStop: override the Activity class to save battery life
Activity-Graph





----I'll try to get pics up about this app to you...coming soon.


No comments:

Post a Comment