Hi I am trying to actually simulate a vibrator device inside the
emulator .A timed_output driver for the vibrator was created and i am
able to access the node at /sys/class/timed_output/vibrator/enable
that is specified as THE_DEVICE in the vibrator.c file at hardware/
libhardware/vibrator/.The driver is tested to work from the kernel
below

I ran into some issue while trying to invoke the driver from a user
level app.I just added these two lines and created an app.

vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(10000);

when i created an .apk and ran it i could see the following messages
in Logcat

I/ActivityManager( 589): Starting activity: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.LAUNCHER} flags=0x10200000
comp={com.uiactivity.ui/com.uiactivity.ui.uiSimpleWidet} }
I/ActivityManager( 589): Start proc com.uiactivity.ui for activity
com.uiactivity.ui/.uiSimpleWidet: pid=791 uid=10023 gids={}
:
: A bunch of Dalvik messages
:
:
V/ActivityThread( 791): Resuming ActivityRecord
{436b6288token=android.os.binderpr...@436b5e50 {com.uiactivity.ui/
com.uiactivity.ui.uiSimpleWidet}} with isForward=true
I/ActivityManager( 589): Displayed activity
com.uiactivity.ui/.uiSimpleWidet: 1203 ms

Do i have to do something specific to make sure that the Harware
service kicks in after this.?

After this nothing happens ,

is it guaranteed that VIBRATOR_SERVICE will automatically be binded
when i do this
vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
because i dont really see a error there.

could some one throw some light on it

Is there a way i can verify VIBRATOR_SERVICE is actually running in
the emulator .( i made sure the libhardware.so and
libhardware_legacy.so are present )I could see from ddms service
hardware is running .

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

Reply via email to