Advanced Android Development - NCSU
[Pages:31]Advanced Android Development
review of gReporter open-source project: GPS, Audio / Photo Capture, SQLite, HTTP File Upload and more!
Nathan Freitas, Oliver+Coady nathan@
Android Platform Basics
Platform Features
? Application framework enabling reuse and replacement of components ? Dalvik virtual machine optimized for mobile devices ? Integrated browser based on the open source WebKit engine ? Optimized graphics powered by a custom 2D graphics library; 3D graphics
based on the OpenGL ES 1.0 specification (hardware acceleration optional) ? SQLite for structured data storage ? Media support for common audio, video, and still image formats (MPEG4, H.264,
MP3, AAC, AMR, JPG, PNG, GIF) ? GSM Telephony (hardware dependent) ? Bluetooth, EDGE, 3G, and WiFi (hardware dependent) ? Camera, GPS, compass, and accelerometer (hardware dependent) ? Rich development environment including a device emulator, tools for debugging,
memory and performance profiling, and a plugin for the Eclipse IDE
What's in an App?
Default Activity
AAcOtAcOtivhtcOtiivethtitiiervethisieretiser s Android Manifest
Libraries Service Content
Drawable Layouts
Values
Assets
Manifest
Layout
Activity
package com.openideals.inaugreport;
import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.location.Location; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.CheckBox; import android.widget.Spinner; import android.widget.TextView; import android.widget.Toast;
/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(R.layout.reportform); ((Button)findViewById(R.id.btnReportFormSubmit)).setOnClickListener(this); ((Button)findViewById(R.id.btnReportFormCancel)).setOnClickListener(this);
}
Toast.makeText(getBaseContext(), "There was a problem submitting your report. Wait a second, and then try again!", Toast.LENGTH_LONG).show();
import com.openideals.android.geo.LocationFinderActivity; import com.openideals.android.ui.HorizontalSlider; import com.openideals.android.ui.HorizontalSlider.OnProgressChangeListener;
private void showMain ()
}
{
Intent iMain = new Intent(this, LocationFinderActivity.class);
startActivity(iMain); }
Android Application Examples
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- the start guide of skyepub sdk for android in java
- exposing native device apis to web apps
- android advanced tutorial
- android studio change project settings
- how to run your existing android apk on the tizen platform
- android pinch zoom imageview example github
- cover page tutorialspoint
- aveva intouch hmi
- android application model i
- java inner classes android ui basics
Related searches
- android calculator app
- best android phone of 2018
- calculator for android free download
- android apps for autism
- best android finance widgets
- transfer photos from android to computer
- yahoo finance android app
- calculator android app
- apps for android phones
- android tablets how to use
- android calculator app hidden
- download minecraft free for android apk