Android

1396 palavras 6 páginas
Advanced Android Development review of gReporter open-source project: GPS, Audio / Photo Capture, SQLite, HTTP File Upload and more!

Nathan Freitas, Oliver+Coady nathan@olivercoady.com

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?
Libraries Default Activity Other Other Other Activities Activities Activities Android Manifest Drawable Layouts Values Assets Service Content

Manifest

Layout

Activity /** 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);

package com.openideals.inaugreport; import import import import import import import import import import import import import import import android.app.Activity; android.app.ProgressDialog; android.content.Intent; android.location.Location; android.os.Bundle; android.os.Handler; android.util.Log; android.view.View; android.view.View.OnClickListener;

Relacionados

  • android para android
    1404 palavras | 6 páginas
  • Android
    1149 palavras | 5 páginas
  • Android
    3637 palavras | 15 páginas
  • Android
    3790 palavras | 16 páginas
  • Android
    1027 palavras | 5 páginas
  • Android
    3607 palavras | 15 páginas
  • Android
    2573 palavras | 11 páginas
  • Android
    1540 palavras | 7 páginas
  • android
    863 palavras | 4 páginas
  • Android
    3226 palavras | 13 páginas