[Release][PX3|PX5] MtcdTools-Control music players, customize buttons, voice control

Search This thread

f1x

Senior Member
Jul 27, 2016
308
253
Warsaw
tell me what to write in intent

Actually, it is not the matter of an intent. YouTube has two modes of playback. First one, let's say "free mode" when you are playing a single video, and second one when you are playing a playlist. In case of playlist you are able to use next/prev/toggle play.
 
Last edited:

aarick

Senior Member
Feb 18, 2010
460
68
Any reason why this won't work on the new PX5 units? is it cause of Marshmallow?
I can't seems to detect any button pressed.
 

gotes

Member
May 20, 2005
6
0
Exeter
Hi. Is it possible to map to KEYCODE_VOLUME_UP and KEYCODE_VOLUME_DOWN? I only have media control keys (play, pause, stop, next etc) available in the list of key codes in MtcdTools. Also there is no setting to configure the volume up/down control in the system settings.
 

ccaparli

Senior Member
Aug 23, 2008
419
44
Ankara, Turkey
Read all the pages but cant find an answer to my question.

poweramp has folder up or down option when bluetooth or cable remote next/prev button pushed twice or triple. I lowered the key press time and delay in mtcdtools but cant make this function work. Any suggestions?
 
Mar 19, 2017
20
2
Any reason why this won't work on the new PX5 units? is it cause of Marshmallow?
I can't seems to detect any button pressed.

Also hoping this can eventually get answered (or fixed) in regards to PX5 units.

My HotAudio HU comes with a SWC app installed and it also can't detect any button presses. Imagine the two are related. Not sure why they shipped it with that app or if it only works on certain cars/models.
 

SlugBoy7691

Member
Mar 23, 2013
25
0
is there any way to get an app to start on the devices 'quick start up' when the car hasnt been turned off for long enough so the android boot up screen shows and it just continues from where you were
 

makes2068

Senior Member
Jun 16, 2010
1,047
104
Hambrücken
Want to do ...

Erisin 3015 head unit. Right upper scroll wheel can skip track with original player.
Like this using with poweramp.

Or is this only for steering weheel buttons?

Not knowing how to handle the MTCD tool-programm.

Please help me ;)

My thoughts:

Create a key with "Forward" and "Rewind"
Create a binding? with the wheel?
How to connect this to poweramp?
 
Last edited:

timurlan75

New member
Apr 5, 2017
1
0
Hello! Help configure"Mode Key". As in the settings "Mtc-manager Xposed"

# List of switched applications, package names must be listed
[Apps]
# Native radio
Com.microntek.radio
# PowerAmp
Com.maxmpz.audioplayer
# Native music
# Com.microntek.music
# Nativer video
Com.microntek.media

# Closing of the regular application Radio
[Com.microntek.radio:stop]
# Name of the intent
Intent = com.microntek.bootcheck
# Parameter name
Extra = class
# Parameter value
Value = mode

# Closing the regular Video application
[Com.microntek.media:stop]
# Name of the intent
Intent = com.microntek.bootcheck
# Parameter name
Extra = class
# Parameter value
Value = mode

# Closing the regular application Music
[Com.microntek.music: stop]
# Name of the intent
Intent = com.microntek.bootcheck
# Parameter name
Extra = class
# Parameter value
Value = mode

# Playback in PowerAmp
[Com.maxmpz.audioplayer: start]
# Service name
Service = com.maxmpz.audioplayer.player.PlayerService
# Name of the intent
Intent = com.maxmpz.audioplayer.API_COMMAND
# Action: startService
Send = service
# Parameter name
Extra = cmd
# Parameter type
Extra_type = int
# Parameter value
Value = 3

# Turning off the play in PowerAmp
[Com.maxmpz.audioplayer: stop]
# Service name
Service = com.maxmpz.audioplayer.player.PlayerService
# Name of the intent
Intent = com.maxmpz.audioplayer.API_COMMAND
#startService action
Send = service
# Parameter name
Extra = cmd
# Parameter type
Extra_type = int
# Parameter value
Value = 2
 

feddmi

Member
Oct 27, 2011
12
0
Desnogorsk
Tell me how to register in the program of double the value of the Extras

Intent action: com.maxmpz.audioplayer.API_COMMAND
Intent package: com.maxmpz.audioplayer
Class name: com.maxmpz.audioplayer.player.PlayerService
Intent extras: {"cmd": 20}
Intent extras: {"pos": 15}
Data: {file:///storage/emulated/0/Music/Patti Smith/02_Horses/01_Gloria.mp3}
 
Last edited:

f1x

Senior Member
Jul 27, 2016
308
253
Warsaw
Tell me how to register in the program of double the value of the Extras

Intent action: com.maxmpz.audioplayer.API_COMMAND
Intent package: com.maxmpz.audioplayer
Class name: com.maxmpz.audioplayer.player.PlayerService
Intent extras: {"cmd": 20}
Intent extras: {"pos": 15}
Data: {file:///storage/emulated/0/Music/Patti Smith/02_Horses/01_Gloria.mp3}

If you have more than one extra then you should separate them by a comma, accordingly to your data it will be:

Intent extras: {"cmd":20, "pos":15}
 
Last edited:

Oblivious_89

New member
Apr 7, 2017
2
0
hi to all, for first i want to thank you all for all the info i've got from this forum.

i have buyed a ERISIN erisin es3063c for my mercedes w209, and i have some issues about using steering wheel.
when i use steering wheel button work great with default radio app, but with any media player (including default media player) works only vol + or vol -
anyway in "steering wheel control study" doesn't appear any button for setting up
using this app can i fix these kind of trouble? if it's good, someone can explain me how to using this app.

sorry guys but i'm very noob, and so sorry for my bad english!

hope someone can help me :rolleyes:
 

Floston

Senior Member
Apr 9, 2017
124
35
Hello
Can the program solve the problem with the Powermamp (v2.0.10-build-588): after returning from sleep mode, HU does not want to continue playing the track in PowerAmp?
p.s. MTCD MX 2.40_1
 

Floston

Senior Member
Apr 9, 2017
124
35
After installing version 1.6 - in any application menu pops up an error.
MCU MX 2.40, android 6.0.1
 
Last edited:

vttland

Member
Apr 19, 2017
7
1
hi to all, for first i want to thank you all for all the info i've got from this forum.

i have buyed a ERISIN erisin es3063c for my mercedes w209, and i have some issues about using steering wheel.
when i use steering wheel button work great with default radio app, but with any media player (including default media player) works only vol + or vol -
anyway in "steering wheel control study" doesn't appear any button for setting up
using this app can i fix these kind of trouble? if it's good, someone can explain me how to using this app.

sorry guys but i'm very noob, and so sorry for my bad english!

hope someone can help me :rolleyes:


Hello
Have you resolve your problemes ?
I have same issue.
 

hans.vinkers

Senior Member
Feb 6, 2016
336
38
Rijssen
Hi,
Because you are anyway busy with doing those functions to get them works..

I have an idea, can you make the following works:

Most cars have an steering wheel Mode or Input button.. right? so you can from radio to dvd to music to navigate changing the input through this sw Mode button.. right?
My idea is this; can you upgrade the Mode / Input button? so that the following can also be chosen from it;
jetAudio Plus, power amp, Spotify, etc .. etc.
And the up & Dn button also works with or for the same input!!, with other words, if i'm listening to a radio i can change the radio station from 940 to 1050 (as example) and if i'm using jetAudio Plus i can change from this to that song.. did you follow me or understand me mate?

Example:
You make an apk 1 for only one function: All the hu input + jetAudio Plus.
apk 2 all + spotify.
apk 3 all + google map.
etc. etc.

apk 10 all of all in one apk!!

so is it very easy to use and also you let the guys choesen which apk one they like to use with them hu too.. right?.

Summary:
The original img file for operating / selecting the progs from the sw Mode button is 4 or 5 as far as I knew, can you edit it and make it work for the rest of the most used programs likes: jetAudio Plus/spotify/G-map/obd/poweramp.. so the most used progs.. etc?

:fingers-crossed:

BrGd
Madyen

I see in your picture that you have an arrow in the car display ?? is that from the android headunit ?? i had this with my RNS510 on the maxidot mfd on my seat leon 1p 2008. Now with the android headunit the maxidot mfd is not really a useful extra anymore.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 36
    Hello,
    Today is time to release second application with more powerful features on-board. I would like to introduce MtcdTools.

    MtcdTools

    https://forum.xda-developers.com/an...ent/howto-beginners-guide-to-setting-t3595793

    21.06.2017: Version 1.9 has been released
    19.06.2017: Version 1.8 has been released
    10.05.2017: Version 1.7 has been released
    09.05.2017: Version 1.6.1 has been released
    02.03.2017: Version 1.6 has been released
    27.02.2017: Version 1.5 has been released
    23.02.2017: Version 1.4 has been released
    14.02.2017: Version 1.3.3 has been released
    13.02.2017: Version 1.3.2 has been released
    10.02.2017: Version 1.3.1 has been released
    07.02.2017: Version 1.3 has been released
    19.08.2016: Version 1.2 has been released
    14.08.2016: Version 1.1 has been released
    10.08.2016: Version 1.0 has been released

    If you enjoyed using of the application, you can support my work and Donate to me :eek:.

    Best regards,
    f1x
    9
    I rebuild the App with some changes, because the v1.9 is almost outdated. :)

    Changes:
    -Update Gradle to latest
    -Update dependencies to latest
    -Migrate Android library to latest AndroidX
    -Android 10 Support (API 29)
    -Add Day/Night support
    -Add german language
    -Add navigationbar color
    -Add one more permission
    -Fix some outdated stuff
    -Reworked Mainscreen
    -Changed statusbar + accent color
    -Reduce 50% of app size (884kb only)
    -Remove Notifications
    -Remove unneeded dependencies
    -New Launcher Icon
    -Renamed the App to MTCE Tools
    -Changed Min API from 19 to 21
    -Fixed typos
    -Removed unneeded beep sound.
    -Removed notification icons

    Screenshot + Download are Attached :)
    6
    Okay guys, we collected money needed for the PX5 board :). I ordered the board from Bob last week just to not waste the time for the shipping. According to the tracking info, the parcel is in the way to Poland :). I will start the R&D as soon as board arrives.

    The hall of fame:
    @Nomader0
    @zapedge
    @Migz93
    @bm282
    @almera020
    @SomebodySysop
    @apollo1976
    @Kalti94
    @stinger4321

    Many thanks from me and from our community, guys :). Stay tuned.
    5
    I rebuild the App with some changes, because the v1.9 is almost outdated. :)

    Changes:
    -Update Gradle to latest
    -Update dependencies to latest
    -Migrate Android library to latest AndroidX
    -Android 10 Support (API 29)
    -Add Day/Night support
    -Add german language
    -Add navigationbar color
    -Add one more permission
    -Fix some outdated stuff
    -Reworked Mainscreen
    -Changed statusbar + accent color
    -Reduce 50% of app size (884kb only)
    -Remove Notifications
    -Remove unneeded dependencies
    -New Launcher Icon
    -Renamed the App to MTCE Tools
    -Changed Min API from 19 to 21
    -Fixed typos
    -Removed unneeded beep sound.
    -Removed notification icons

    Screenshot + Download are Attached :)

    Could you please create a pull request to the original github repository?
    3
    MtcdTools 1.3 RC1

    Hello. After over one month of intensive development, it is time to release new version of MtcdTools. Version is a Release Candidate, so still few bugs or improvements are possible to find. Report them in this topic or on the GitHub page of the project. If you enjoyed - you can donate to me :).

    It is recommended to uninstall old version before installing a new one.

    Download link: https://github.com/f1xpl/MtcdTools/releases

    Below you can find a description of new features.

    Actions oriented model
    Any object which you define must have a unique name. It is used as an identifier, e.g. in voice control or action lists.​

    Actions
    Key action
    Use this action to simulate a press of android media key (e.g. play, next, pause). As of version 1.3 new media keys like REWIND and FORWARD were added. Unfortunately, most of music players do not support them, but maybe your favorite player will be able to handle it - just check.

    Supported media key events:
    KEYCODE_MEDIA_FAST_FORWARD
    KEYCODE_MEDIA_NEXT
    KEYCODE_MEDIA_PAUSE
    KEYCODE_MEDIA_PLAY
    KEYCODE_MEDIA_PLAY_PAUSE
    KEYCODE_MEDIA_PREVIOUS
    KEYCODE_MEDIA_REWIND
    KEYCODE_MEDIA_STOP​


    Launch action
    Use this action to launch an application installed on the system.​


    Start activity action
    Feature added in version 1.3. Similar feature is available in Tasker. It is useful to launch an application in a non standard way, e.g. displays specific activity accordingly to provided data URI. More information how to deal with intent are available on Android Developer site https://developer.android.com/reference/android/content/Intent.html.

    Useful intents that I discovered:

    Display your Spotify's "starred" songs:
    Intent action: android.intent.action.VIEW
    Intent Data: spotify:collection:tracks
    Intent Flags: 268435456​

    Launch Google Maps in "driving mode":
    Intent action: android.intent.action.VIEW
    Intent Data: google.navigation:/?free=1&mode=d&entry=fnls
    Intent Flags: 268435456​



    Broadcast intent action
    Feature added in version 1.3. Similar feature is available in Tasker. Use this action to broadcast an intent through the system. Some applications are using this mechanism to communicate with other apps. E.g. MTC devices are using this mechanism to notify about key press. More information how to deal with broadcast are available on Android Developer site https://developer.android.com/guide/components/broadcasts.html.​


    Actions sequences
    Feature added in version 1.3. Use it to group defined actions in sequences. Actions are stored and executed in order of addition. Useful to simulate "mode" functionality and automate playback.

    Example:
    Let's assume you defined actions "stop", "play", "my music player" and "my podcast player". Now you want to switch between your players and start playback automatically. Just declare two sequences with actions in a specific order:

    [Sequence 1]
    Stop // it should stop any active playback
    My music player // it will launch your music player
    Play // it will trigger playback of you music player launched in previous step.​

    [Sequence 2]
    Stop // it should stop any active playback
    My podcast player // it will launch your podcast player
    Play // it will trigger playback of you podcast player launched in previous step.​

    Then you can bind your action sequences with key sequence or add it to actions list and automate playback of your music players.​


    Actions list
    Feature added in version 1.3, replaces "Mode" functionality from version 1.2. Use this feature to group your actions and action sequences. You can define key sequence (I prefer to use knob) to scroll the list up and down. In settings you can set time after which highlighted item is executed. This feature is more powerful than regular "mode" because you can fully control what will be launched. You do not need to stick to the defined "mode" order and harm your devices by launching of unnecessary applications.​


    Keys sequences
    As of version 1.3 you are able to bind your defined objects (actions, action sequences, action lists) not only to single key but also to keys sequence. It means you can press any variation of hard keys (device keys and steering wheel keys) to execute your defined action.​


    Voice control
    MtcdTools 1.3 brings possibility to control your device using voice. You can say your defined actions or action sequences names and MtcdTools will execute it for you with provided order. It is possible to execute a single action or action sequence or mix them together using "concatenation word" that you can define in Settings. Concatenation is actually unlimited. You can mix actions with actions sequences and execute as many you want. Voice control is localized. Input language corresponds to the language which is set on your device. If "Google Now" supports you language, then MtcdTools will support it as well.

    To use Voice control you have to define "start activity" action with below parameters and bind it with any keys sequence:
    Class name: com.f1x.mtcdtools.activities.VoiceDispatchActivity
    Intent package: com.f1x.mtcdtools
    Flags: 813760516​

    Example:
    Let's assume you defined 2 actions called "My Music Player" and "Play". Also, you set your "concatenation word" to "then". You can say to device "My music player then play". It will trigger execution of "My music player" and "play" actions one by one.​


    Settings
    Delay of execution action from the list - define time after which highlighted item from actions list is executed.

    Voice command execution delay - define time after which MtcdTools will start processing of the provided input (actions names, etc.). A parameter has been introduced due to poor performance of our devices. It is helpful when you want to execute an playback control action ("play", "pause", etc.). "Google Now" activity will interrupt playback during speech recognition and needs some time to resume it. Sometimes it can interfere with playback control actions.

    Key press speed - define how long MtcdTools will wait to collect next key press to sequence.

    Delay of execution action from sequence - Parameter has been introduced due to poor performance of our devices. Use it to adjust time slot between the execution of actions in actions sequences or items concatenated in voice command. If you want to execute actions dependent on each other, e.g. launching of an music player and starting of a playback, you have to give some additional time to music player to be fully launched.

    Actions voice delimiter (e.g. X then Y) - Word used by MtcdTools to extract items names from provided voice input. (e.g. "my music player" <DEFINED WORD> "play").​

    Lollipop limitations
    Due to Lollipop limitations, it is possible that triggering of voice dispatch activity will bring MtcdTools application to front. To avoid this behavior, close MtcdTools using "recent" menu.​