Re: [Hecl-devel] Hecl on the T-Mobile G1 Google Android phone
Brought to you by:
davidw
From: Martin M. <DO...@gm...> - 2008-12-23 12:48:04
|
Hi, So far it's still active! #-- scaletype is a nested class of ImageView java {android.widget.ImageView$ScaleType} scaletype #-- field access [<class> - field <fieldname>] set ib [imagebutton -new $context -layoutparams $layoutparams -scaletype [scaletype -field FIT_XY]] I hope, that helps a little. Martin -------- Original-Nachricht -------- > Datum: Mon, 22 Dec 2008 22:30:22 -0700 > Von: Neal McBurnett <ne...@bc...> > An: hec...@li... > Betreff: [Hecl-devel] Hecl on the T-Mobile G1 Google Android phone > Re: > http://journal.dedasys.com/2008/02/06/remote-android-application-shell-with-hecl > > I have a T-Mobile G1 Google Android phone. I worked with David on IRC > this afternoon to get Hecl working on it. Very sweet - thanks, David! > > It works even more easily than in the emulator. No adb port > forwarding is needed to talk to a real device connected via wifi. > > Steps: > > Build Hecl-debug.apk (I got a file that David built from the latest > version of the code - close to what is in svn). > > Connect the G1's USB cable to a desktop (I'm running Ubuntu Hardy 8.04). > > The G1 will pop up a "USB connected" notification. > Tell it to let the desktop "mount" the SD card. > Copy Hecl-debug.apk to somewhere on the SD card. > Unmount the SD card (I typed "unmount /media/disk" in a shell window). > Disconnect the USB cable. > Use the Android File Manager application (from the Android Market) > to find and install the Hecl-debug.apk > > Connect to a wifi network. > Determine the wifi IP address you were assigned from > settings/wireless controls/wi-fi settings/<your wi-fi network> > > Run the Hecl app, scroll down run the Hecl Server > > >>From your desktop use "nc -v 192.168.1.110 7405" or some other program > to connect to port 7504 on the IP address you determined above. > Get a ">" prompt. > > > puts "Hello" > Hello > > Woo hoo! > > But what I want to do is read accelerometer values. I don't see a way > to do that directly - it seems you need to register a callback. I > have some questions, since so far I have a very poor grasp of what the > "java" introspection is doing. > > This is a a start: > > > java android.hardware.SensorManager sm > sm > > java android.hardware.SensorListener sl > sl > > set sman [[activity] getSystemService sensor] > android.hardware.SensorManager@432ec8c8 > > set sensors [$sman getSensors] > 139 > > I'm left with these questions: > > How to read a class constant value, like SensorManger.SENSOR_MAX > > http://code.google.com/android/reference/android/hardware/SensorManager.html#SENSOR_MAX > > How to implement the sort of code that is in > apps-for-android/Amazed/src/com/example/amazed/AmazedView.java > > E.g. how to create callback functions onSensorChanged and > onAccuracyChanged > according to the SensorListener interface > I'd be happy for now with something that prints the values out on the > console. > > How to register that callback > > Cheers, > > Neal McBurnett http://neal.mcburnett.org/ > > ------------------------------------------------------------------------------ > _______________________________________________ > Hecl-devel mailing list > Hec...@li... > https://lists.sourceforge.net/lists/listinfo/hecl-devel -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger |