[Q] Bluetooth Service App ? - Android Studio

Is there an app that you can install on android that listens for "commands" ?
Scenario: Tablet is inside a panel, and i can only see the screen. Buttons are out of reach.
Is there a app that listens for command like "1" over BT and translates it to a function of the table like Lock/Unlock ?
Example:
Command: 1 -> Unlocks Screen
Command: 2 -> Volume Up
Command: 1 -> Lock Screen
Thanks in advance

Related

Locking the Diamond

I was wondering is there a app that will lock my Diamond by clicking a shortcut?
I don't want S2u2 it's buggy imo. But i would just like to use the std. locking through a shortcut.
Pressing and holding the hang-up button just doesn't work for me.
If pressing and holding a button for 2 seconds is too hard for you then perhaps you should consider buying a slave to do it for you....
It isn't the fact that i don't wanna push it.
But after using it one week i already notice that the pad hangs to the hang-up button a heightdifference of a mm is already present.
I don't like that so i'd rather push a shortcut.
I press the power button briefly, not sure if that's lock, but it works for me.
chech the thread "Lock Screen or put into "standby"? Best set-up?", post 9 & 10.
MSSH said:
I was wondering is there a app that will lock my Diamond by clicking a shortcut?
I don't want S2u2 it's buggy imo. But i would just like to use the std. locking through a shortcut.
Pressing and holding the hang-up button just doesn't work for me.
Click to expand...
Click to collapse
You could do HKEY_CURRENT_USER\ControlPanel\BackLight\AutoDeviceLock Enable from 0 to 1 and everytime your backlight goes off (which is quite quick with the Diamond) the device will automatically lock
Ensure that Long Press End Key is set to lock your device (Start -> Settings -> System -> Long Press End Key -> Automatically execute the seleted action: Lock device.
Next open a registry editing program and navigate to HKLM\Software\HTC\Manila\HomeLSKPath and enter \windows\endkey.exe.
Then navigate to HKLM\Software\HTC\Manila\HomeLSKText and enter Lock (or whatever text you want to be displayed on the button).
Save the changes and soft-reset the device (or disable and re-enable HTC Touch Flow 3D) to implement the change.
Personally i've started using Sensor Lock which seems to work really well
http://forum.xda-developers.com/showthread.php?t=422871
Locks and unlocks by rotating the screen. Has lots of nice options and locks the hardware buttons too which is good.
PocketShield looks pretty cool. It's around $11 if you decide to buy it.

Password Pin Input Screen

Hi guys,
i realize whenever i wake my phone from standby, my password pin screen would appear. but sometimes i'm under the sun and the screen is too dim for me to see the number pad for me to key in the numbers to unlock my phone.
so is there anyone out there who knows which registry key to edit to?
thanks.
Start > Settings > System > Power > Backlight > Uncheck the option "Dim the backlight if the device is locked" > OK
thanks a lot simon. i didn't realise it was just out there as an option.
great - thank's a lot, I didn't see this option too...
lol - if only everything was this easy to sort out then I think we'd all be very happy!
Enjoy

[tasker] clear recent apps command

Hi all,
I would like to add a button on my home screen in order to clear all recent apps without having to long press on the home button and so on.
Is there any command or variable on tasker to make this possible?
Thx for helping
Envoyé avec ma brique Galaxy Note.
Advanced Task Killer (in playstore).
And then place the widget on home screen.
One-click-kill.
I just want to clear recent apps not kill all tasks! I already have greenify.
Envoyé avec ma brique Galaxy Note.
bump. i need that too...
A little help from someone?
Envoyé avec ma brique Galaxy Note.
pakman023 said:
I would like to add a button on my home screen in order to clear all recent apps without having to long press on the home button and so on.
Is there any command or variable on tasker to make this possible?
Click to expand...
Click to collapse
I would like to have something like that as well to call it from Llama, so it should be either a simple application that clears all recent apps on start without asking or an intent that can be called by LLama.
Thx!
Envoyé avec ma brique Galaxy Note.
newest lbe ha a toggle for that, 360 launcher as well. when using both ram is quickly cleared.
Given androids ram optimalization its also quickly filled again lol.
Sent from my GT-N7000 using Tapatalk 2
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
okninja said:
(etcha sketch?)
Click to expand...
Click to collapse
oooh yeah!!!! nice touch
Install xposed framework and then Gravity Box will give you the option on a nexus 5. Couldn't find the option on Tasker either.
Is this configured under "Shell Script"?
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
Could you explain how you did this?
I've spent the last hour trying to get it done on my AT&T Galaxy S4 running GPE 4.4 ROM and can't get it to work.
Thanks!
Extra help
Hi, I'm new to forums and Tasker. Could you please explain step-by-step how you created this please? Your method seems to be the only one on the internet.... and its beyond my knowledge of Tasker.
Thanks
okninja said:
Looking for a similar solution I ended up just using sendevent commands to simulate long pressing the home button & input tap
sendevent /dev/input/event16 1 172 1
sendevent /dev/input/event16 0 0 0
sleep 1
sendevent /dev/input/event16 1 172 0
sendevent /dev/input/event16 0 0 0
input tap 900 1850
Works great on my S4 but you may need to enable pointer in developer options & modify the tap x y. Similarly I also wanted to clear my ram & app cache & ended up putting it all together in 2 tasks that perform either with shake events(etcha sketch?)
Click to expand...
Click to collapse
Storm85 said:
Hi, I'm new to forums and Tasker. Could you please explain step-by-step how you created this please? Your method seems to be the only one on the internet.... and its beyond my knowledge of Tasker.
Thanks
Click to expand...
Click to collapse
Hi guys landed here because I searched for this problem ....
I came up with a solution myself since the method described here is different for every device I think this should work for most
Open tasker -->new task--> script ---> run shell --> and paste this in the command line :
input keyevent APP_SWITCH
input tap 2150 1540
these numbers "2150 1540 " are for my note 10.1 2014 edition ... these are coordinates which set the location for the simulated touch tap ...
you can get your x y coordinates by enabling show cursor position in develepor options
this command does open the recent apps menu
and presses the close all all apps button
greetings
Medy89
Medy89 said:
Hi guys landed here because I searched for this problem ....
I came up with a solution myself since the method described here is different for every device I think this should work for most
Open tasker -->new task--> script ---> run shell --> and paste this in the command line :
input keyevent APP_SWITCH
input tap 2150 1540
these numbers "2150 1540 " are for my note 10.1 2014 edition ... these are coordinates which set the location for the simulated touch tap ...
you can get your x y coordinates by enabling show cursor position in develepor options
this command does open the recent apps menu
and presses the close all all apps button
greetings
Medy89
Click to expand...
Click to collapse
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Storm85 said:
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Click to expand...
Click to collapse
From what I understand, note 10.1 2014 still running on Android 4.3 but Note 3 already in 4.4.2, I guess Kitkat might have change this.
Storm85 said:
Thanks for this. However it isn’t working. I have a Galaxy Note 3 and assuming it’s the Xv: and Yv co ordinates I have 0.073 and 0.263.
But when I enter
input keyevent APP_SWITCH
input tap 0.073 0.263
It doesn’t work and the task seems to take a while to stop running.
What am I doing wrong?
If I do
new task--> script ---> run shell --> input keyevent APP_SWITCH
and click run should it open up the recent apps list? Because it doesn’t.
Thanks,
Click to expand...
Click to collapse
just take the X and Y not Xv Yv
there schouldnt be points and commas
ill check if input keyevent APP_SWITCH works on kitkat
meanwhile try
input keyevent KEYCODE_APP_SWITCH
look again
btw im doing a tasker series on youtube ill probably do a vid about this some time
check out my channel^^
First vid :
https://www.youtube.com/watch?v=KYADIOL_LPE&feature=youtu.be
Medy89 said:
just take the X and Y not Xv Yv
there schouldnt be points and commas
ill check if input keyevent APP_SWITCH works on kitkat
meanwhile try
input keyevent KEYCODE_APP_SWITCH
look again
btw im doing a tasker series on youtube ill probably do a vid about this some time
check out my channel^^
First vid :
https://www.youtube.com/watch?v=KYADIOL_LPE&feature=youtu.be
Click to expand...
Click to collapse
i have android kitkat..
i couldnt call input keyevent KEYCODE_APP_SWITCH
nothing happen..somebody help
bdkbaik said:
i have android kitkat..
i couldnt call input keyevent KEYCODE_APP_SWITCH
nothing happen..somebody help
Click to expand...
Click to collapse
it works on kitkat ... just tried it ... u need ROOT

(GUIDE) Send a Glympse to a Contact without AutoInput

Context: AutoInput is a great plug-in, but it does not work on all devices. You can send a link to a dynamic map with your location to a contact through text. (ROOT required)
REQUIREMENTS:
1. GLYMPSE
2. ROOT
Foreplay:
1. Launch Glympse and send your location to anyone you want. Choose the time you want the map to show your location.
2. Go to Settings\ Dev Options and check Pointer Location ( some coordinates will appear over the status bar)
3. Go back to Glympse , long- press and write down the Xd and Yd numbers of the coordinates for each step:
a) Long-press the menu icon and write down the numbers.
b)Long-press History and write down the numbers.
c) Do the same for the resend button of the contact you want.
d) Do the same for the send icon at the top right.
Task
1.Open Task and name it Send a Glymse to 'contact'.
2. Say \ Sending your location to "contact".
3.Launch App\ Glympse.
4.Run shell \ Command: input tap 'Xda Yda' (these are the numbers you wrote down in a). Check use root.
5 Wait 1 sec
6. Run hell\ Command: input tap 'Xdb Ydb' . Use root.
6. Wait 1 sec.
7. Run shell \ Command: input tap' Xdc Ydc'. Use root.
8. Wait 1 sec.
9. Run shell \ Command: input tap 'Xdd Ydd'. Use root.
Make sure you wrote everything right.
Possible triggers for this task:
1. AutoVoice command
2. Text, Whatsapp or any messenger app ( using Touchless Chat plug-in) from a specific contact.
3. Auto Location ( geofence or other trigger)
4. Anything you can figure out.
Using the same logic, you can mess with any app. In other thread we will see how to automatically turn on your TV and cast your YouTube playlist without AutoInput.

[Ask] Create or add volume keys on navigation bar ?

hello
I want to add volume buttons on navigation bar for my handy daughter.
for ex:
volume (-) on left
classic navbar buttons (on center)
volume (+) on right
(She have a Teclast T30 with Android 9)
I try custom navigation bar app but it have some issues (buttons disappearing when rotate)
I try systemui tuner but no navigation bar entries
So for now, i want to try with tasker but i'm a noob
Can somebody help me to create this profil ?
thx for all
Nobody to help me ?
Let me start by saying that if you have zero experience with Tasker, please help yourself by working through some beginner tutorials found in excess online.
You will need to decide what type of profile should trigger the task containing the following actions. Maybe when specific apps are launched (video, music, ...). Or maybe you want them displayed always which means an "on boot" event. Or something else
This is straightforward using the built in "settings -> custom setting" action. If the device is not rooted, you will need to give write secure settings permissions to tasker through ADB.
Reference the "Using Shell Commands" section (scroll down pretty far) of How to Add Left/Right Keyboard Cursors to the Nav Bar during Text Input post.
It's very similar except instead of using the keycodes for left and right cursor movement (21, 22), we're using the keycodes for volume up and volume down (24,25).
We are also using volume up/down icons instead of left/right. The link to the website to get the icons is on that same page, in the same section. The links to the pages containing the 64x64 icons I used are: Volume Up and Volume Down.
And most importantly, instead of using a run shell command action, we're taking advantage of the relatively new custom setting action. As described above, you don't need a rooted device for this as long as you give the permissions through ADB.
I created a folder under the Tasker folder called "NavIcons" to hold icons for tasks like this. You may need to try different icon sizes to find a size that suits your device.
There is a nice summary of keycodes here.
add volume +/- buttons
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: key(25:file:///storage/emulated/0/Tasker/NavIcons/volume-down-64.png),back;home;key(24:file:///storage/emulated/0/Tasker/NavIcons/volume-up-64.png)
Use Root: Off
Read Setting To:
remove volume +/- buttons (without recent button)
Code:
A1: Custom Setting [
Type: Secure
Name:sysui_nav_bar
Value: space,back;home;menu_ime
Use Root: Off
Read Setting To:
remove volume +/- buttons (with recent button)
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: space,back;home;recent,menu_ime
Use Root: Off
Read Setting To:
Thanks for all !!
I understood how to and it work !
I launch this task on event "home launcher" because on "on start" don't work
Many thx !!

Categories

Resources