[Mod] Controll camera with car media remote - Android Software/Hacking General [Developers Only]

Hi,
I've bought a media remote like the one below that is traditionally used for cars with compatible bluetooth, as it sends keys like volume up/down, next/previous, play/pause.
I would like to get more out of that remote for the Camera app: volume buttons do take a picture so that is covered, but I would want to map the following:
- Play pause button to switch to front camera
- Back/Fw buttons to switch camera modes.
I tried doing this with MacroDroid, I mapped swipe left and right to switch modes, it works in other apps, it does not work inside camera app, it just re-opens the camera app. I believe MacroDroid does not have access for UI interaction when Camera app is opened.
Can anyone give me another solution that I could use to re-map media buttons (cancel original command) so i can controll camera? What am I missing?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

dumitrudan608 said:
Hi,
I've bought a media remote like the one below that is traditionally used for cars with compatible bluetooth, as it sends keys like volume up/down, next/previous, play/pause.
I would like to get more out of that remote for the Camera app: volume buttons do take a picture so that is covered, but I would want to map the following:
- Play pause button to switch to front camera
- Back/Fw buttons to switch camera modes.
I tried doing this with MacroDroid, I mapped swipe left and right to switch modes, it works in other apps, it does not work inside camera app, it just re-opens the camera app. I believe MacroDroid does not have access for UI interaction when Camera app is opened.
Can anyone give me another solution that I could use to re-map media buttons (cancel original command) so i can controll camera? What am I missing?
View attachment 5414405
Click to expand...
Click to collapse
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com

Related

[BUG] Hardware Buttons not changable

I have following Problem:
I would like to change the Hardwarebuttons of my Leo but in the "Keys" screen there are none -.-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also I have the Problem that it I cannot turn off the Windows Lock completely. I managed it to disable it when the device wakes up, but the lock activates when I turn off my phne with my HangOn button
you can use AEbutton plus
is working like a charm in leo
http://ae.inc.ru/aebplus.php
I wouldn't call it a bug. The buttons on the HD2 are already assigned to specific tasks already.
They wouldn't really want anyone assigning them to anything else. It's not like there are spare buttons (like on the X1) that aren't already assigned to specific functions.
So, like I said, not exactly worth calling a bug.
I cannot override the the hangOn button so the problem with the Windows Mobile Lock stays....
I've posted a reg for the send key in the hints and tips thread first page
no go
Looks like Aebutton and the reg key breaks existing button assignment.
I just installed AEBUttonPlus [because I had used it before on my HD - and I HATE not being able to scroll up/down a list of items WITHOUT triggering/opening one (EG spam email) ] - Stupid Windows/HTC AGAIN!
So I was trying to setup the HD2 the same way as I had it on my HD - that is;
'volume up HARDWARE button' has TWO functions = *one press = scroll up* : *Long press = Volume up* (same design for down of course)
But....I think I've possibly become less intelligent over the past year or something because I cant figure out how to do it in AEButtonPlus (and the website isn't much help) The prog itself isn't very intuitive, that much I do recall, but somehow I did manage it last year, to sort the HD - but can't replicate it now
If anyone knows what I mean and can help I'd be very much obliged - thanks!

[Q] iPhone-like music controls

Would it be possible to use a hardware track pad (if equipped) to simulate the same thing the iPhone/iPod touch used to do on a double click, that is bring up music controls with a volume slider, Play/Pause, Next, Previous, Song title and Artist? Sorry If this is wrong section.
adecker said:
Would it be possible to use a hardware track pad (if equipped) to simulate the same thing the iPhone/iPod touch used to do on a double click, that is bring up music controls with a volume slider, Play/Pause, Next, Previous, Song title and Artist? Sorry If this is wrong section.
Click to expand...
Click to collapse
That's a great idea. I'd like to know too if that's possible
Sent from my SGH-T959 using XDA App
If its possible I may try to develop it.
adecker said:
Would it be possible to use a hardware track pad (if equipped) to simulate the same thing the iPhone/iPod touch used to do on a double click, that is bring up music controls with a volume slider, Play/Pause, Next, Previous, Song title and Artist? Sorry If this is wrong section.
Click to expand...
Click to collapse
Idk if you would be able to use the track pad as it would likely just select what you have up on your screen but I think if someone coded it as a homescreen replacement and used the same workaround other devs have for other homescreen additives and let you select your homescreen in the app they make and then that be the one home press and have the music controls be the double press home... or have it as the long press on search and not have any of the home type stuff
bump.
this is a great idea.
Power Strip? I think you could do exactly what you want with the Power Strip app. Not sure if you can use trackpad click though but you can launch it from anywhere using a double-click home button, or other option, and have it overlay your music app widget on top of whatever screen you're on so you can change tracks and whatnot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks for this! This app is a godsend!
Sent from my Nexus One using XDA App

[Q] Remapping BT Headset Buttons (Change Call Button function)

I recently bought a Nokia BH-503 Bluetooth headset, and it has 4 buttons, 3 for media, that work flawlessly, and a Call button. Here's an image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Since the Xoom doesn't have phone functions, this button is unusable for me, so I thought about remapping it, but couldn't find any app that could do it. Most apps would work with headsets with 3 buttons.
If possible, I want to remap it for voice commands/action, I'm not sure what is supported on the Xoom (I had some problems with one of my tests, saying Voice Commands are unsupported), so, anything that I could touch the button, speak a function, and receive it by sound.
I searched and couldn't find, in fact, when searching for headsets and Android, usually I would find that calls works, and media not.
Xoom Wifi - Stock ICS 4.0.3 - Rooted
//////////////////////////////////////////////////
My tries [None worked]
//////////////////////////////////////////////////
I tried Headset Button ControllerTrial, but not only the Debug mode didn't work, there were no options related to a "fourth button".
I also tried Button Remapper, and it found the buttons, but...
It shows me the buttons (If I disconnect the headset, it crashes, so I believe they are all from it) (I don't know shy it won't show the 3 hardware buttons...), but there are buttons that just don't exist.
I tried changing the only button not directly specified on the phone controls, the Stop button, to Search, but nothing changed and the buttons are doing the exact same thing.
Thoughts
I have started researching this subject but have made little progress.
I believe how the remapping software you are using just modifies the Keyboard layout files in order to remap the functions (just an assumption). I tried doing this myself and it failed.
I think the reason is because bluetooth commands are handled separately from the keylayout mapping. It is built into the android system itself so it needs a custom program to intercept the command and set another function.
For reference, I would suggest you read this: stackoverflow.()com/questions/6287116/android-registering-a-headset-button-click-with-broadcastreceiver
The only solution I can come up with is writing a custom app. It is doable, but will take some time.

[APP][2.3+] - Z Selfie - Take a Selfie with headset

Hello,
I would like to present to all of you my Android app: Z Selfie
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Take a Selfie is not always easy with your front camera.
Now with the Z Selfie application you can take pictures
easily using your headset , you can stabilize the camera with
one hand then you take your Selfie with the other hand by pressing Play/Pause button of your headset.
How to use it? ?
1 - Connect your headset if this is not the case and press the Play/Pause button of the headset.
2 - If everything is OK the camera will be launched.
3 - Use Play/Pause button of the headset , or touch the screen to take pictures.
4- You can share the Selfie from the application.
I'm very excited to share this with you and I need your feedback.
You know what to do Enjoy !
up
up
where is the download link !
Nice idea
You can download at bit.ly/Z-Selfie (google play )
UP
New Features
You can download at play.google.com/store/apps/details?id=com.billApps.zSelfie
New Features
1. Take a Selfie easily by touch screen or Play/Pause button of headphones or earphone .
2. Switch between front and back camera with the volume up / down button of phone or earphone .
3. A help message is shown to display how to take a shot and how to switch between front and back camera, this can be permanently closed.
4. The preview includes a thumbnails view of the latest photos.
5. If any thumbnail is clicked, it opens an in-app photo viewer for easy viewing without leaving the app.
6. Take better quality pictures.
7. You can select the flash mode for front and rear Camera
8. You can select the focus mode for front and rear camera
9. Change the aspect ratio of your picture (16:9 or 4:3)
10. Share photos easily with your friends on social networks.
11. Compatibility with BLUETOOTH devices.
UP
New Features
apply effects to your photos

Restore Direct Access to Bottom Bar in List View (missing since Android APK v1.9.24)

Hi,
I'm an old user of MX Player app, and I'm in love with it. It's my first media player on all my Android devices.
Recently I installed an Android TV Box for my father's old 2000's TV, which came with its own outdated version of MX Player installed, and I have observed that there is a functionality using the TV remote that does not exist on updated versions of MX Player, although it existed on the factory MX Player version on Android TV Box.
The missing feaure consists of accesing the Bottom Bar (to delete, rename, etc.) directly pressing Left button on the TV Remote, once I've selected any element on the List View (file, folder...). For example, if I have a long list of media files (let's say 100 video files), whenever I wanted to delete one of them I followed these steps:
Old behaviour:
Select video file(s) long pressing Ok Button.
Pressing Left button -> direct access to Bottom Bar.
Press on Delete Button and Confirm.
Recent versions behaviour:
Select video file(s) long pressing Ok Button
Pressing Left Button now doesn't work. Instead, I have to keep going through the whole video List untill the last element.
Once I've reached the end of the list, press Down button again to access Bottom Bar.
Press on Delete Button and Confirm.
I have tracked through the previous APK versions to figure out when this feature disappeared and I have found that the last version with this fast shortcut to Bottom Bar was v1.9.24. Ever since 1.10.X version of MX Player that feature is missing.
I would like you to consider adding back that quick shortcut, which is quite handy to use on a TV, without the need of using mouse or any more advanced remote.
I attach* an example of the remote for the Android TV Box to let you see what kind of remote I am talking about.
Thanks in advance.
* TV Remote Model:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Categories

Resources