Hi I am trying to simulate a vibrator device in the emulator

----The timed_output class driver is in place and is verified to work
( did a echo > 1000 to /sys/class/timed_output/vibrator/enable to the
device and it has been verified to work ).

--- I wanted to invoke this device node from a app and was planning on
using Morsecode from Api Demos ,since it has gone missing in recent
releases wrote just a couple of lines of code to basically call the
vibrator device from an stand alone app.

--- This does not seem to work ,when i ran logcat these are the
sequence of logs passed as the application is being run from the menu

I/ActivityManager(  589): Starting activity: Intent
{ action=android.intent.acti
on.MAIN categories={android.intent.category.LAUNCHER} flags=0x10200000
comp={com.xxxxx.ui/com.xxxxx.ui.uiSimpleWidet} }
I/ActivityManager(  589): Start proc com.mot.ui for activity
com.xxxxx.ui/.uiSimpleWidet: pid=791 uid=10023 gids={}
I/jdwp    (  791): received file descriptor 20 from ADB
E/jdwp    (  791): Failed sending req to debugger: Broken pipe (-1 of
27)
E/jdwp    (  791): Failed sending reply to debugger: Broken pipe
I/dalvikvm(  791): Debugger has detached; object registry had 2
entries
D/dalvikvm(  553): GC freed 262 objects / 9848 bytes in 225ms
D/dalvikvm(  553): GC freed 40 objects / 1696 bytes in 183ms
D/dalvikvm(  553): GC freed 2 objects / 48 bytes in 260ms
V/ActivityThread(  791): Resuming ActivityRecord{436b6288
token=android.os.Binde
rpr...@436b5e50 {com.xxxxx.ui/com.xxxxx.ui.uiSimpleWidet}} with
isForward=true
I/ActivityManager(  589): Displayed activity
com.xxxxx.ui/.uiSimpleWidet: 1203 ms
I/jdwp    (  791): received file descriptor 30 from ADB
D/dalvikvm(  679): GC freed 456 objects / 22176 bytes in 110ms


This is what i see . But the device node is not being called .The app
is pretty simple and just calls the vibrator.vibrate(10000) for 10s (i
have also set the permission fine for VIBRATE).I am not able to see
any logs beyond the BinderProxy.I was hoping to see Harware
service.java kick in and take it from there.

 Can some one tell me if i am missing any link between the manager and
HAL ? I also made sure hardware service is running by doing  a service
list and also made sure libhardware.so and libhardware_logacy.so is
there .

Thanks

Prem Thilagar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to