Android Studio

Kyle Waters

Venturedata LLC


sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

Install Android Platform

Android SDK Tools Android SDK Platform-Tools Android SDK Build-Tools Android [Version] SDK Platform

Debug on Your Device

Android Virtual Device

Start New Project

Start New Project

Android Components

Activity - Each screen the user sees is defined by an activity Services - Background process with out user interface Content Provider - Manages app data Broadcast Receiver - React to system messages


Android Manifest

Android Life Cycle




Auto Add Import

OnPause Example

@Override protected void onPause() { super.onPause(); TextView t=new TextView(this); t=(TextView)findViewById(; t.setText("Paused"); }

Listener Example

private View.OnClickListener buttonhandler = new View.OnClickListener() { public void onClick(View v) { Toast toast = Toast.makeText(getApplicationContext(), "Button Pushed!", Toast.LENGTH_LONG);; Log.d("Sent Toast"); }; }; Button button = (Button) findViewById(; button.setOnClickListener(buttonhandler);

Create APK

Questions? Comments?