Repository navigation
Access to Android's GUI with Hecl
zdia edited this page Oct 9, 2011
·
3 revisions
- If the Hecl script script.hcl contains just the line:
source /sdcard/myscript.hclthen you can push your changes to myscript.hcl with
adb push myscript.hcl /sdcard/myscript.hcland restart the app on the emulator.
- Install the application on sdcard
Change the header in AndroidManifest.xml to:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.hecl.android"
android:versionCode="2"
android:versionName="1.0.1"
android:installLocation="auto"> - Script changes are not accepted by repeated restart of the app
Try to click “Force Stop” in Settings → Applications
set context [activity] ;# an activity is a Android screen set layout [linearlayout -new $context] $layout setorientation VERTICAL ;# Note: view can be changed by click set layoutparams [linearlayoutparams -new {FILL_PARENT WRAP_CONTENT}]set tv [textview -new $context -text {Here is Password Gorilla for AndroidFirst tests with text formattingThe text is set to green color and to italic style} -layoutparams $layoutparams ]$tv setTypeface SERIF 2 $tv append "\n\tappend a line with a tab" # $tv settext "" ;# clear screen # for color definitions see: # http://developer.android.com/reference/android/graphics/Color.html $tv settextcolor -16711936$layout addview $tv [activity] setcontentview $layout
Here is a screenshot:

