JavaRanch Home    
 
This page:         last edited 10 June 2013         What's Changed?         Edit

Android FAQ   

This is the FAQ for the Android forum. It's editable by everyone, so feel free to add content to it.

General questions

Programming

  • Is Android code compiled to a .class file?
    • The Java bytecode of a compiled class is converted into Dalvik executables or (.dex) files, using the "dx" tool bundled with the SDK . The application is packaged into .apk file which are zipped .dex files. The Dalvik virtual machine runs Dalvik executables in the apk file. Details of .dex file format can be found here
  • I want to write Android Applications too but dont know where to start?
  • Do Android projects have deployment descriptors?
  • My Application throws an Exception, where is the Stack Trace dumped?
    • Exceptions are written to a log file, named Logcat in the emulator. You can obtain a dump by executing the adb logcat command. To write log messages from your application, use the static methods of JavaDoc:android.util.Log class(Log.v(), Log.d(), Log.i(), etc.). If you are using Eclipse with ADT plugin, you can open "Logcat" view to see the logged messages.
  • What functionality of the actual device can the emulator emulate?
    • For Emulator How-Tos and limitations, read this
  • How can I send email from an Android application?
  • How can I use JAXB on Android?
  • javax.xml.xpath is not supported; how can I use XPath anyway?
    • The jaxen library runs on Android, and works well with DOM objects. Just put its jar file into the "libs" folder of your project, and it'll be packaged along with the other class files. Starting with Android 2.2, javax.xml.xpath is part of the core libraries.
  • What options for storing data do I have?

Reference material

Books

Other



CategoryFaq JavaMicroEditionFaq

JavaRanchContact us — Copyright © 1998-2013 Paul Wheaton