Hello, It would be easier to modify the emulator source code instead to read data directly from the OpenIntents simulator (as an example). See external/qemu/android/hw-sensors.c for the current sensor hardware emulation code, which is limited to rotating the virtual device at the moment.
Hope this helps On Wed, Jan 13, 2010 at 8:10 AM, Bill Gatliff <bgatl...@gmail.com> wrote: > Guys: > > > I'm trying to come up with a way to simulate an accelerometer under > Goldfish. I'm familiar with the OpenIntents sensor simulator, but I > want something that doesn't require me to modify my source code. > > The file development/emulator/sensors/sensors_qemu.c looks like it might > be the source code for sensors.goldfish.so. If that's the case, then > can I use the data_poll() function in the former to fake an > > accelerometer event? That's assuming I link the .so file into my own > code, build with the Android cross-compiler, etc. etc. etc. of course. > > > Regards, > > > b.g. > -- > Bill Gatliff > Embedded Linux development, training and consulting > http://billgatliff.com > b...@billgatliff.com > > > -- > unsubscribe: > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-porting >
-- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting