yashsingh1/xdaforums huggingface dataset:
[MTCB Software Development] azuman:
Wow, just downloaded this app so i could use my unit as a real handsfree calling system, and now works like a charm! Set up google app to always listen to "ok google" so i can place a call without going into the app. The only problem is that the unit has to be connected to the internet, even with the downloaded languages. Is there any way to fix that? Not much of a problem as i have set up a profile on my phone so whenever it connects to the unit through bluetooth it starts the wifi hotspot, so the unit will connect and everything fine, but if offline was possible, less data the unit would use through the phone, as well as less battery the phone would use too. Thanks [MENTION=788305]p_mike83[/MENTION] for your work!!

---------- Post added at 12:30 AM ---------- Previous post was at 12:29 AM ----------

Also, i forgot to add, whenever a call is placed still the message "no data connection" or smth like that appears, even though u can see the call on the background. A bit annoying as u have to press "ok" for the message to close. Cheers!

---------- Post added at 12:32 AM ---------- Previous post was at 12:30 AM ----------

Sorry. Just realized u said that would happen at the end of your post. Would it be any way to remove such message? Or to make it disappear after like 1 sec or so? Thanks again and sorry for the quick replies![emoji14]
[MTCB Software Development] p_mike83:
Last night I also tried offline recognition but failed on my unit. I have some ideas to try , maybe I find a workaround.

As of the nag, i will try to remove it in future versions, since it doesn't affect the functionality of the app.
[MTCB Software Development] Majari:
OK I got it working too!

It was indeed the FUSE version that kept mtc-keys from working.

Placing the folder to your external SD AND deleting the one on internal SD did the trick.

Issues I can come up with:

- since my head unit has 2 mute buttons I figured I'd use one - the right tuning knob on push - to mode switch. But sometimes the unit still mutes. Can't yet tell when, sometimes it picks up the mute and unmutes it it seems.

- spotify does not auto play. Is there maybe a way you need to setup spotify? Perhaps we can tweak it to play a certain playlist as well ie.: Data&colon; spotify:user:<USER ID>:playlist:<PLAYLIST ID>:play (some tasker input details, perhaps they help or inpire you)

- lastly, is there a way to exclude music from the mode cycle? Since I use spotify as my main music source there's no need for the unit to cycle radio - music - spotify - radio etc.?

Tnx again! Love tweaking this sort of thing till we get it perfect!
[MTCB Software Development] p_mike83:
do those mute buttons share the same button code? check that you entered the correct code in the app settings

spotify should autoplay if you open it with modeswitch, without needing you to setup anything. it continues to play the last played album/playlist. Maybe your unit needs a little more time opening spotify, so that the play command does not work. Do you have a RK3066 device maybe?

i will think about an option to play a certain playlist, but for now there are other more important things to do. Anyway you can search an artist/song etc with google now as well.

As for the option to disable music, i had it implemented in an earlier version of my app but removed it, cause i thought that it will not be necessary. i can add a switch for that as well, or maybe to choose from a butch of music apps (eg jetaudio)

what do you all think?

Do you have any other suggestions?
[MTCB Software Development] Tumke32:
Youre download is not working
[MTCB Software Development] p_mike83:
i just checked the link and it works
[MTCB Software Development] p_mike83:
new version updated, with increased waiting time to auto start playing spotify.

Maybe you have to clean app data and set the settings again to take effect.

Please comment if it worked for you.
[MTCB Software Development] Majari:
Will check the update tomorrow!

Btw I have a RK3188 so I dont think speed is the issue.

Also the mute buttons both have a different keys, still haven't figured out how they work exactly.

I'm thinking spotify start may also have to do with spotify not beeing in offline modus. Changed it, again will report manana.
[MTCB Software Development] p_mike83:
yes i saw later that you mention you have a 3188 JY unit. i am also using spotify online, and it used to auto play. anyway i have set the waiting time to ca 5 seconds, i think is enough for spotify to open. but remember, a playlist/album on spotify should have beeing played before (anytime), otherwise spotify doesnt know what to play !
[MTCB Software Development] Tumke32:
yep download works now. installed it and the calling function works
[MTCB Software Development] Majari:
Hey Mike, I'm not sure what the intended behouviour is. When playing a playlist in shuffle play on spotify, then switching to radio and some time later back again, does not resume playback of spotify. I guess thats not working for anyone or is it? It's not a huge problem for me, love the mode switching button anyway :) Pressing shuffle play is no big deal.

However I suspect some other app interfering with spotify too. Since it comes up as standard player and pops up sometime as well. I'll try to sort this out first before testing further.

Btw I had a very busy weekend so no time to check the update yet. :)
[MTCB Software Development] p_mike83:
i tested also a playlist, and its start playing automatically after switching to spotify. i am not using any other app that can set the default media player (eg xposedmtc).

what do you mean : Since it comes up as standard player and pops up sometime as well. ?
[MTCB Software Development] dc5daft:
Great work p_mike83, voice dialing working perfect now thanks :)

Did you create the app in Tasker? If so, would you mind sharing your Tasker files with me? I have a Tasker project just now that allows me to reply to SMS messages in the headunit but I was interested in seeing how you pull the number for the contact so I could try implementing a way of creating a new message rather than only being able to reply to messages.
[MTCB Software Development] p_mike83:
Yes I created this with tasker. I cannot share all the files, but I would be glad to help you with your project. If you search in the forum you can find the code an other user shared for the voice dial. An other possibility is you use auto contact app.

BTW I prepared a new version which allows adding custom apps in the mode switch. Its almost ready, I have to test it.

I am working also on offline voice recognition with limited success until now
[MTCB Software Development] azuman:
The offline voice recognition would be a great plus! I think is the thing missing here, as if not we need to have the hu connected to the phone's connection. Not that is gonna use much data, but still better without. Hopefully u succeed with this p_mike83! Good luck and keep up the great work!
[MTCB Software Development] Majari:
You inspired me to make the mode switching part in tasker as well. Got it working with spotify auto start and on a playlist and switching between radio and spotify. Works great!

Yet now you announce the custom app which would solve the issue! Still using your call funtion so definitely usable. Would even be better with offline call.

I figured out if you set TTS engine and all google search and key input to standard google and english (US), offline mode works fine. Some said on xda forum ( in the utter app forum) you need google app 4.5 or below, but it's just the settings that do the trick. Unfortunately the mode english US is useless to me since it does not at all recognize any of my contacts in my native language at all.

Keep it up!
[MTCB Software Development] p_mike83:
The new app is almost ready, but unfortunately I cannot test it in the next 2 weeks. If anyone is willing to test it I could release it sooner.

I am aware the offline recognition settings has to be set to U.S so that google now could work offline. but as you said it doesn't recognise the contacts correctly, so now it is not really usable.
[MTCB Software Development] jakejm79:
Can I ask what method in tasker you used to kill the sound in Radio (for example when switching from radio source to spotify). IME if you kill the radio process, the audio will still continue to play.
[MTCB Software Development] p_mike83:
I am using Kill app with root.
[MTCB Software Development] jakejm79:
And that stops the audio stream, I had tried that but it didn't seem to work, the MTCRadio process was ended, but the audio continued to play.

But I will double check.
[MTCB Software Development] Mr Bigglesworth:
No idea why this wouldn't work for me, but after a couple of reboots seems to now do so - so thanks very much for this app.

I would love to see it working with offline voice recognition.
[MTCB Software Development] ahfunaki:
Can you specify exactly what you did to get this to work with the FUSE ROM? What folder did you place onto the SD card? I'd love to get this to work!
[MTCB Software Development] p_mike83:
To use the app as a mode switch and activate the switch by pressing a swc button you have to assign in the file mtc-keys.ini the button to activate the mode switch. This file should be in a folder called mtc-keys and this folder should be placed on the root of the sdcard or ext sdcard ( when using newer ROMs we have to move this folder on the ext sdcard to get it work). So you have to have this line: app_XX = com.myapp.modeswitch

in your mtc-keys.ini file, where xx is the code of the button you want to assign as a mode switch. By default this is code 2, if you don't have a mode switch button on your swc you can assign any other button by using its code. Remember you have to use the same code in the app settings on the first run! Its sounds a bit complicated but it isn't :). Actually this give the option to use any other button as a modeswitch.

The rest functionality e.g voice dialing is not affected from the mtc-keys part.

I hope I helped you!
[MTCB Software Development] ahfunaki:
Ok, I think I get it, haha. I'll mess around with it when I have the chance!

Thank you for the reply!
[MTCB Software Development] Majari:
Sorry I was unable to reply for a while

Mike said it right. Just make sure you place the folder + file in your mnt/ext sd card on your android AND do not keep a copy anywhere else. Should work, and as Mike said, is not that hard and opens a ton op options!

Good luck.
[MTCB Software Development] 2shaelib:
After installing this pressing the mode button crashs my head unit and I have to reset it each time. How can I unlink it from the modeswitch button?
[MTCB Software Development] p_mike83:
Are you sure you followed the instructions correctly? Anyway just remove the line app_XX = com.myapp.modeswitch from your mtc-keys.ini file. After that clear the app data ( android settings, apps, mode switch, clear data)

On the next start of the app you see the settings again, do not enter any button code for the hw modeswitch.

Could you tell me which device you have and what ROM are you on? Do you have any closed modules activated, which interfere with the modeswitch button?
[MTCB Software Development] dj.martzian:
Hello,

Excellent application man!

I fallow your instructions and I managed to successfully set Voice Dialing on my unit.

But, as you said the annoying message "Mobile network not available" is displayed when the call is made. It is a fix for it?

Also, could you upload here the mtc-keys.ini file?

Thank you and keep up the good work!
[MTCB Software Development] p_mike83:
No there is not any fix to that until now, as my time is limited and I am working to add some other functions to the app. But I am aware of the nag screen and I will try to fix it in the feature.

BTW those are the lines of my mtc-keys.ini file:

app_52= com.spotify.music

app_2= com.myapp.modeswitch

As it mentioned before, MTC keys did not work for me when the INI file was on the internal SD card. I had to move the files on the ext SD card.
[MTCB Software Development] dj.martzian:
Thanks mate!

The file "mtc-keys.ini" should be placed in the root of my GPS SD card? Also the permissions are 644?
[MTCB Software Development] p_mike83:
This file should be in a folder called mtc-keys. The folder should be on the root of the ext SD card. I think I am using also the GPS slot. You don't have to change any permissions. Change the lines of the INI file according to your needs.
[MTCB Software Development] Mr Bigglesworth:
Does this app require a minimum version of Google App to work? I tried to uninstall updates on my google app to revert to a more stable version - 3.3.xxx. Whilst much more stable, the voice dialling no longer works?
[MTCB Software Development] p_mike83:
Hello,

I does not require any version of google now, it just interprets the intents sent from the google app. Maybe there is stg changed in the way those intents are send in the last versions, or maybe the command call was not available in early versions of google now. Would you mind sharing the app to try it?

What problems do you have with the current google now app? On my device it is used to crash a lot when radio was playing when I started the voice recognition. If I close the radio before it is useable
[MTCB Software Development] Mr Bigglesworth:
It is the default google app which came on my rom when you go uninstall updates - it says this is version 3.3.12. Not sure how to extract? I tried 5.4.x and 4.9.x and they both worked with dialling (but are less stable and both crash to different degrees) so I guess there was a change in how the intents work.
[MTCB Software Development] Mr Bigglesworth:
So there are some earlier and similar versions at http://www.apkmirror.com/uploads/page/3/?q=google-search.
[MTCB Software Development] driedger:
Dhhhi

. Z

---------- Post added at 10:48 AM ---------- Previous post was at 10:47 AM ----------

Mmxxx
[MTCB Software Development] TT_Vert:
maybe i'm doing something wrong but I have a key set to open this and each time it opens the settings screen . I wasn't sure if I should also put the key in the settings but when I try it still pops up the settings box. This is my mtc-keys.ini line: app_27 = com.myapp.modeswitch. I'm sure I'm missing something obvious here but any help would be appreciated.

Thanks

Dave
[MTCB Software Development] jakejm79:
there shouldn't be spaces around the = sign.

app_27=com.myapp.modeswitch
[MTCB Software Development] TT_Vert:
Right, typo. Running a cat I see it run and I also have it opening modeswitch, it just always goes to the purple text setup screen.

Dave
[MTCB Software Development] p_mike83:
Write the code 27 in the settings, and click save. Then it will not run settings again until you clean app data
[MTCB Software Development] TT_Vert:
Ok oddly the save settings button was not there just the x on last boot. Now I see a save settings button and i'm golden. Is there an ini file somewhere where I can specify the apps to cycle? I want to do away w. spotify. for com.pandora

thanks

Dave
[MTCB Software Development] p_mike83:
May I ask which resolution does your HU have? There is no INI file you could modify. However I have the next version ready, which has the option to add 2 apps to the circle. It has a small bug which I am trying to fix before releasing it. It will not give the option to disable Spotify though.
[MTCB Software Development] TT_Vert:
I'm running a 1024 HU. So I would have to cycle through spotify to get to my second app even if I do not have spotify? If you need me to beta test I certainly can a bit later today.

Dave
[MTCB Software Development] p_mike83:
New version is out. See the first post.

Please post which custom apps you use and if there were any problems (hopefully not!)
[MTCB Software Development] TT_Vert:
Excellent, thanks!! I'll let you know how it goes.
[MTCB Software Development] Mr Bigglesworth:
Hi p _mike83, thanks for the update!

Quick question /request, is it possible to have wider control of the mode switch through your app, e.g disable av in and the other options alongside disabling dvd etc.

Cheers for all the work.
[MTCB Software Development] p_mike83:
When using my app the av in is not included in the rotation cycle. If you see it, it means you didn't setup the mode switch/ MTC keys correctly. When my app is set up correctly, it should take over the mode switch button.

The last version gives more control indeed:

MTC DVD on/ off

MTC music on/off

Spotify on/off

2 custom apps (beta)

Unfortunately I didn't received any feedback from the last version
[MTCB Software Development] Mr Bigglesworth:
Thanks for the reply - I think maybe I didn't understand the modeswitch that you have implemented! I'll try again and let you know.

As for feedback - the call routing seems to be working fine. I did have one strange incident the first time i installed it in that the setting screen would seem to fairly randomly pop up no matter what I was doing, I went back to the old version for a few days whilst I was trying to get something else to work. I moved back to your new version at the weekend and don't seem to have the popping up settings screen any more. I will try the modeswitch again and let you know!
[MTCB Software Development] dj.martzian:
Hi,

The final version is working like a charm on my HU Rk3188 with latest Malaysk ROM.

The correct installation process:

1. clear data/manage space in Settings/Apps,

2. Uninstall the old version,

3. Reboot,

4. Install and configure the last version.

Keep up the good work!

Regards.

:)
[MTCB Software Development] p_mike83:
Thanks for the comment. I have some ideas to improve the app when I have some more time
[MTCB Software Development] Mr Bigglesworth:
Yep, clearing the data is important - I was having issues with opening the app (as it it wouldn't) so I went back and cleared data and all seems fine now.
[MTCB Software Development] Mr Bigglesworth:
Actually, as some further feedback, I don't ever seem to be able to open the app without clearing data for the app first. I have followed the clear data, delete app, reboot, install process.
[MTCB Software Development] p_mike83:
The most of those functions is provided with the device, assuming that you have a canbus or you have correctly connected the wires ( see dokumentation of your device). Do your swc buttons even work?

My app tries to improve your experience with adding some functions. (Please seethe first post).

If your swc buttons are recognised from the head unit, it should be possible to manage what you want, but without the long press action. I am not aware that any app/ module gives this function to our head units until now.

[MENTION=5362468]Mr Bigglesworth[/MENTION]

Could you tell me on which app version you are, and all the options you chose in the settings of Mode switch?
[MTCB Software Development] royalhawk2002:
My SWC (resistive) are working with the embedded functionalities of the HU but I was wondering how to extend those, i.e. Radio frequency search up and down (actually pressing the relevant swc it moves to next/previous stored station), make phone call just pressing a swc, etc.
[MTCB Software Development] Mr Bigglesworth:
Hi - yeah, I was using the latest 1.2 version. I tried it with (1) just voice dialling (the most important bit for me) enabled (2) voice dialling + modeswitch with no custom apps (3) voice dialling + modeswitch with poweramp and MTC Bluetooth - but each time it seems to lock me out of going back into the app to change settings unless I clear data first.

Also the modeswitching function was slower than the default function - is that just down to my dual core processor?

Thanks for taking the time to review.
[MTCB Software Development] p_mike83:
Thanks for the comments,

Until now there is no other way to enter settings, you have to clear data to enter settings.

I have a quad core device, so I cannot tell about a diual core one, but on my device was also a bit slower than the default one. I believe that the previous version it is faster, but it lacks the custom apps.

That been said I may have found a way to speed up things, so I ll try to optimise the app in the near future.

And a spoiler: As for now I am working on voice actions. I started with voice dialing, where I am trying some new ways to place a call, which should work also offline. But the development is slow , due to the real life and because i have to test everything in the car...

When I sort this out I am going to try to add some other voice actions and optimise the app.
[MTCB Software Development] Mr Bigglesworth:
Thanks for looking into this.

The voice activation especially offline sounds interesting. I have a work around using utter! which is pretty useful (I started a Q&A thread) at doing this, so not sure if that gives you any ideas!
[MTCB Software Development] p_mike83:
I used that in the past, but ran into a lot of problems. Maybe its the version I used, or the old ROM I am on. Which version of utter are you using? Did you change the google now app as well for stability? Where do I find your threat?

I discovered yesterday that the offline search doesn't work as expected on the device, although it worked well on my tablet. So have to check everything again.
[MTCB Software Development] Mr Bigglesworth:
Yeah - here is the thread.

I used the latest utter beta, google app v3.16 ( i think - please check my thread), and default US voice and offline pack to get it to work. Offline is still a bit patchy so I'm making quite a few custom commands of things that are easier for the unit to recognise - but I don't know how much the offline suffers as I haven't done a microphone mod or anything like that which might help (as offline utter is much better on my phone that it is on my android head unit).
[MTCB Software Development] Mr Bigglesworth:
Regarding the pop up about no mobile connection when making a call - I was thinking that if you did a tasker context to detect the window and then made tasker input the enter or back button whether that would make it go away. Part of the problem is need to know if this window has a name, i.e. what does %WIN return when that pop up is open.

I'll try to figure a way to do this maybe at the weekend if I have time - but if anyone else can have a think and a try on this, it would be appreciated!
[MTCB Software Development] gb37270:
i installed modeswitch and it work fine.

i make voice calling (with the pop up no mobile connection).

just one thing , I don't know the code for my "mode" button.

how to know the codes of physical buttons?

thanks
[MTCB Software Development] TT_Vert:
I have the issue w/ certain buttons not generating a code. I feel these must be MCU controlled.
[MTCB Software Development] ribtits:
Thanks for this app p_mike83, but I'm having some trouble with it. The app isn't working for me. I currently am running Malaysk's ROM for RK3188 800x480.

I had a question about the install steps:

1) Install and activate MTC-keys ( see its threat for details)

I activated the MTC-keys module through the Xposed Installer in the settings in Malaysk's ROM. Do I just create an empty mtc-keys.ini file and add the line "app_XX = com.myapp.modeswitch" where XX is the button I want for mode switch?

3) Sync or add contacts to the true contacts app

I believe this is the contacts app that comes with Malaysks' ROM. It came synced after I entered my google account.

6) Give Root access to the app when you will ask to

I was never asked to the give the app root access. Should I just go to Root Explorer, find the app under system/apps and change permission to 644?

And what do you mean by monitor navigation?

Any help would be greatly appreciated.

Thanks again for your hard work.