Control bluetooth earphone button

Shay

Well-Known Member
Licensed User
Longtime User
Hi

is there a way to define a task for bluetooth earphone button
such as open app

(when tapping twice on earphone it is doing "redial last number"
when tapping once it is doing nothing, and I will to use it

thanks
 

Shay

Well-Known Member
Licensed User
Longtime User
tried short press - did not give anything
long press lunched samsung voice..
can I override it?


DSR is ON. Don't send DTR ON.
usb connection is true
DSR is ON. Don't send DTR ON.
AT+BVRA=1
START {intent.toShortString} from pid 3847

acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1000000 uid : 1000 pid : 2211 tag : ActivityManager
*** acquire_dvfs_lock : lockType : 1 freq : 1000000
mDVFSLock.acquire()
id=1527(167) createSurface 0x44754 (1x1),2 flag=400

onPause. Launcher: 41c4e060
pulse screen lock
GC_FOR_ALLOC freed 1859K, 19% free 22532K/27591K, paused 56ms
onReceive
PauseSlideShow
onReceive End
[MSC]>>> SCI:345 [0:0] R : secandroidintentactionHOME_PAUSE
Trying to launch applicationName
rotationForOrientationLw(orient=-1, last=0); user=0 USER_ROTATION_LOCKED mLidOpen=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=0 sensorRotation=-1
tweaking closing app
[MSC_Accu]>>> WWP:382 [0:0] onReceive@ secandroidintentactionHOME_PAUSE


[MSC_Accu]>>> WIM:53 [0:0] AccuWeatherClockWidgetID_Length
[MSC_Accu]>>> WIM:54 [0:0] getPrefIDs@lngth:0
[MSC_Accu]>>> WWP:2480 [0:0] mHandler is null!!
[MSC_Accu]>>> WWP:375 [0:0] refreshhandler is null!!
[MSC_Accu]>>> WWP:415 [0:0] The widget does not exist in idle!!
START {intent.toShortString} from pid 17474
acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1000000 uid : 1000 pid : 2211 tag : ActivityManager
mDVFSLock.acquire()
Skipped drawing due to suspendDrawingUntilResume()
onWindowFocusChanged(false)
onReceive : sec.android.intent.action.HOME_PAUSE


ACTION_HOME_PAUSE: false
id=1528(168) createSurface 0x4cc94 (1x1),2 flag=400
Trying to launch applicationName


tweaking closing app
OnCreate()
CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=true surfaceChanged=true realSizeChanged=false redrawNeeded=false left=false top=false


id=1529(2) createSurface 0x12c64 (1x1),2 flag=400


id=1525 Removed idx=3 Map Size=7
id=1525 Removed idx=-2 Map Size=7
mCBPickerDialog enter case. MSG_DISMISS_DIALOG
id=1526 Removed idx=2 Map Size=6


id=1526 Removed idx=-2 Map Size=6
Displayed shortComponentName: +134ms (total +235ms)


Skipped drawing due to suspendDrawingUntilResume()
Hide Clipboard dialog at Starting input: finished by someone else... !
mCBPickerDialog enter case. MSG_DISMISS_DIALOG
usb connection is true
DSR is ON. Don't send DTR ON.


id=1527 Removed idx=3 Map Size=5
id=1527 Removed idx=-2 Map Size=5
*** release_dvfs_lock : lockType : 1


releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released
mDVFSLock.release()


dispatchSaveInstanceState: widgetid=8 vid=-1
dispatchSaveInstanceState: widgetid=10 vid=-1
dispatchSaveInstanceState: widgetid=7 vid=-1
onStop. Launcher: 41c4e060
id=1528 Removed idx=4 Map Size=4


id=1528 Removed idx=-2 Map Size=4


usb connection is true


DSR is ON. Don't send DTR ON.


usb connection is true


DSR is ON. Don't send DTR ON.


Timeout waiting for voice recognition to start


ERROR


Timer 0x3->0x3|0x0


usb connection is true


DSR is ON. Don't send DTR ON.
usb connection is true


DSR is ON. Don't send DTR ON.


[RULE]: Rule exception: Unable to resolve host "bos.ads0.nexage.com": No address associated with hostname:java.net.UnknownHostException: Unable to resolve host "bos.ads0.nexage.com": No address associated with hostname


usb connection is true


DSR is ON. Don't send DTR ON.


usb connection is true


DSR is ON. Don't send DTR ON.


usb connection is true


DSR is ON. Don't send DTR ON.


android_server_AlarmManagerService_set to type=3, 145522.533000000


received broadcast android.intent.action.TIME_TICK


handleTimeUpdate
onReceive() - ACTION_TIME_TICK
updateClock :11:41


updateClock :23/12/2012


DigitalClockAppWidgetService. action : android.intent.action.TIME_TICK
DigitalClockAppWidget. : updateClock = [I@415cd290
DigitalClockAppWidget. : drawMinute mm1_ 4mm2_1
usb connection is true


DSR is ON. Don't send DTR ON.


usb connection is true


DSR is ON. Don't send DTR ON.


!@Sync 4040
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
and this when pressing volume

usb connection is true
DSR is ON. Don't send DTR ON.
usb connection is true
DSR is ON. Don't send DTR ON.
usb connection is true
DSR is ON. Don't send DTR ON.
usb connection is true
DSR is ON. Don't send DTR ON.
FM radio recording off
AT+VGS=4

onVolumeChanged(streamType: 6, flags: 0)
*** mReceiver: VOLUME_CHANGED_ACTION
stream: 6
volume: 4
OK


!@Sync 4047

usb connection is true
DSR is ON. Don't send DTR ON.
setScreenOffTimeouts mKeylightDelay=6000 mDimDelay=107000 mScreenOffDelay=7000 mDimScreen=true
setScreenOffTimeouts mKeylightDelay=6000 mDimDelay=107000 mScreenOffDelay=7000 mDimScreen=true
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Thanks
on which line do you see this?
can you direct me to creating intent tutorial (never done this before)
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
I didn't manage to understand from this example how do I adjust it to my intent
also what is the dynamic filter? you gave only example for static filter

is there any code, that can show me all the running intent?

thanks
 
Upvote 0
Top