[XPM] MTC-Keys Button remapping tool - by MVG-V70 - MTCB Software Development

Malaysk said:
++++ Added a module for Xposed from MVG-V70 with Russian Forum (I thank him very much for the good job) mtc-keys, which allows action to remap the buttons radio.
Click to expand...
Click to collapse
Very nice addition. One less thing on my plate now
I hope MVG-V70 doesn't mind, but for those here that don't have 4pda.ru accounts, I've downloaded the file and attached it here.
It requires a text file named mtc-keys.ini located at /sdcard/mtc-keys/ that contain remapping definitions. From the original post (translated by google):
The configuration file must be a redefinition of the buttons on the inside of the map (/ mnt / sdcard or / mnt / internal_sd depending on the version of Android) in the catalog mtc-keys and called mtc-keys.ini
file to download happens when you start the radio.
Example mtc-keys / mtc-keys.ini
app_51 = ru.yandex.yandexmaps
Click to expand...
Click to collapse
Just in case people aren't clear, this is not my work. I'm just resharing it for those not on malaysk's roms and want to try it out.

jacekruf said:
Im still trying to fight with this mtc-key setup.
Dmesg showing only that key was press and that is screen below is from xposed log.
I just want to change one key from DVD to MXplayer pro.
Module is working fine, xposed as well file is looking good but every time i press DVD button all i got is standard dvd player.
Help.
Click to expand...
Click to collapse
I had a difficult time myself getting this to work. I looked high and low, and found a little bit of information here and there. So I complied everything I found and put together this tutorial. Hopefully this helps.
mtc-keys 2.5 from developer MVG-V70 on 4pda.ru (a russian site)
Must have access to root
Need to install:
Exposed framework
CarService
AppInfoViewer
mtc-keys 2.5
A root browser
Download and install mtc-keys 2.5
Create the folder (mtc-keys) (no uppercase letters)
The folder must be located in one of the following spots depending on the version of andriod. **It will not work if the mtc-keys directory is in the wrong place**
/mnt/sdcard/
/mnt/internal_sd/
/mnt/external_sd/
To discover the buttons keycode open CarService - clear the log and press a button, its keycode will appear
To discover package name download AppInfoViewer
Create the text file mtc-keys.ini within the folder mtc-keys folder
i.e.
/mnt/external_sd/mtc-keys/mtc-keys.ini
a four line mtc-keys.ini example: (all lowercase)
app_84=com.clearchannel/iheartradio.controller
app_42=com.opera.mini.native
app_3=com.microntek.bluetooth
action_45=apps
MTC Instructions taken from 4pda.ru site:
app_xx = package name
xx-button code, the package name, the name of the package installed program. eg: app_42 = ru.yandex.yandexmaps on the DVD is assigned to the program Yandex If you press when you run the program is already running, it is inactive.
activity_xx = name of the package / class name
xx-button code, the package name, the name of the package installed program, the class name, the full name of the class Activiti.
We aktiviti triggered should be set sign exported = "true", or the present list Navi button is assigned to the call of the main window ES-Explorer.
action_xx = action
xx-button code, the effect is one option from the list: home, menu, back, apps, screenshot.
eg: action_51 = apps button Navi is assigned access the list of applications.
intent_xx = intent
sending broadcast Intents.
event_xx = button code
MY CAR BUTTON MAP
Leftside;
DVD = 42
TV = 73
RADIO = 43
MEDIA = 84
LEFT KNOB/ PUSH = 4
LEFT KNOB CLOCKWISE = 19
LEFT KNOB CCW = 27
Rightside;
PLAY/PAUSE = 3
TRACK DOWN = 45
TRACK UP = 46
NAVI = 51
RIGHT KNOB PUSH = UNDEFINED
RIGHT KNOB CLOCKWISE = 59
RIGHT KNOB = 58
a four line mtc-keys.ini example:
app_84=com.clearchannel/iheartradio.controller
app_42=com.opera.mini.native
app_3=com.microntek.bluetooth
action_45=apps
This changes the behavior as such:
DVD = 42 = OPERA
TV = No change
RADIO = 43 = No change
MEDIA = 84 = IHEART RADIO
PLAY/PAUSE = 3 = BLUETOOTH
TRACK DOWN = 45 = RECENT APPS
TRACK UP = Nochange
NAVI = No change
Hopes this sheds some light.
---------- Post added at 03:23 PM ---------- Previous post was at 03:08 PM ----------
dranny69 said:
Hi I would like some advice if possible , i have just got my steering wheel controls working and i have mapped the volume buttons and track up and down buttons . the volume control is working fine and the skip track buttons are working fine on the stock music player but on any other music player skip track buttons do not work ? is there a music player that is better than the poor stock one that will work with the track up/down buttons ? thanks
Click to expand...
Click to collapse
Try:
http://forum.xda-developers.com/and...app-modding-radio-music-movie-kld-jy-t3217197
It is better, don't know if it will work for you.

forum.xda-developers.com/showthread.php?p=63615305&highlight=mtc-keys+2+5#post63615305
Mtc-keys 2.5 from developer MVG-V70 on 4pda.ru (a russian site)
Must have access to root
Need to install:
Exposed framework
CarService
AppInfoViewer
mtc-keys 2.5
A root browser
Download and install mtc-keys 2.5
Create the folder (mtc-keys) (no uppercase letters)
The folder must be located in one of the following spots depending on the version of andriod. **It will not work if the mtc-keys directory is in the wrong place**
/mnt/sdcard/
/mnt/internal_sd/
/mnt/external_sd/
To discover the buttons keycode open CarService - clear the log and press a button, its keycode will appear
To discover package name download AppInfoViewer
Create the text file mtc-keys.ini within the folder mtc-keys folder
i.e.
/mnt/external_sd/mtc-keys/mtc-keys.ini
a four line mtc-keys.ini example: (all lowercase)
app_84=com.clearchannel/iheartradio.controller
app_42=com.opera.mini.native
app_3=com.microntek.bluetooth
action_45=apps
MTC Instructions taken from 4pda.ru site:
app_xx = package name
xx-button code, the package name, the name of the package installed program. eg: app_42 = ru.yandex.yandexmaps on the DVD is assigned to the program Yandex If you press when you run the program is already running, it is inactive.
activity_xx = name of the package / class name
xx-button code, the package name, the name of the package installed program, the class name, the full name of the class Activiti.
We aktiviti triggered should be set sign exported = "true", or the present list Navi button is assigned to the call of the main window ES-Explorer.
action_xx = action
xx-button code, the effect is one option from the list: home, menu, back, apps, screenshot.
eg: action_51 = apps button Navi is assigned access the list of applications.
intent_xx = intent
sending broadcast Intents.
event_xx = button code

This might be related a little to this thread, we went from needing a forum to maybe having too many forums haha. There's a way to flip the direction of your up / down in the factory settings, correct? Which setting is that exactly, I can't tell by the labels.

Thanks to everyone above who has posted about the mtc-keys module.
I am gradually getting things to work how I want and have been able to successfully remap my "MEDIA" button to launch my preferred music playing app.
Now a few more issues have come up. I can't work out how to get the play/pause, skip forward and skip back buttons to work in the music app I am using. I have worked out the key codes using CarService but I dont know how to write the entries in the .ini file to use these functions in the app. Any one have any ideas how to do this. I assume it will use the activity_xx or action_xx parameter but how can I find out what these are from my music app (currently trying out Mixzing).
Also, with the stock apps if you were in music player and pushed the radio button (called BAND on my head unit) it would close the music app and open the radio and you wouldnt get both playing over each other. Similarly opening the music app would close the radio. This no longer works, so is there a way I can get it to terminate or close the music app if I push radio button or terminate radio if I launch the music app?
I have searched this a fair bit and havent come up with much and the original post being in Russian isnt helping.
Any help or advice anyone is willing to provide would be most welcome.
Kind regards,
Steve

WestlakeSt said:
Any one have any ideas how to do this. I assume it will use the activity_xx or action_xx parameter but how can I find out what these are from my music app (currently trying out Mixzing).
Click to expand...
Click to collapse
It depends on how that media player expects commands to come to it. Some use the generic Android media intents, others use app-specific intents. The easiest way to find out is to send generic android intents from a shell (or Terminal). If it responds, then you're good. You can also try sending keyevents for specific keys, and see if it responds to those.

agentdr8 said:
It depends on how that media player expects commands to come to it. Some use the generic Android media intents, others use app-specific intents. The easiest way to find out is to send generic android intents from a shell (or Terminal). If it responds, then you're good. You can also try sending keyevents for specific keys, and see if it responds to those.
Click to expand...
Click to collapse
Hi agentdr8. Thanks for your help (here and in the other thread ). I have now started using Poweramp and the play/pause, next track, prev track hard buttons work fine without any need to use mtc-keys.

Can the MTC-keys make that:
I would like to use radio and Poweramp app by pressing hard button rotatory.
- When I listening poweramp and press the Radio button, will be the result: radio start and Poweramp app killed. I made this with rules of LLama app.
- When I listening Radio and press the Media (Poweramp) button, will be the result: Poweramp start and Radio app killed. I didn't kill radio app with Llama app.

A quick question: since malaysk's latest ROM update, I have to press TWICE a key to work AFTER REBOOT. After that, it works if I press only once, but right at the first keypress, I have to press it two times to work.
Any key.
Any idea what could that be?

robertut said:
A quick question: since malaysk's latest ROM update, I have to press TWICE a key to work AFTER REBOOT. After that, it works if I press only once, but right at the first keypress, I have to press it two times to work.
Any key.
Any idea what could that be?
Click to expand...
Click to collapse
I was experiencing that with the stock firmware and still experiencing it now that I'm on Malaysk ROM. However I have noticed that sometimes if I wait a while I don't need to press it twice. So it might be a overworked or working processor problem.
I guess it's good to see someone else with the same issue.

tmiller101 said:
I was experiencing that with the stock firmware and still experiencing it now that I'm on Malaysk ROM. However I have noticed that sometimes if I wait a while I don't need to press it twice. So it might be a overworked or working processor problem.
I guess it's good to see someone else with the same issue.
Click to expand...
Click to collapse
I also experience this issue and I am using stock rom which is now rooted. I have also found like tmiller101 that if you leave the unit for a bit after first booting it doesn't need to two presses to the start to function normally. Could it be something needing to load in the background after boot for the hardware buttons to function???
Its a bit odd but doesn't bother me to much luckily.

How to disable activity?
I'm trying to replace my play/pause button function with bluetooth app like this:
app_3=com.microntek.bluetooth
It starts the bluetooth app, but it also starts playing the music through it, and also starts Music player app in the background ocasionnaly. I don't want any of that.
All I need is to start the Bluetooth phone app, in order to make calls. Just like I was able to remap DVD button to something else.
Any idea?

Tried the Carservice app on my KLD rom. Crashed when I hit clear log, and never shows any key codes.
Need to get this working as my radio has NO hardware home or back button, and trying to swipe from the top is almost impossible thanks to the raised bezel.

lotherius said:
Need to get this working as my radio has NO hardware home or back button, and trying to swipe from the top is almost impossible thanks to the raised bezel.
Click to expand...
Click to collapse
Try using Terminal and run:
Code:
# logcat | grep mtc-keys
And then try pressing the hard buttons you do have. It should print out their keycodes.

Got it working, thanks. Simpler than the instructions made it seem.

Hi all,
Thanks for all info on this great app. I would like to change two of my hard key settings:
I would like to change my EQ setting to instead of cycling through the default EQ profiles , to take me to the fader screen inside of amp settings.
I would also like to change my SETUP button to cycle between the (a) Setup screen and (b) as if pressing the Home button.
I have logged my buttons as 49 for EQ and 74 for SETUP. And I think I want action commands. But I am not sure what is the action to get to the fader screen within the Amp settings; i.e. action_49 = [??]
And I am not sure if I can cycle by pressing a button more than once, or what is the setup screen command to insert? i.e. action_74 = home [but then ??]
Help much appreciated!
But at this point I am a bit stuck as I do not know how to tell what command would take me to the the fader screen or is the

Mr Bigglesworth said:
And I am not sure if I can cycle by pressing a button more than once, or what is the setup screen command to insert? i.e. action_74 = home [but then ??]
Click to expand...
Click to collapse
I don't think mtc-keys can cycle between different actions/apps/activities from a single remapping.
As for the Poweramp EQ, you'll need to figure out what the activity is named within the package. Give Package Explorer a try and see if it lists the activity. Then use that in mtc-keys.ini as activity_##=package_name/activity_name

ktibor69 said:
Can the MTC-keys make that:
I would like to use radio and Poweramp app by pressing hard button rotatory.
- When I listening poweramp and press the Radio button, will be the result: radio start and Poweramp app killed. I made this with rules of LLama app.
- When I listening Radio and press the Media (Poweramp) button, will be the result: Poweramp start and Radio app killed. I didn't kill radio app with Llama app.
Click to expand...
Click to collapse
Yes you can. From my recent experience shouldnt need LLama app.
First you need to find out the key codes of the hard buttons you want to use with the CarService app.
Install XposedMTC and in this app's settings change the preferred music app to Poweramp
Add the following lines to your mtc-keys.ini file (replacing xx with the code for the hard button you want to use)
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Music
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Radio
Good luck

WestlakeSt said:
Yes you can. From my recent experience shouldnt need LLama app.
First you need to find out the key codes of the hard buttons you want to use with the CarService app.
Install XposedMTC and in this app's settings change the preferred music app to Poweramp
Add the following lines to your mtc-keys.ini file (replacing xx with the code for the hard button you want to use)
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Music
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Radio
Good luck
Click to expand...
Click to collapse
I tried your solution.
I edited my used mtc-keys.ini, but now does't work the MTCkey function. I'm using version 1.2. Until I used perfectly mtckey function: DVD button was remapping to iGo.
I did only: I made new mtc-keys.ini file and replaced the old mtc-keys.ini file and reboot the HU.
What did I do wrong?
Edit: In the morning the MTC-keys function is work well.
But the offer solution doesn't work (rotary radio/poweramp).
Did you try your solution? Which version of the MTC-keys did you use?
Edit2:
I installed the latest v2.6 MTC-keys. And now your solution works perfectly.
Many thanks!

agentdr8 said:
I don't think mtc-keys can cycle between different actions/apps/activities from a single remapping.
As for the Poweramp EQ, you'll need to figure out what the activity is named within the package. Give Package Explorer a try and see if it lists the activity. Then use that in mtc-keys.ini as activity_##=package_name/activity_name
Click to expand...
Click to collapse
So I was playing around with mtc-keys, found a couple of interesting things.
You can cycle in a limited fashion, e.g. I had:
"action_74 = home
action_74 = apps"
And this worked as cycling between home and apps depending on what was last pressed.
I then tried:
"action_74 = home
app_74 = com.android.settings"
And this didn't work - it would only go to the settings menu. So it seems that when you select two 'actions' it can cycle, but when you mix an 'action' and an 'app' it wouldn't work. It also doesn't cycle if you have several apps to the same key - it just seems to use the last set app.
Also - does anyone know how a quick way to restart mtc-keys without switching off and on the unit (as it is taking me ages to try different permutations otherwise!).

Related

Hardware keyboard translation for HP 600, Touch Dual, Asus p750

Hi ,
I have written a small application:
http://rapidshare.com/files/125258935/HebKeys_tog198.CAB.html
This application is designed for window mobile 6 devices that has a numeric keyboard,
one of the problems with this type of devices is that there isn't language support for them, for example if you want to write sms in hebrew or russion using this keyboard it is impossible.
After installing this application a XML file (layout.xml) will be coppied to your device containning all the translation of the keyboard. (this xml is configure to HP 600 !!! it will not work on other devices)
The xml file contains group of hardware keys (for example):
<keys>
<HWcode>48</HWcode>
<state1>0</state1>
<state2>ך</state2>
<state3>ן</state3>
<state4>ף</state4>
</keys>
in this example hardware key 48 will contain the following signs: 0-zero, "ך" - hebrew sign, "ן" - another hebrew sign, "ף" and another hebrew sign.
clicking on hardware key 48 (0 in the hardware keyboard of the hp 600) will itirate between does "states".
This application will run in the background, for toggeling it's translation use your Voice button (key 198) or configure it to different button:
<tog>
<HWcode>198</HWcode>
</tog>
you can of course configure yourself the signes and hardware keys to mach your device.
I written another application in order to help you find what is the hardware code for every key in your device:
http://rapidshare.com/files/125091730/KeyMap_13.zip.html
this two applications will not run together, so make sure you are closing one before running the other (SR is also agood idea).
Pls backup all your data before installing the applications.
link to the original thread (hebrew):
http://www.pocketpcfreak.com/cgi-bin/yabb/YaBB.cgi?board=Himalaya;action=display;num=1214408412
have fun
Rani
HW keyboard working on 3rd party apps in Dual
Great news to those using Touch Dual with 20keys and are fustrated with the HW keyboard typing only numbers on 3rd party apps (like Opera, Google Search etc.) - this HebKeys app by Golum can provide a reasonable solution.
Limitations:
- No XT9.
- No Shift or Capital letters.
- No symbol window access (SYM is not active).
- Long delay is required in words that have two consequent letters mapped to the same key (e.g. REad, because R and E are on the same key). Alternatively, if an unmapped key is pressed (SYM), you can re-press the key again and get the next letter.
BTW, Golum promised to provide an update with an option to update the value of this delay through an xml file.
How to install:
1. download the HebKeys app by Golum, from http://rapidshare.com/files/125260462/HebKeys_button198.CAB.html
2. download the following key mapping layout that I have created: http://www.4shared.com/file/52928436...55/layout.html
3. after installing the app, replace the layout.xml file in the app folder (under Program Files) with the layout.xml file that you downloaded in 2.
Now what you need is to run the installed app and the re-mapping is done (need to re-run it after soft-reset).
If you run the app after it was activated, you can stop it using the "Exit" button. BTW, it is possible that the link above by Golum is for a slightly different version than the one in the link I provided, in which the default when running the app is the "unmapped keyboard" and there's no option to exit (no Exit button). Golum? I personally prefer the one with the Exit option.
If you wish to play with the mapping layout, you can edit the XML yourself. It is quite readable. Notice you cannot put less than 4 options (representing 4 repeating presses) to each key.
The last key mapped is for toggling the mapping on and off (the app is still in the background). Default is the ALT key.
The mapping of the HW keys of the 20key Dual is as follows (in the order it appears on the keyboard):
81 49 50 51 79
65 52 53 54 76
90 55 56 57 8
236 119 48 120 13
If you have a different device, you can try the key mapping app in the link from my previous post, to get the mapping.
Regarding Hebrew:
The layout file that I have provided solves the keyboard problem, but replaces the Hebrew support in the original layout included with the HebKeys app. However, I found that if you have Eyron Hebrew support installed, when the HebKeys is activated and you switch to Hebrew in the Eyron soft keyboard you can use the keyboard to write Hebrew!
If you think you managed to improve it, added the Shift or Sym functionality etc. - please share with all.
Enjoy.
Update:
Please note that I have updated the layout.xml a little, so if you already downloaded it - please re-download and re-copy to the proper folder.
If you really insist to know why I udpdated:
I found out the key I used for space is actually &NBSP, which seems like a space but is not exactly a space.
For some reason putting merely a space character in the XML does not work (not recognized, probably removed by the XML interpreter), so I added a NULL character afterwards, to turn it into a significant space.
Great App, seems to be the most awaited fix for the XDA Stealth keypad. Thanks GOLUM.
- Long delay is required in words that have two consequent letters mapped to the same key (e.g. REad, because R and E are on the same key). Alternatively, if an unmapped key is pressed (SYM), you can re-press the key again and get the next letter.
BTW, Golum promised to provide an update with an option to update the value of this delay through an xml file.
Click to expand...
Click to collapse
Is it possible to use the joystick or navigation pad (right) to be able to move the cursor right away to type the next character? I used to do this on my Nokia days before.
and by the way, is there anyway to do a toogle with this one for enabling and disabling? i mean there would be a toggle that would enable this and use your configured XML as the layout then a toggle OFF to use the default or original keyboard layout. That would be awesome!
The cursor key may not be the greatest idea, as it also functions to move the curser around. It depends on the application - in some it will give you exactly what you want, in others it will move away from the location of the next word.
An alternative option is to use an unmapped key or one that is mapped to nothing, as I explained (I use SYM).
Reg toggle - as explained in the posts the last key in the layout.xml is the toggle key definition. Default is ALT.
Please note that I have updated the layout.xml a little.
If you really insist to know why I udpdated:
I found out the key I used for space is actually &NBSP, which seems like a space but is not exactly a space.
For some reason putting merely a space character in the XML does not work (not recognized, probably removed by the XML interpreter), so I added a NULL character afterwards, to turn it into a significant space.
can u provide this too on xda stealth?
Space
I cannot make a space?
HOw should I write it in text editor?
Pls Help!
space
"space" works with "0"-button, without <HWcode>48</HWcode>... in layout.xml
suggestion
tried this on my stealth, with the Layout.xml file changed to a regular eng to replace the multitap on my stealth, so far it's working fine with the exception of only 4 characters assignment on each hardware keys.. Can the maker or someone set the assignment to 5 char per key so we can accomodate the letters and number for 7 and 9..
WOW AWESOME!!
it is working properly on my stealth..
now i can write a message faster than before..
Thanks a Lot GOLUM
hopefully it can 5 char/key on the next release..
can someone plz upload the layout file for the touch dual again?
tnx

[28 March 2009]Start Menu Button Hook v. 0.3

StartButton.
25 February 2009 v. 0.1 - First release
5 March 2009 v. 0.2 - changes:
+ option to intercept the tap on the text on the right of the start button, usually "Start"
I don't think it is a good idea, but since someone requested it...
+ option to specify the full path to the launched program, works for programs on memory card
28 March 2009 v. 0.3 - changes:
+ option to hook the hardware Window Buttons for devices that have it
Developed with iLaunch (http://forum.xda-developers.com/showthread.php?t=486618) in mind, it's a very simple application: you can specify a program, and it will be run when you "tap" on the start icon.
It's main purpose is to replace the Start Menu with another "launcher" application, allowing to access anyway to the Windows Start Menu by tapping on the right of the Start Button.
Someone requested to extend the hook to the "hardware Start Button", but afaik there is not such a standard hardware button, at least on WM5 and WM6.
Some devices have an hardware button for the Start Menu, some don't, some don't have hardware buttons at all.
There are other applications that can manage hardware buttons, StartButton is for the icon!
It's based on the code of GreenButton by Supbro (http://forum.xda-developers.com/showthread.php?t=462963)
Both are open source GNU GPL V3
StartButton source is at Google Code:
http://code.google.com/p/startbutton/
How to start a program?
HKCU\software\iApps\StartButton\Run
the default value is: "iLaunch\iLaunch.exe" (without the ")
You can specify here a relative path to your program files folder: in an english wm program files folder is, well, "Program Files", and usually applications are located inside it.
so if you want to use say "MyApplication.exe" wich is inside the "MyApplicationFolder" wich is inside the "Program Files" folder:
the full path is:
\Program Files\MyApplicationFolder\MyApplication.exe
and then you need to write:
MyApplicationFolder\MyApplication.exe
if you want to start an application that is not on the Program Files folder, you can write the full path instead:
\Memory Card\Program FIles\MyApplicationFolder\MyApplication.exe
How to extend the hook to the "Start" text?
HKCU\software\iApps\StartButton\HookText
Set this value to 1 for hooking the word "Start"
Delete the key for hooking only the Start button
You have to soft reset your device for the changes to have effect
How to extend the hook to the hardware button?
HKCU\software\iApps\StartButton\HookWinKey
Set this value to 1 for hooking the hardware button
Delete the key for hooking only the screen Start button
You have to soft reset your device for the changes to have effect
thanks a TON for this man, it was exactly what I needed!
thanks again
btw, how much RAM does it consume?
mbarvian said:
thanks a TON for this man, it was exactly what I needed!
thanks again
btw, how much RAM does it consume?
Click to expand...
Click to collapse
According to fdcTaskManager, 1Kb
wow, this is awesome! have always wanted something like this! thank you.
It doesn't work on my Glofiish X600. When is enabled the start menu icon doesn't respond no matter what application I define in registry. When I disable it start menu returns to normal.
dancer_69 said:
It doesn't work on my Glofiish X600. When is enabled the start menu icon doesn't respond no matter what application I define in registry. When I disable it start menu returns to normal.
Click to expand...
Click to collapse
You have to soft reset the device when you change the registry value.
And could you post the path you entered in the registry?
Hmm, maybe someone could use this hack to make a WM 6.5 style launcher...
Just out of curiosity, is there any reason you elected to make this an application instead of a service? I'm not being critical I was just curious because I'm in the early stages of developing a GUI-less application as well and I'm trying to decide which is the best way to implement (service vs application).
Great work!
lotion said:
Just out of curiosity, is there any reason you elected to make this an application instead of a service? I'm not being critical I was just curious because I'm in the early stages of developing a GUI-less application as well and I'm trying to decide which is the best way to implement (service vs application).
Great work!
Click to expand...
Click to collapse
The real reason is that GreenButton is an application, and StartButton is based on GreenButton source code...
But probably changing to a service is a good idea
allelimo said:
You have to soft reset the device when you change the registry value.
And could you post the path you entered in the registry?
Click to expand...
Click to collapse
I didn't soft reset everytime and I tried with appilcations in storage card.
This is only for main memory's program files path I suppose.
Is there any way to start a program from another path and mostly from storage card?
Help
So how to I map this To my program list are menu.?
dancer_69 said:
I didn't soft reset everytime and I tried with appilcations in storage card.
This is only for main memory's program files path I suppose.
Is there any way to start a program from another path and mostly from storage card?
Click to expand...
Click to collapse
As for now (version 0.1) StartMenu and the target application must be in the main memory, I'm sorry but I didn't clearly stated this...
nucentury08 said:
So how to I map this To my program list are menu.?
Click to expand...
Click to collapse
Sorry, I don't understand your question
Update(01/03/09): Implemented display scaling so more apps work. New version based on android 1.1 with working Gmail, Calendar and Market.
bug with new version for Vogue
When screen shut off with End Call Button Screen placement is random
Is this just for a hardware button or can it replace a screen tap as well? I ask only because I have no hardware start button on my device.
theoneownz said:
Update(01/03/09): Implemented display scaling so more apps work. New version based on android 1.1 with working Gmail, Calendar and Market.
bug with new version for Vogue
When screen shut off with End Call Button Screen placement is random
Click to expand...
Click to collapse
Wrong thread I guess...?
zarxic said:
Is this just for a hardware button or can it replace a screen tap as well? I ask only because I have no hardware start button on my device.
Click to expand...
Click to collapse
It's not for the hardware button, it intercepts the click (or "tap") on the Start Menu icon.
can you make it fully replace startmenu? not just icon press?...if so please do another version
pcarvalho said:
can you make it fully replace startmenu? not just icon press?...if so please do another version
Click to expand...
Click to collapse
i was about to say that also, thank you
i still get the menu if i press the text....
+1 for full interception
+1 full start menu

redirect Q home screen to a launcher

By default, the Q has no launcher, and instead uses 'broker' as the default launcher, which has no interface, only loads up the visualizer. You cannot change this with a home switcher or any other app capable of changing the launcher. I haven't been able to find how exactly the Q is doing this, but I did find a workaround.
This assumes you are already rooted, you have a controller connected via OTG cable and have Nova launcher installed. This will work with other launchers but you will have to write your own app to launch something else.
For me, the solution consists of:
- Connect a controller of your choosing (logitech K400), and install Nova launcher
- Identify the Scan Code of the button you would like to use as a 'Home' key (KeyTool.apk attached to help find it easily if not a standard home button)
- Remap the 'CALL' action to the button you want to use. (I chose CALL since is of no use to the Q.)
- Install a small app to intercept the 'CALL' intent and fire up your launcher
1) To connect a controller, you will need a OTG cable. I wont go into this since others have already covered this in detail. Here's a good example: http://davidnhutch.com/sandbox/blog/connect-a-mouse-and-keyboard-via-usb/
2) If your controller already has a home button, and it is already kicking you to the visualizer, the scan code you're looking to intercept is probably 172. If not, you can install KeyTest.apk (attached credits solarbanjo at mobileread.com forums) on the Q and it will tell you the scancode when you press each button.
3) Now, you need to edit the Q's keylayout file (found in /system/usr/keylayout/Generic.kl) and point that key declaration to 'CALL' instead of 'HOME'. Find the number that cooresponds to your scan code, and change the action to CALL.
BTW There are probably multiple key layout files in this folder. I've attached my Generic.kl for reference, but if you're not using the same keyboard this might not be useful. Compare to yours and change accordingly.
Note: If you edit Generic.kl it will change the default action for any new device that is connected. The *proper* way to do this is to create a device specific key layout, but I didn't bother because I'm lazy.
You can find more detail about this part here: http://chris.boyle.name/2010/08/android-keymaps and here: http://www.mobileread.com/forums/showthread.php?t=159538
4) Install HijackDialer.apk (attached). This app is simple, all it does is received the dial intent and launches Nova. No need to run as service since its the only app registered to the dialer intent. Ideally, this would allow you to choose your launcher but this works for now.
I also mapped My F1 - F11 Keys to other actions like BACK, FORWARD, POWER etc. Now my keyboard can control the Q completely and I can get to my launcher without having to send adb commands. All I'm missing now is a 'close' button to kill locked up apps that don't behave on the Q.
I'm sure I may have glossed over some details but hope this helps someone.
Great work. I'll try this out this week.
Sent from my Nexus 7
I know this was posted some time ago but everytime I tried to change the Value an press sabe it say error can save. same thing happen trying to put the tablet xml also trying to change the dpi value is there something I have to do to edit system stuff
Forget it found my mistake need to be root to edit files just download Rom toolbox

[App] CarService + PhoneRemoteStatus SWC (Steering Wheel Control) for 3rd Party Apps

If you like my apps, and want to support my work, please, press "donate" button on the left or "Gift KeiserSozey" on the bottom and buy me a beer !
CarService :
Allows steering wheels and front panel buttons to control a 3rd party music player
To adjust buttons key codes :
- Start CarService application
- Press next/previous buttons on front panel and steering wheel and note down the corresponding key codes
- Go to the SWC/Music service settings and type the keycodes
Intents to start/stop services (e.g. to start services from Tasker app):
- Start SWC/Music service :
Code:
com.keisersozey.carservice.swc_music_action.START_SERVICE
- Stop SWC/Music service :
Code:
com.keisersozey.carservice.swc_music_action.STOP_SERVICE
- Start Phone Status service :
Code:
com.keisersozey.carservice.phone_action.START_SERVICE
- Stop Phone Status service :
Code:
com.keisersozey.carservice.phone_action.STOP_SERVICE
Activities to start services (e.g. to start services from Trigger app) :
- Start SWC/Music service :
Code:
com.keisersozey.carservice.SwcMusicStartActivity
- Start Phone Status service :
Code:
com.keisersozey.carservice.PhoneStatusStartActivity
NEW FEATURE !!!
It is now possible to display the current battery and network status of your phone on the notification bar and on a widget on your home screen
V2.1.3:
- Added broadcast receiver to start/stop services (e.g. to start services from Tasker app)
- Added activities to start services (e.g. to start services from Trigger app)
V2.1.2:
- Spotify control : removed limitations ("play with 'next' " function available etc...)
V2.1.1:
- Phone status service : now display signal strength and data network type on notification bar
- Added support for Spotify with some limitations : "play with 'next' " not available, no resume after mute OFF and after phone call.
V2.0.2:
- Home widget (Phone status) : graphical modifications, size bug fixed
- Filter on SWC button (Key-code filter) to prevent multiple key-codes events bug
- Music paused when Bluetooth activity starts and SWC buttons ignored as long as it is running
V2.0.1:
- Parameter "Ignore playing state": Activate it when music app seems to not be compatible with CarService (music does not pause or play when pressing SWC buttons)
- Bug fixed : SWC/Music service continues to run when it is deactivated
V2.0.0 :
- New feature : Phone status on notification bar and home widget
- UI has been fully redesigned (more beautiful !)
- Now, it is not required to restart application or reboot the unit to apply changes in parameters
- 2 key-codes parameters by functions (e.g. to map "Next" button from both steering wheel and front panel)
- Added "Rewind" and "Fast forward" functions
- Added "Behavior" settings category : you can disable some behaviours managed by app like "Pause on mute" etc ...
- Now, buttons triggering is ignored when any of built-in applications (Microntek app) is running (not only radio)
Known bugs with the widget : some problems with the size. If your home screen allow to resize widgets, insert it in an almost empty screen and resize it, then move it where you want. I will fix this bug as soon as possible.
RemotePhoneStatus:
The client application to install on your phone. It sends the statuses to CarService through WiFi on local network or using your phone as a WiFi access point.
WARNING : For the moment, this application drains battery when the service is ON ! So it is highly recommended to enable it only when you're in your car.
You can automate starting of the service with Trigger or Tasker app :
Use activity "com.keisersozey.remotephonestatus.ActivityStartService" and "com.keisersozey.remotephonestatus.ActivityStopService"
Or by sending intents (no tested yet...) : "com.keisersozey.remotephonestatus.action.START_SERVICE" and "com.keisersozey.remotephonestatus.action.STOP_SERVICE"
V1.1.0:
- Fixed bug : sometimes app does not find CarService application
V1.0.0: first release
Find it also on http://huifei.fs-fileserver.de/ on "release directory"
CarService : new version coming soon
I'm currently working on a new reworked version of CarService with improved functions and new features :
Music:
- SWC Control of a large list of players : by now, are supported : PowerAmp, Google Music, Spotify, Deezer, JetAudio, N7 Player (More on demand)
- Change current controlled player from SWC button or widget
Phone calls:
- Make a call or answer from a standard dialer app (tested with ExDialer) or from vocal command with Google voice
- If you're fed up with the bad quality of the head unit Bluetooth, use an external Bluetooth handset or built-in car Bluetooth system by connecting its audio output to the head unit audio input. CarService will manage to switch-on audio input when making or receiving call. Using this method, it will be possible to stream music from Phone by switching-on audio-input with a widget button.
Improvements:
- Restart service when leaving sleep mode
- Start service earlier on boot and be able to use SWC controls as soon as possible
- Be able to customize actions on SWC button by starting a Tasker script
- Visibility of phone status notification icons configurable.
... and more
When it will be ready, this version will be available on Play Store at cheap price and a trial period.
UPDATE: On my Todo-list:
- Support for players : AIMP, Pandora, Player Pro, Rocket, DSub, Napster, Slacker, MTC Radio, MTC Music, Rhapsody, Pocket Casts, Wavesink (DAB+)
Player does not react
Hi,
i tried your app on my head unit (kgl rk3188 1024x600, i think). After setting it up, i can see the "next" and "previous" toasts pop up, but google play music doesn't react. Do i need to have my head unit rooted? Or is there something else i could have missed?
dschiesu said:
Hi,
i tried your app on my head unit (kgl rk3188 1024x600, i think). After setting it up, i can see the "next" and "previous" toasts pop up, but google play music doesn't react. Do i need to have my head unit rooted? Or is there something else i could have missed?
Click to expand...
Click to collapse
No need to root.
Do you have another player installed ? (like poweramp or another one)
Is "Spotify control" parameter unchecked in the settings ?
Also, Google Music has to be the default player.
KeiserSozeyFr said:
No need to root.
Do you have another player installed ? (like poweramp or another one)
Click to expand...
Click to collapse
I have an Podcast Player (pocket cast) installed.
Is "Spotify control" parameter unchecked in the settings ?
Click to expand...
Click to collapse
I tried it checked and unchecked
Also, Google Music has to be the default player.
Click to expand...
Click to collapse
How do i make it the default player?
dschiesu said:
How do i make it the default player?
Click to expand...
Click to collapse
Try with XposedMTC mod :
http://forum.xda-developers.com/showthread.php?t=3247910
I don't know how to do it more easilly
Please as support for Slacker Radio.
Sent from my Nexus 5 CAF using Tapatalk
xluisx said:
Please as support for Slacker Radio.
Sent from my Nexus 5 CAF using Tapatalk
Click to expand...
Click to collapse
It's in my ToDo list already !
Amazon music
Hi, Could you add Amazon music app?
Thank you
Great app, however i've got 1 problem i'm trying to fix.
Am using poweramp as my player, and Carservice controls it fine.
When I switch to Radio, Poweramp stops playing, however when I turn off the car, next time I start the car, the radio app starts, and Poweramp starts in the background and plays where it left off.
Any ideas on how to fix this? I can probably create a llama profile to work around it, but thought it might be a very simple checkbox i'm missing or something.
Syphe said:
Great app, however i've got 1 problem i'm trying to fix.
Am using poweramp as my player, and Carservice controls it fine.
When I switch to Radio, Poweramp stops playing, however when I turn off the car, next time I start the car, the radio app starts, and Poweramp starts in the background and plays where it left off.
Any ideas on how to fix this? I can probably create a llama profile to work around it, but thought it might be a very simple checkbox i'm missing or something.
Click to expand...
Click to collapse
Did you activate auto-play on Poweramp app or on CarService ?
How is the "new version" coming along? if you need a beta tester i'll help out, no problems
KeiserSozeyFr said:
Did you activate auto-play on Poweramp app or on CarService ?
Click to expand...
Click to collapse
It's disabled on both, so not sure what is causing it to start.
Syphe said:
It's disabled on both, so not sure what is causing it to start.
Click to expand...
Click to collapse
Maybe Startup Builder App ?
Cheers, turned it off there, now it doesn't auto start, so time to figure out how to get it auto playing *only* when it is in focus
Hello,
does vocal commands for phone call/music playback work?
Thanks
Fabien
fabien_m2002 said:
Hello,
does vocal commands for phone call/music playback work?
Thanks
Fabien
Click to expand...
Click to collapse
Vocal commands will work only for call, using "Ok Google" feature
EDIT - i just read the post for your new release and it looks like you are addressing everything here.
i have a newer model deck i just got, it has a different letter combo than the ones on the wiki and is made by eonon. Same quad core cpu as the others and your program worked with some fumbling with the settings: with the default ones the buttons did very odd things, i had to turn off some options and got them working!
A few things i meant to ask about:
1) when i turn off ignition but deck only goes into standby, when it comes out of standby the service is off and i need to re-enable it. I'm planning on doing a tasker profile to fix this, not sure if you were aware of this or if anyone else has this bug.
2) If you have a phone connected the buttons will still control spotify in my case, but it will start making my phone stream as well through the bt app, so they are both playing music and being controlled at the same time, a fix for that is i disabled media playback on my phone. Pretty sure a proper one requires a modified bt app since its clearly poorly written if it cant detect something else is playing music.
3) The service loads last on boot, which is normal since its not registered as a system service But it kinda sucks and it would be great if it could be made to load as system and have priority. I havent played around with android code in a while, i remember there was a way to do this, wondering if you know how? When i did it i wrote my service in C in NDK and I had it registered to start on boot, i remember you can add it to a file, i have not touched the SDK much so not sure how that works out, but it should be similar.
Otherwise great job! Thanks for creating this.
I have small problem with CarService.
When i turn Phone Status OFF, after next boot it's ON again.
How can i permanently disable Phone Status? I need only SWC/Music
You need to turn it off in the subsection for Phone Status settings, not just the top level menu. This caught me out too

[XPM] XposedMTC - multipe mods for MTCB-Headunits

Discontinued
Due to a lack of free time and newer hardware (MTCD), I am no longer supporting this module. The code is freely available on my github.
XposedMTC -- mods for Huifei/RM/KLD/GS/JY headunits
Right now, the mod consists of the following features:
Change preferred music app from MTCMusic to something else
Change preferred video app from MTCMovie to something else
Ability to override the default mode switch behavior to include only the sources you want (in addition to Music)
Overridden mode switching can add your selected Nav app (in Settings->Gps) to the rotation
Ability to apply Loudness on boot (newer system images persist this setting)
Time-based dimmer and adjustable brightness level when time is outside dimming period
Ability to automatically set dimming start and end times based on current date, timezone, and GPS location (no data connection required)
Ability to learn your radio presets and re-apply them if/when the presets get lost (usually on hard-reset)
3 replacement launchers for user-selected Music, Videos, and Radio apps for non-SWC vehicles
Preference to allow all BT OBD adapters to pair with headunit
Intents to start and stop the XMTC service
Preference to override the stock volume OSD and place volume level in the statusbar
Launcher to manually start the reverse camera view (BackView) -- disabled for now
Screen Filter integration for ultimate dimming control
Changelog
v1.0 - Initial release
v1.0.1 - Added Playerpro control intents -- forgot to change startService to sendBroadcast for Playerpro -- redownload this if you previously downloaded it
v1.2 - Added dimmer control, debug preference
v1.2.1 - Fixed switchpreference controls that were disabling themselves
v1.2.5 - Added replacement launchers for Music, Video, and Radio for non-SWC users
v1.3.0 - Rolled all beta and experimental changes into a stable build
v1.4.2 - Fixed BT OBD override (tested on latest Malaysk rom with a generic BT ELM327 v1.5 adapter with name CBT.)
Things for the future
Hard button remapping -- mtc-keys works for this
Add user-selected app to the mode switch rotation (e.g. Torque)
Fix system crash when Line-In (AUX) source is added to modeswitch rotation
Figure out a way to turn off the backlight completely, and allow it to be mapped to a button press/long press -- Screen Filter integration allows for complete backlight adjustment
Add preference to enable full backlight brightness when BackView is foreground
Add preference to enable dimmer control via headlight switch/illumination wire
Translations
If anyone would like to submit a translation in their native language (or one other than US English), please visit this link and contribute. Thanks!
Completed translations (thanks!)
Hungarian - @peti007
This module requires that you first install the Xposed Framework and enable the app_process.
Added the module to the Xposed Repo for easy updating from the headunit.
Don't know if this is the right place for this, but I've searched around and can't find an answer.
Am having a problem setting default Music app, i've changed it to poweramp, and it works great, however have noticed that when I start the radio app, then switch to poweramp, the radio app doesn't stop. Is there anything else I have to setup to get the radio app to mute when changing a music app?
Syphe said:
Am having a problem setting default Music app, i've changed it to poweramp, and it works great, however have noticed that when I start the radio app, then switch to poweramp, the radio app doesn't stop. Is there anything else I have to setup to get the radio app to mute when changing a music app?
Click to expand...
Click to collapse
How are you switching between PA and Radio? Mode button or launcher icon?
If you're not using a mode button on steering wheel controls, then you have to use the included launchers called MyMusic, and MyRadio in order to properly switch audio sources.
My unit has hardware buttons which launch the sources, so I use those, I did notice launching MyMusic did mute the radio (think it launched MTCMusic), but the "Media" button on the unit just launched poweramp (after changing default app in xposedmtc) and left the radio going.
Syphe said:
My unit has hardware buttons which launch the sources, so I use those, I did notice launching MyMusic did mute the radio (think it launched MTCMusic), but the "Media" button on the unit just launched poweramp (after changing default app in xposedmtc) and left the radio going.
Click to expand...
Click to collapse
Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.
agentdr8 said:
Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.
Click to expand...
Click to collapse
cheers, I'll give that a try next time I get in the car
Syphe said:
cheers, I'll give that a try next time I get in the car
Click to expand...
Click to collapse
I believe the proper mtc-keys.ini syntax would look something like:
activity_##=com.dr8.xposedmtc/.activities.Music
activity_##=com.dr8.xposedmtc/.activities.Radio
Where ## is the keycode of that particular button.
agentdr8 said:
Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.
Click to expand...
Click to collapse
Syphe said:
cheers, I'll give that a try next time I get in the car
Click to expand...
Click to collapse
Hi,
I have been having similar issue with my Pumpkin head unit which also has hard buttons. I'm running XposedMTC and mtc-keys modules and I'd already used mtc-keys to map my "MEDIA" hard button to music app directly as XposedMTC on its own didn't do it for my chosen music app. When I switch from music app (Mixzing) to Radio the music app is still playing.
I hadn't spotted the "MyMusic" and "MyRadio" activities in the app drawer screen before (only had the unit just over a week) but even using these these instead of the hard buttons the music app still plays over the radio and vice versa (i.e one doesn't stop the other). Shame as when I found your posts above I thought these activities would be the solution to my issue and I could just remap hardware buttons to these with mtc-keys. :crying:
WestlakeSt said:
When I switch from music app (Mixzing) to Radio the music app is still playing.
Click to expand...
Click to collapse
Originally the only supported media player in XMTC was Poweramp, but I've since added PlayerPro, and few others that utilize generic Android intents for control. It's possible Mixzing doesn't listen for these intents, and specific support would need to be added.
agentdr8 said:
Originally the only supported media player in XMTC was Poweramp, but I've since added PlayerPro, and few others that utilize generic Android intents for control. It's possible Mixzing doesn't listen for these intents, and specific support would need to be added.
Click to expand...
Click to collapse
Hi agentdr8,
Thanks for the information. I will try Poweramp and PlayerPro as Mixzing is just one of a few alternative apps I'm trying out so not committed to keeping it at this stage. If Poweramp or Player Pro work well for a car head unit in terms of user interface and hardware abilities (i.e. hard buttons working as I want) then I will purchase one or the other.
Will get the trials for each app and give them a try tomorrow.
Kind regards,
Steve
agentdr8 said:
I believe the proper mtc-keys.ini syntax would look something like:
activity_##=com.dr8.xposedmtc/.activities.Music
activity_##=com.dr8.xposedmtc/.activities.Radio
Where ## is the keycode of that particular button.
Click to expand...
Click to collapse
Hi agentdr8,
I have now tried Poweramp and PlayerPro and both will switch the radio off if I use the MyMusic/MyRadio icons. So I tried using the above syntax in the mtc-keys.ini for the appropriate key codes but this doesn't appear to work. I amended them on the off chance that it may have needed to be "MyMusic" and "MyRadio" at the end of each line (as that is what the icons are called in the app drawer part) but either way nothing is triggered on pushing the buttons.
WestlakeSt said:
Hi agentdr8,
I have now tried Poweramp and PlayerPro and both will switch the radio off if I use the MyMusic/MyRadio icons. So I tried using the above syntax in the mtc-keys.ini for the appropriate key codes but this doesn't appear to work. I amended them on the off chance that it may have needed to be "MyMusic" and "MyRadio" at the end of each line (as that is what the icons are called in the app drawer part) but either way nothing is triggered on pushing the buttons.
Click to expand...
Click to collapse
Hmm. I may have to export those activities in the manifest, based on what I read on the mtc-keys info.
EDIT: Since I have an intent filter on those activities, they should be exported by default. The mtc-keys syntax might need tweaking. Try activity_##=com.dr8.xposedmtc.activities/Radio
@agentdr8, can you please add a dark theme to this app? I mean, black background and white text?
It kills my eyes every time I open it...
Cheers!
robertut said:
@agentdr8, can you please add a dark theme to this app? I mean, black background and white text?
It kills my eyes every time I open it...
Click to expand...
Click to collapse
I'll add it to my list for the next release.
Many thanks in advance.
WestlakeSt said:
Hi agentdr8,
I have now tried Poweramp and PlayerPro and both will switch the radio off if I use the MyMusic/MyRadio icons. So I tried using the above syntax in the mtc-keys.ini for the appropriate key codes but this doesn't appear to work. I amended them on the off chance that it may have needed to be "MyMusic" and "MyRadio" at the end of each line (as that is what the icons are called in the app drawer part) but either way nothing is triggered on pushing the buttons.
Click to expand...
Click to collapse
I'm getting the same thing. When I change mtc-keys, my home screen just receives a home key press (I think).
If I change activity to app and set a package name, it loads the app, so just an issue with activity_xx not resolving.
agentdr8 said:
Hmm. I may have to export those activities in the manifest, based on what I read on the mtc-keys info.
EDIT: Since I have an intent filter on those activities, they should be exported by default. The mtc-keys syntax might need tweaking. Try activity_##=com.dr8.xposedmtc.activities/Radio
Click to expand...
Click to collapse
Syphe said:
I'm getting the same thing. When I change mtc-keys, my home screen just receives a home key press (I think).
If I change activity to app and set a package name, it loads the app, so just an issue with activity_xx not resolving.
Click to expand...
Click to collapse
Hi again,
Just to update. I am still not having much luck with getting the hardware keys to work. I have tried the following combinations in the mtc-keys.ini file (only one pair at a time) and rebooted the unit each time
43 is my "MEDIA" button and 42 is my "BAND" button which I would like to map to Poweramp and Radio respectively.
activity_43=com.dr8.xposedmtc/.activities.Music
activity_42=com.dr8.xposedmtc/.activities.Radio
activity_43=com.dr8.xposedmtc/.activities.MyMusic
activity_42=com.dr8.xposedmtc/.activities.MyRadio
activity_43=com.dr8.xposedmtc.activities/Music
activity_42=com.dr8.xposedmtc.activities/Radio
activity_43=com.dr8.xposedmtc.activities/MyMusic
activity_42=com.dr8.xposedmtc.activities/MyRadio
activity_43=com.dr8.xposedmtc.activities/.Music
activity_42=com.dr8.xposedmtc.activities/.Radio
activity_43=com.dr8.xposedmtc.activities/.MyMusic
activity_42=com.dr8.xposedmtc.activities/.MyRadio
NB: I tried "MyMusic" and "MyRadio" since that is the name of the icon if you go to the apps drawer.
With some of the above, pushing the hardware button would take me back to the home screen, but wouldnt stop anything playing or launch anything else. To be clear, if I'd launched Poweramp with the MyMusic activity in the app drawer and then pushed the BAND hardware button, the unit would return to the home screen, but poweramp would still be playing and the radio would not launch.
Other combinations would do nothing at all.
Are there any other possible combinations I could try i.e. dots and slashes being in different places?
Just for information to anyone who is going to try and suggest help I know next to nothing about android programming or how apps work behind the scenes so please feel free to be very patronizing in how to possibly get this working in the mtc-keys ini file. :fingers-crossed:
WestlakeSt said:
Are there any other possible combinations I could try i.e. dots and slashes being in different places?
Just for information to anyone who is going to try and suggest help I know next to nothing about android programming or how apps work behind the scenes so please feel free to be very patronizing in how to possibly get this working in the mtc-keys ini file. :fingers-crossed:
Click to expand...
Click to collapse
I'll take a look at mtc-keys and figure out what the proper syntax is. It definitely wouldn't be the My* names, as those are just the labels for the launcher icons. The activity classes are named Music and Radio.
WestlakeSt said:
Hi again,
Just to update. I am still not having much luck with getting the hardware keys to work. I have tried the following combinations in the mtc-keys.ini file (only one pair at a time) and rebooted the unit each time
43 is my "MEDIA" button and 42 is my "BAND" button which I would like to map to Poweramp and Radio respectively.
activity_43=com.dr8.xposedmtc/.activities.Music
activity_42=com.dr8.xposedmtc/.activities.Radio
activity_43=com.dr8.xposedmtc/.activities.MyMusic
activity_42=com.dr8.xposedmtc/.activities.MyRadio
activity_43=com.dr8.xposedmtc.activities/Music
activity_42=com.dr8.xposedmtc.activities/Radio
activity_43=com.dr8.xposedmtc.activities/MyMusic
activity_42=com.dr8.xposedmtc.activities/MyRadio
activity_43=com.dr8.xposedmtc.activities/.Music
activity_42=com.dr8.xposedmtc.activities/.Radio
activity_43=com.dr8.xposedmtc.activities/.MyMusic
activity_42=com.dr8.xposedmtc.activities/.MyRadio
NB: I tried "MyMusic" and "MyRadio" since that is the name of the icon if you go to the apps drawer.
With some of the above, pushing the hardware button would take me back to the home screen, but wouldnt stop anything playing or launch anything else. To be clear, if I'd launched Poweramp with the MyMusic activity in the app drawer and then pushed the BAND hardware button, the unit would return to the home screen, but poweramp would still be playing and the radio would not launch.
Other combinations would do nothing at all.
Are there any other possible combinations I could try i.e. dots and slashes being in different places?
Just for information to anyone who is going to try and suggest help I know next to nothing about android programming or how apps work behind the scenes so please feel free to be very patronizing in how to possibly get this working in the mtc-keys ini file. :fingers-crossed:
Click to expand...
Click to collapse
You can try writing app_43=package name instead of activity_43=activity. You can find the package name of the application using an app from play store, search for package name viewer.
p_mike83 said:
You can try writing app_43=package name instead of activity_43=activity. You can find the package name of the application using an app from play store, search for package name viewer.
Click to expand...
Click to collapse
For most packages, that's fine, as there's only a single activity within it. But with XMTC, the default activity is the preferences, and then there's the 3 My* activities.

Categories

Resources