Camera Button: Can I change what it does? - Sony Xperia T, TL, TX, V

Hi, is it possible to change what happens when I press the camera button on my Xperia T? I would like it to start recording audio, so I can quickly and effortlessly start recording, rather then having to turn the screen on, navigate to the app, open, then press record.
Thanks

Yes,with a Xposed module called Xposed Additions.
https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb

moliverac8 said:
Yes,with a Xposed module called Xposed Additions.
https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb
Click to expand...
Click to collapse
I installed it but there's something wrong, when I run the app it says "Missing System Service: The service is not enabled. If you have just updated the module please reboot. Otherwise make sure xposedbridge is installed and that this module is enabled."
I do have a rooted phone.

You are new in this read something about xposed framework thats the only way to do that easier

OK I sorted out that problem, the app works fine now.
Does anyone know how to use this app? How do I set it to record audio on pressing the camera button?

Astralogic said:
OK I sorted out that problem, the app works fine now.
Does anyone know how to use this app? How do I set it to record audio on pressing the camera button?
Click to expand...
Click to collapse
You can't set it to record audio directly, as far as I know (never saw that in the options), but theoretically you should be able to set it to be able to open an app when pressing the camera button. You need to set conditions (while screen off or on), and then reasign the button to the function you want. It's not a complicated app.

Antiga Prime said:
You can't set it to record audio directly, as far as I know (never saw that in the options), but theoretically you should be able to set it to be able to open an app when pressing the camera button. You need to set conditions (while screen off or on), and then reasign the button to the function you want. It's not a complicated app.
Click to expand...
Click to collapse
I've been trying to find a tutorial or guide for this app but I can't. Either I'm stupid or it's not as easy as it seems.
Could someone help me out? I just want my audio recording app to launch when I press the camera button.

Astralogic said:
I've been trying to find a tutorial or guide for this app but I can't. Either I'm stupid or it's not as easy as it seems.
Could someone help me out? I just want my audio recording app to launch when I press the camera button.
Click to expand...
Click to collapse
It's not that hard, you just need to press the "Buttons" (Configure button re-map settings), and set profiles for when the screen is on/off. As far as I know, you can't set it to open an app while the screen is off, you'd need the screen to be on first. Aside from that, you could also try reading the button labels/descriptions, which might help. Also, there aren't that many buttons either, so just start pressing buttons and see what they do.

Antiga Prime said:
It's not that hard, you just need to press the "Buttons" (Configure button re-map settings), and set profiles for when the screen is on/off. As far as I know, you can't set it to open an app while the screen is off, you'd need the screen to be on first. Aside from that, you could also try reading the button labels/descriptions, which might help. Also, there aren't that many buttons either, so just start pressing buttons and see what they do.
Click to expand...
Click to collapse
All I can do for a button is add conditions. I can add conditions fine, but I can't see how to launch an app under those conditions.
Edit: Actually I figured it out but the program doesn't work.

Astralogic said:
All I can do for a button is add conditions. I can add conditions fine, but I can't see how to launch an app under those conditions.
Edit: Actually I figured it out but the program doesn't work.
Click to expand...
Click to collapse
I tested it out a few days ago, and it worked for me (used it to open a different camera app than the default one). Maybe it's the ROM you're on.

Antiga Prime said:
I tested it out a few days ago, and it worked for me (used it to open a different camera app than the default one). Maybe it's the ROM you're on.
Click to expand...
Click to collapse
I have the stock rom, never changed it.

Related

Camera Button [SOLVED]

I downloaded a 3rd party camera application and I love it. My question is how do I set that to be the default when I press the camera button. I looked in quick launch and didn’t see anything for the camera key. I don’t have ADB available until later tonight so if needed id prefer a terminal code. This would be a big help considering I have to keep an icon of it on my screen and go to it and click instead of just hitting a camera button!
Thanks in advance!
xenoaurora said:
I downloaded a 3rd party camera application and I love it. My question is how do I set that to be the default when I press the camera button. I looked in quick launch and didn’t see anything for the camera key. I don’t have ADB available until later tonight so if needed id prefer a terminal code. This would be a big help considering I have to keep an icon of it on my screen and go to it and click instead of just hitting a camera button!
Thanks in advance!
Click to expand...
Click to collapse
It would have to be a setting within the application itself. Which camera app are you using? Camera Zoom? I know snapphoto has an option for you to set it as a default camera
alritewhadeva said:
It would have to be a setting within the application itself. Which camera app are you using? Camera Zoom? I know snapphoto has an option for you to set it as a default camera
Click to expand...
Click to collapse
Lol i think ive been too deep down in the files to long. Making things harder than they are. You sir are correct and i feel like an idiot!
xenoaurora said:
Lol i think ive been too deep down in the files to long. Making things harder than they are. You sir are correct and i feel like an idiot!
Click to expand...
Click to collapse
Lol we all do sometimes Please change the thread title to [SOLVED]

How to assign the Home button to turn on / off the screen?

Sorry if I ask a question wrong. Do not know much English. Searched the internet, found no answer. On my device LG 4X HD firmware CM10.2 does not provide a function awakening using the volume buttons. Buttons mechanical, as all devices, but if the other devices that I have used and use, this function can be on/off settings, LG is generally not provided! I don't understand what the reason. I tried and tried to change the files in the folder keylayout, and set the program to unlock shaking, with a proximity sensor, light sensor and so on, which are 2 minutes after switching off. Nothing happens, it is logical to assume that the device goes to sleep and shuts down everything. Although the programs I've set these permissions present phrase - not to give sleep to the device. How can assign a revival on the keys of the volume that rule?
negativman said:
Sorry if I ask a question wrong. Do not know much English. Searched the internet, found no answer. How to assign ON / OFF (unlock) the screen on the Home button or press the volume down? Maybe someone has a solution? Put please keylayout folder on a replacement. Maybe except that folder should be something else in the system to rule. ROM CM 10.2. Save advance.
Click to expand...
Click to collapse
Try this http://forum.xda-developers.com/showthread.php?t=850464
I don't know is it compatible with cm.
PenguinStyle said:
Try this http://forum.xda-developers.com/showthread.php?t=850464
I don't know is it compatible with cm.
Click to expand...
Click to collapse
In fact of the matter is that through the program ButtonRemapper nothing changes. It does not see the buttons for replacement.
negativman said:
In fact of the matter is that through the program ButtonRemapper nothing changes. It does not see the buttons for replacement.
Click to expand...
Click to collapse
Hmm... Then try galaxy s4/ note 3 lockscreen. It has option for unlocking by home button. And search for the app on xda cuz it has been removed from Google Play.
Sent from my LG-P880 using xda app-developers app
PenguinStyle said:
Hmm... Then try galaxy s4/ note 3 lockscreen. It has option for unlocking by home button. And search for the app on xda cuz it has been removed from Google Play.
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
Established. It does not unlock the screen for no button, except Power. By the way Widgetlock does not work! This problem should be solved in the system, but I do not know what to edit and where.

screen overlay detected phone cannot acces drive with apps

Hello, I'm having issues with my N6 after the Marshmallow But I am facing a problem that for each application, I am getting screen overlay detected. If I follow on screen instructions, in settings, I can't change permission. i cannot upload any images from my phone to facebook,instagram basically any app trying to access the drive on my phone. can you guys help solve this issue.
thanks,
A quick Google search for "screen overlay detected" found a lot of results indicating this is due to screen filtering apps that modify the screen brightness, such as Lux, Bluelight Filter, Twilight, etc.
alryder said:
A quick Google search for "screen overlay detected" found a lot of results indicating this is due to screen filtering apps that modify the screen brightness, such as Lux, Bluelight Filter, Twilight, etc.
Click to expand...
Click to collapse
Yes, they also prevent you granting root access to apps too. Lux is the most common. These apps put an overlay over the UI. Android protection prevents you pressing "serious" buttons in case it is the overlay working to malicious intents.
xbatis said:
Hello, I'm having issues with my N6 after the Marshmallow But I am facing a problem that for each application, I am getting screen overlay detected. If I follow on screen instructions, in settings, I can't change permission. i cannot upload any images from my phone to facebook,instagram basically any app trying to access the drive on my phone. can you guys help solve this issue.
thanks,
Click to expand...
Click to collapse
I'm curious if you were able to resolve this issue and if it was resolved with what I found about the issue.
xbatis said:
hello, i'm having issues with my n6 after the marshmallow but i am facing a problem that for each application, i am getting screen overlay detected. If i follow on screen instructions, in settings, i can't change permission. I cannot upload any images from my phone to facebook,instagram basically any app trying to access the drive on my phone. Can you guys help solve this issue.
Thanks,
Click to expand...
Click to collapse
okay. I have called google support for five nights and not one tech support person was able to help me. After countless hours of fiddling i figured out how to fix this problem. Put your phone in safe mode (press the power off button and press on the on screen power off icon until it asks if you want to go in safe mode. Press okay) then once it reboots, go to settings, then apps, click on the facebook app or whatever app you have the problem with, press permissions and then turn on all the permissions (toggle to the right and it should turn green). Repeat for whichever other apps have this problem then turn reboot the phone and voila! It's fixed. :d
jokeinc said:
okay. I have called google support for five nights and not one tech support person was able to help me. After countless hours of fiddling i figured out how to fix this problem. Put your phone in safe mode (press the power off button and press on the on screen power off icon until it asks if you want to go in safe mode. Press okay) then once it reboots, go to settings, then apps, click on the facebook app or whatever app you have the problem with, press permissions and then turn on all the permissions (toggle to the right and it should turn green). Repeat for whichever other apps have this problem then turn reboot the phone and voila! It's fixed. :d
Click to expand...
Click to collapse
I was thinking going back to Lollipop, then you saved my days. This "Screen overlay detected" was driving me nuts as I have tons of apps that requires "Draw over other apps" such as Sidebar Launcher, SuperSU, Widgetsoid, Rotation Manager... almost 30 apps. So every time I install new app I virtually have to turn off the "Draw over other apps" for all these 30 then set the permissions then turn them on again. It's so frustrating. And if I stupidly reset permissions for all apps then virtually most are unusable. Now with Safemode I can grant an app all the permissions it requires without turn the "Draw over other apps" off.
jokeinc said:
okay. I have called google support for five nights and not one tech support person was able to help me. After countless hours of fiddling i figured out how to fix this problem. Put your phone in safe mode (press the power off button and press on the on screen power off icon until it asks if you want to go in safe mode. Press okay) then once it reboots, go to settings, then apps, click on the facebook app or whatever app you have the problem with, press permissions and then turn on all the permissions (toggle to the right and it should turn green). Repeat for whichever other apps have this problem then turn reboot the phone and voila! It's fixed. :d
Click to expand...
Click to collapse
Best solution out there. Tnx.
@jokeinc I don't have twilight, lux, or any CM apps. Your solution is the only solution to have worked for me. Thank you so much!
I have a Samsung galaxy s6 and it didn't work for me, i have tried everythings but the only way is go into ultra power safe mode and from here i was able to activate permissions for whatsapp. For activate the other apps i don't know what to do.
Sorry for my bad english but i'm desperate??
@Zack909: Desperate and in the wrong forum. This is the Nexus 6 forums. You'll need to ask your questions in the Galaxy S6 forums, as your device has Touchwiz, which our devices don't run.
Strephon Alkhalikoi said:
@Zack909: Desperate and in the wrong forum. This is the Nexus 6 forums. You'll need to ask your questions in the Galaxy S6 forums, as your device has Touchwiz, which our devices don't run.
Click to expand...
Click to collapse
Thanks but i solved the problemi. I just unistalled CM Locker
It's good you solved your problem. You shouldn't be running anything from Cheetah Mobile, as every single app they produce is pretty much junk.
Grrr
Omni swipe program can also cause this disable it or uninstall
For me it's just SwipePad that I use which has an always on overlay. If you know what apps are overlaying I've found a workaround you can setup. Ideally an app shouldn't have an invisible overlay permanently hogging resources so you should find and disable them permanently if they're unwanted anyway. An app like Elixir with it's "running" processes/services filtered to User can help finding the culprit.
So I use a workaround to quickly disable an overlay for permission toggling. A "Task Shortcut" that uses the Tasker Greenify plugin (don't know if pro is required) to Hibernate the overlay app/s, Wait for a configured time and then Wake. Note that the wake process takes five seconds to finish.
I open my shortcut from SwipePad itself for it to disable for ten seconds while I click away at permissions to my hearts content. When the time is up it resumes working normally and all is well :highfive:
Infy_AsiX said:
For me it's just SwipePad that I use which has an always on overlay. If you know what apps are overlaying I've found a workaround you can setup. Ideally an app shouldn't have an invisible overlay permanently hogging resources so you should find and disable them permanently if they're unwanted anyway. An app like Elixir with it's "running" processes/services filtered to User can help finding the culprit.
So I use a workaround to quickly disable an overlay for permission toggling. A "Task Shortcut" that uses the Tasker Greenify plugin (don't know if pro is required) to Hibernate the overlay app/s, Wait for a configured time and then Wake. Note that the wake process takes five seconds to finish.
I open my shortcut from SwipePad itself for it to disable for ten seconds while I click away at permissions to my hearts content. When the time is up it resumes working normally and all is well :highfive:
Click to expand...
Click to collapse
I don't understand what you're doing. Your link is to a Task Manager Shortcut for Galaxy S3. I can see how Tasker could be used, but I don't understand how this app would be involved.
JimSmith94 said:
I don't understand what you're doing. Your link is to a Task Manager Shortcut for Galaxy S3. I can see how Tasker could be used, but I don't understand how this app would be involved.
Click to expand...
Click to collapse
Oops, my bad. I'll fix my post. The app is AutoShortcut.
https://play.google.com/store/apps/details?id=com.joaomgcd.autoshortcut
Task Shortcut is what the system shortcut it enables is called.
xbatis said:
Hello, I'm having issues with my N6 after the Marshmallow But I am facing a problem that for each application, I am getting screen overlay detected. If I follow on screen instructions, in settings, I can't change permission. i cannot upload any images from my phone to facebook,instagram basically any app trying to access the drive on my phone. can you guys help solve this issue.
thanks,
Click to expand...
Click to collapse
Boot into safe mode using hardware button combo. Enable all permissions, reboot normally
How to fix Screen Overlay Detected Error easily
xbatis said:
Hello, I'm having issues with my N6 after the Marshmallow But I am facing a problem that for each application, I am getting screen overlay detected. If I follow on screen instructions, in settings, I can't change permission. i cannot upload any images from my phone to facebook,instagram basically any app trying to access the drive on my phone. can you guys help solve this issue.
thanks,
Click to expand...
Click to collapse
This is because of the apps that are using "draw over other apps" feature. You can just turn them off from settings. If you want a head up on how to do this, you can go to this link here. Fix screen overlay detected
jokeinc said:
okay. I have called google support for five nights and not one tech support person was able to help me. After countless hours of fiddling i figured out how to fix this problem. Put your phone in safe mode (press the power off button and press on the on screen power off icon until it asks if you want to go in safe mode. Press okay) then once it reboots, go to settings, then apps, click on the facebook app or whatever app you have the problem with, press permissions and then turn on all the permissions (toggle to the right and it should turn green). Repeat for whichever other apps have this problem then turn reboot the phone and voila! It's fixed. :d
Click to expand...
Click to collapse
i'm ready to put my phone in the garbage disposal over this error. i can't get rid of it and can't even download a simple APK file from chrome without getting it. I've done everything suggested in every youtube video and what you said above.
i turn off screen overlay for every app shown, which is about 30 and i have none of the so called problem apps installed.
i go into safe mode and try to turn on a permission and I STILL GET THE SCREEN OVERLAY ERROR. i have no idea what to do or what is wrong.

How to turn off home button hold google search

When you hold the menu button it opens the google search. Is there a way to disable this? Or at least change the button delay time.
Settings/apps/advanced/default app settings/assistance and voice input/assist app
There you can change it. Probably the "deepest" setting on the phone :silly:
I set it to turn the screen off Btw, with an app called screen off and lock.
clouds5 said:
Settings/apps/advanced/default app settings/assistance and voice input/assist app
There you can change it. Probably the "deepest" setting on the phone :silly:
I set it to turn the screen off Btw, with an app called screen off and lock.
Click to expand...
Click to collapse
Oh my god thank you. Amazing. For some reason xda didn't email me your reply, but now I checked and your answer is beautiful.
clouds5 said:
Settings/apps/advanced/default app settings/assistance and voice input/assist app
There you can change it. Probably the "deepest" setting on the phone :silly:
I set it to turn the screen off Btw, with an app called screen off and lock.
Click to expand...
Click to collapse
Apologies for revisiting an old thread but this was the only place I found this solution.
Might be common knowledge for some but I wanted to highlight for other Huawei owners to try this.
In particular, this works also for a Huawei Y6 2017 !!
[NB: system is EMUI 4.1 on the MYA-L11 version of Huawei Y6-2017]
I recently bought my dad a Huawei Y6(2017) and installed easy-to-use apps for basic functions but the smallest delay in releasing the home button (maybe 1/4 sec or so!) was opening Google Search -- this was potentially going to drive hime crazy -- exactly the type of thing that would make him give up on his first smartphone!!
Being much more used to stock Android settings, I just couldn't find an option to stop or disable the long-press of the home button
tldr; As per the instructions, I set the buried option "Assist app" to "None". Job done.
Many, many thanks

video capture intent

hi everyone,
I have the following question: I'm trying to create an intent to launch the camera in video mode and start capturing. The launching is ok, but the capturing not. Maybe somebody could help me with an intent for it.
I'm using org.cyanogenmod.snap
note: I tried simulating camera button, but this didn't work.
I don't want to use any plugin, such as autoinput.
thanks in advance
Stock Camera doesn't have record intent, the only option you will have is to use autoinput or key event to start recording.
CrashOverride93 said:
Stock Camera doesn't have record intent, the only option you will have is to use autoinput or key event to start recording.
Click to expand...
Click to collapse
thanks
if not using intent, but key event, could you please recommend a task? I'm just looking for a way to do this without any plugin.
Well, as every phone (screen) and also camera app are different from each one, you will have to find your specific x/y coordinates. But the command is 'input tap xxx.x yyy.y', and don't forget to select use root.
Did you lunch the camera activity with 'android.media.action.VIDEO_CAPTURE'? (just a question for my info)
-----------------------------------------
I forgot to mention that there are phones that its camera app doesn't have direct play/record button, so will be necessary to follow different steps.
And another way you can accomplish that is by using key events.
http://thecodeartist.blogspot.com.es/2011/03/simulating-keyevents-on-android-device.html
CrashOverride93 said:
Well, as every phone (screen) and also camera app are different from each one, you will have to find your specific x/y coordinates. But the command is 'input tap xxx.x yyy.y', and don't forget to select use root.
Did you lunch the camera activity with 'android.media.action.VIDEO_CAPTURE'? (just a question for my info)
-----------------------------------------
I forgot to mention that there are phones that its camera app doesn't have direct play/record button, so will be necessary to follow different steps.
And another way you can accomplish that is by using key events.
http://thecodeartist.blogspot.com.es/2011/03/simulating-keyevents-on-android-device.html
Click to expand...
Click to collapse
nice suggestion, thanks!
For launching, I use VIDEO_CAMERA
It seems to be working now with simulating camera button press.

Categories

Resources