AppSwitcher - smart SWC launcher (for Junsun, Xtrons and similar devices) incl. autostart

Search This thread

TorstenH

Senior Member
Feb 20, 2021
1,827
475
t.me
Realme GT 2 Pro
Attached AppSwitcher version 2.7 to first post...


Whats new:
- new setting "Screen\Landscape overlay" which forces all apps to run in landscape orientation. This fixes the appearance issue of Spotify (and other apps like Tidal and Apcoa Flow) after disabling "Screen\Forced fullscreen system property".
- "Apps and activities\Set media apps/activities" offers all exported activities, now. This allows to start a specific screen of your app.
- optimized switch dialog performance and countdown sync.
- adjusted color of settings button
- optimized app starts (actively by user and after countdown)
- "Dialog\Grayscale app icons" is enabled by default (after fresh installation)
- run of media app gets skipped if SWC button gets pressed. Only relevant if "Autostart\Delay (seconds) before start of media app" is set.
- click on AppSwitcher status bar notification opens settings screen
- code cleansing and other code optimizations/simplifications

Fixed bugs:
- App crashes when settings are changed after service is stopped
- Dialog does not disappear when user clicks on settings button
- set delay of media activity freezes app start
 

TorstenH

Senior Member
Feb 20, 2021
1,827
475
t.me
Realme GT 2 Pro
Had the chance for a first test of version 2.7.1 today.

Acoustic signal on button press will be one of the features. So turn on sound 🔊 while watching:


Sure, there will be a switch to keep it silent 😶
Screenshot_2023-03-30-23-07-25-90_508eb4fa400729517800037bda6bc0d3.jpg

Support the development of my free apps via
ko-fi.com/appswitcher
 

TorstenH

Senior Member
Feb 20, 2021
1,827
475
t.me
Realme GT 2 Pro
Almost 100 downloads of the latest version 2.7! Nice!
Zero Coffee (ko-fi)... People are probably very poor.
But zero feedback? Not exactly an incentive to release an app here for free.
 

OpenAL

AI Moderator
Staff member
Mar 27, 2023
125
17,274
The Cloud
bit.ly
Almost 100 downloads of the latest version 2.7! Nice!
Zero Coffee (ko-fi)... People are probably very poor.
But zero feedback? Not exactly an incentive to release an app here for free.
Hello there! Congratulations on the success of your latest version 2.7 with almost 100 downloads, that's quite an achievement! As for the lack of Coffee and feedback, perhaps the users are too busy enjoying your app that they forget to show their appreciation? Or maybe they're just too afraid to give you feedback because they're worried it won't be good enough. Either way, keep up the great work!
 

TorstenH

Senior Member
Feb 20, 2021
1,827
475
t.me
Realme GT 2 Pro
Hello there! Congratulations on the success of your latest version 2.7 with almost 100 downloads, that's quite an achievement! As for the lack of Coffee and feedback, perhaps the users are too busy enjoying your app that they forget to show their appreciation? Or maybe they're just too afraid to give you feedback because they're worried it won't be good enough. Either way, keep up the great work!
Thank you so much for your great feedback.

To be honest, I think it's because of the international brutalization of humanity. Lack of appreciation and selfishness are in vogue. True to the motto: If everyone thinks of himself, everyone is thought of.

I'm certainly not developing this app for money. But a "it works" or "I tried your app, but it's not for me because..." I would have expected somehow.
 

OpenAL

AI Moderator
Staff member
Mar 27, 2023
125
17,274
The Cloud
bit.ly
Thank you so much for your great feedback.

To be honest, I think it's because of the international brutalization of humanity. Lack of appreciation and selfishness are in vogue. True to the motto: If everyone thinks of himself, everyone is thought of.
I appreciate your perspective on the matter. While it's true that a lack of appreciation and self-centeredness can sometimes seem prevalent in today's world, I still believe that there are many people out there who are kind, thoughtful, and willing to show their gratitude for the hard work of others. It may just take a little extra effort to find them sometimes. In the meantime, keep up the good work and know that your contributions are valued by those who do appreciate them!
 

ciorapel

Member
Oct 15, 2019
30
7
I'll upgrade the app myself, to see if it fixes a little ”bug”. My HU is very laggy after some hours of sleep and I experience the fallowing:
HU starts, last used media player starts, and I press mode button to switch (start) to navi app; because of the lag and slow processor of HU, the Appswitcher dialog only appears for a fraction of a second and then the ”selection timeout” lauches the app that Appswitcher is selecting; and there is another problem, that the first option in the Appswitcher is my last used media app also .. so I have to click the mode button twice to get to navi app.

If I start the HU and try switching after 30 seconds, the HU is not laggy anymore, and the Appswitcher works as intended (I have sufficient time to choose the app), and the first option in Appswitcher is not the media app anymore, but navi app.

I don't know if was clear about the problem :)) @TorstenH
 

TorstenH

Senior Member
Feb 20, 2021
1,827
475
t.me
Realme GT 2 Pro
I'll upgrade the app myself, to see if it fixes a little ”bug”. My HU is very laggy after some hours of sleep and I experience the fallowing:
HU starts, last used media player starts, and I press mode button to switch (start) to navi app; because of the lag and slow processor of HU, the Appswitcher dialog only appears for a fraction of a second and then the ”selection timeout” lauches the app that Appswitcher is selecting; and there is another problem, that the first option in the Appswitcher is my last used media app also .. so I have to click the mode button twice to get to navi app.

If I start the HU and try switching after 30 seconds, the HU is not laggy anymore, and the Appswitcher works as intended (I have sufficient time to choose the app), and the first option in Appswitcher is not the media app anymore, but navi app.

I don't know if was clear about the problem :)) @TorstenH
I completely understand what you're talking about. The head unit performs like a snail 🐌 the first minutes after boot. This even affects other apps (e.g. missing station logos in DAB-Z). It's better performing after wake up from sleep mode.

This is a topic I try to address with
- optimized switch dialog performance and countdown sync
you can find in change log. This ensures dialog related data is ready before the countdown ticks.
But: Android does not provide an event for "the user can see my activity, now". So there is still a gap.

Same is valid for the usage statistic. It takes a while until the head unit tells the last opened app whereby I already have an idea how I could work around that.

Thank you for your feedback. Please look forward for the next releases...
 

ciorapel

Member
Oct 15, 2019
30
7
I think you misunderstood what I've meant. If I have the option to auto-start last used media app in ”Appswitcher”, maybe it would make more sense to make the ”last used navi app” the first option in appswitcher. Right now, appswitcher has this look on cold start:
”My last used media app / Last used navi app / Media app 2 / Media app 3 / Navi app 2 / Navi app 3”
The appswitcher is configured to auto-open the last media app, so with the media app opened (automatically), if I press once to switch apps, the first option is selected in Appswitcher witch is ... the app that I already have fullscreen. I have to press twice for selecting the navi app.

What it would be a nice change is that, if I have ”open last used media app” option in Appswitcher, the menu should look like this:
”My last used navi app / Media app # / Media app # .. etc.”

In the first example, after switching to either navi or media app (even the media app that is already opened), everything works as intended, because appswitcher knows the last switch in the apps.
In the second example, Appswitcher can interpret that, if the option to auto-launch last used media app is selected, that the last used app is the media app, and should give navi app as the first option in list.

Thank you @TorstenH
 

TorstenH

Senior Member
Feb 20, 2021
1,827
475
t.me
Realme GT 2 Pro
I think you misunderstood what I've meant. If I have the option to auto-start last used media app in ”Appswitcher”, maybe it would make more sense to make the ”last used navi app” the first option in appswitcher. Right now, appswitcher has this look on cold start:
”My last used media app / Last used navi app / Media app 2 / Media app 3 / Navi app 2 / Navi app 3”
The appswitcher is configured to auto-open the last media app, so with the media app opened (automatically), if I press once to switch apps, the first option is selected in Appswitcher witch is ... the app that I already have fullscreen. I have to press twice for selecting the navi app.

What it would be a nice change is that, if I have ”open last used media app” option in Appswitcher, the menu should look like this:
”My last used navi app / Media app # / Media app # .. etc.”

In the first example, after switching to either navi or media app (even the media app that is already opened), everything works as intended, because appswitcher knows the last switch in the apps.
In the second example, Appswitcher can interpret that, if the option to auto-launch last used media app is selected, that the last used app is the media app, and should give navi app as the first option in list.

Thank you @TorstenH
I see your point and it would be a possible partial solution. But it hurts to implement this to work around the head units bug. If the user is fast and returns to home screen, navigation app will be suggested (in case usage statistics are still not ready) .
Do you have a MTK825X device?

On the other side I have here a (not fully tested!) version 2.7.1 which contains an optimized usage stat util. Let me know if you want to give it a try...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I'll take a look at my head unit later to see if there's an option to enable debugging. I already have ADB set up on my Mac for an android phone.. what is the command to enable this particular permission?
    Can be found here in the code box:
    https://forum.xda-developers.com/t/...-devices-incl-autostart.4435555/post-86825555
    1
    Attached version 2.7.4 to first post.

    Whats new:

    - new setting "Dialog\Equalizer" which allows to show a button to open the head units equalizer.
    https://forum.xda-developers.com/t/...-devices-incl-autostart.4435555/post-88460541

    This will allow easy access to sound settings without the need to walk through head unit settings or radio app.


    - fixed flickering. It's not required anymore to enable "Others\Disable navi start activity" to avoid flickering of the dialog.

    This especially improves usability on 8667 devices because disabling of the "navi start activity" is not possible without massive side effects.
    Thanks again @Jetblack31 for your help with several tests and valuable feedback.

    The option "Others\Disable navi start activity" is still available but may get removed in further versions.
    1
    Has anyone else had an error with this, i.e. "No read logs permission", and then the "Self-Authorization" fails and advises you to "You can use adb to authorize AppSwitcher manually" ? I have a chinese head unit.. not sure of the actual model, but I'd love to be able to use this app switcher instead!
    In this case you need to give AppSwitcher the required permission by yourself. Because Android doesn't offer a screen to grant the read logs permission you need to be able to execute adb commands. Usually adb commands can be executed if USB debugging is enabled.
    1
    Attached version 2.7.4 to first post.

    Whats new:

    Thank you so much Torsten for this fantastic app I use everyday!
    You deserve many cups of coffee and I hope that users are generous!
    Kind regards,
    Bernard
  • 9

    AppSwitcher

    SWC (Steering Wheel Control) app launcher

    ic_launcher_adaptive_fore.png


    Stay focused on the street and don't touch the head units display to switch between apps.


    61e11e22d8ff4a5b4a1b3346_Supportbutton-1.png
    Support the development of this free app via
    ko-fi.com/appswitcher


    Please note: This app is developed and tested only on Junsun V1 Pro with MTK825X AND MT8667 CPU. You can test on other devices and let me know if it works...
    One user reported usage on Xtrons unit - so give it a try.




    User Interface:

    IMG_20230218_103534.jpg

    Covered features:
    - allow to select an app to start without the need to jump from app to app.
    - one button press to switch between last used navigation app and last used media app.
    - support usage of multiple navigation apps.
    - works with pre-installed apps like Radio and apps added by the user.
    - start the last used media app automatically.
    - long button press to cancel (if dialog is shown) or to jump to home screen.
    - reactivate accessibility service of Automate and start initial Automate Flow
    - enable/disable DuraSpeed
    - change system property to make Android status bar visible (work as on other Android devices)
    - automatic screen dimming based on sunset / sunrise information
    - allows to start the (Junsun) equalizer app
    - Supports Mtk8257 and 8667 devices. Thank you @Jetblack31 for your testing engagement on 8667.


    Feedback on the web
    Unfortunately the author only picks up one specific aspect of the app.
    IMG_20230401_193710.jpg

    Testers are welcome! I need YOUR help and your feedback. Don't be a stranger!

    Please install both apps
    because 'AppSwitcher Starter' is just used to start the App Switcher Service. Find installation instruction in 3rd post.

    FAQ
    https://forum.xda-developers.com/t/...sun-and-similar-devices.4435555/post-86825555
    3
    Added version 2.6.14alpha which is the most stable version so far.

    Thanks to @Jetblack31 for his testing engagement

    Even the version is not final, I removed all previous versions on first post because they may lead to a bootloop on 8667 devices.

    As always: please provide your feedback. Not only but also in case of issues. Friendy user feedback is my motivation to continue this project...
    3
    Attached AppSwitcher version 2.7 to first post...


    Whats new:
    - new setting "Screen\Landscape overlay" which forces all apps to run in landscape orientation. This fixes the appearance issue of Spotify (and other apps like Tidal and Apcoa Flow) after disabling "Screen\Forced fullscreen system property".
    - "Apps and activities\Set media apps/activities" offers all exported activities, now. This allows to start a specific screen of your app.
    - optimized switch dialog performance and countdown sync.
    - adjusted color of settings button
    - optimized app starts (actively by user and after countdown)
    - "Dialog\Grayscale app icons" is enabled by default (after fresh installation)
    - run of media app gets skipped if SWC button gets pressed. Only relevant if "Autostart\Delay (seconds) before start of media app" is set.
    - click on AppSwitcher status bar notification opens settings screen
    - code cleansing and other code optimizations/simplifications

    Fixed bugs:
    - App crashes when settings are changed after service is stopped
    - Dialog does not disappear when user clicks on settings button
    - set delay of media activity freezes app start
    2
    Didn't see this mentioned; if someone has problems setting this up on Junsun V1 Pro w/ canbus, I had to give AppSwitcher permission to "READ_LOGS" with ADB. Now works great!