Improvements to build.sh for better debugging lazarus / 43-Android ---------------------------------------------------------------------- meanderix · 2012-04-27 23:01 Hi, Thought I'd share my slightly modified version of build.sh, which has some improvements: It extracts the proper package name from the XML manifest;It clears the log file (so that you avoid dumping many pages of useless info);It automatically starts the app using "adb shell am start";It adds a filter to logcat so that we capture (mostly) the messages related to our app. Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #!/bin/bash# get package name from XML manifestPACKAGENAME=`xmllint --xpath "string(/manifest/@package)" AndroidManifest.xml`# build .apk file in bin folderant debug# uninstall previous version of appadb uninstall $PACKAGENAME# install new versionadb install bin/LCLExample- debug.apk# clear log fileadb logcat -c# start appadb shell am start -a android.intent.action.MAIN -n $PACKAGENAME/.LCLActivity# capture only debug messages that are related to our appadb logcat lclapp,DEBUG,dalvikvm:I *:S