This is an old revision of the document!


Managing Android project

  • Create project
$ android create project --target 1 --path ~/projects/CarMon/sw/app/android/ObdLogger --activity ObdLogger --package cz.tio.android.obdlogger
  • Build debug version and install it into device
$ ant debug install

Debugging

  • display log
$ adb logcat

Devices

Enable logging on Huawei Ascent G300

Logging feature is disabled by default on that device.

$ adb logcat
Unable to open log device '/dev/log/main': No such file or directory
$

Though logging can be enabled from hidden service menu.

  • Activate hidden menu by dialing *#*#2846579#*#*
  • Enable logging: ProjectMenu → Background setting → Log setting → Log switch → LOG on
  • Set desired log level: ProjectMenu → Background setting → Log setting → Log level setting
notes/android_tips.1359653613.txt.gz · Last modified: 2013/02/02 11:21 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0