New radio for the....radio ? (Avalaunch Musicworld)

New radio for the....radio ? (Avalaunch Musicworld)

jokercrs
  • Beiträge: 6
  • Registriert: Do 14. Feb 2019, 12:58
  • Danke erhalten: 3 Mal
read
Been working a long time on this project, and it's almost ready. It is a musicplayer for the ioniq, although I have found it useful enough to make it work well on cellphone too :)
Quick function summary :

-Audiobook playback ( most formats )

-Music playback ( most formats )

-Radio streaming
--- AAC and MP3 tested, should also work with OGG and more
--- Supports ICY for artist/songname and cover-art ( had to be smart on that one as some cover-arts are 1920x1080, and will crash the unit if you load it, so it will ask a server to download it and shrink it, reducing cover art sizes from a few MB to a few KB without very noticeably reduction of quality on the screen )
--- If you click the artist/songname it will create a MP3 of it and store it for later use. I may reconsider this feature as I believe it's actually on the wrong side of the law.
--- Allows you to choose quality while on a channel.
--- Lets you choose most radiochannels from most european countries. Agonizingly much work to go through.

Detects Ioniq and supports controls from steeringwheel and console ( not seen many people support this, so I will add the code for that here in later post )

Video of how it works (warning : 250mb) :
http://kvalsvik.sytes.net:7001/img/VID_ ... 110245.mp4

Bild
Anzeige

Re: New radio for the....radio ? (Avalaunch Musicworld)

jokercrs
  • Beiträge: 6
  • Registriert: Do 14. Feb 2019, 12:58
  • Danke erhalten: 3 Mal
read
Code for steering wheel and console controllers : ( give me a tiny credit if u use please ? :)
I may have mixed up Console and Steeringwheel code and switched them around, but in the bitter end it doesn't really matter. only UP and DOWN matters for most

Add in main activity :
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
switch (keyCode)
{

case 323: // Console DOWN
case 309: // Steering wheel DOWN
{
//your Action code
return true;
}
case 322: // Console UP
case 308: // Steering wheel UP
{
//your Action code
return true;
}
}
return super.onKeyDown(keyCode, event);
}



========================================================================



To detect if it's Ioniq, I have just done the following :

public static String getDeviceName() {
String manufacturer = Build.MANUFACTURER;
String model = Build.MODEL;
if (model.startsWith(manufacturer)) {
return capitalize(model);
}
return capitalize(manufacturer) + " " + model;
}


----

String device = getDeviceName();
Log.d(device,device);
if( device.equals("LGE TCC893X_EVM"))
{
Ioniq = true;
Toast.makeText(this,"Hyundai Ioniq detected, enabling remote", Toast.LENGTH_LONG).show();
}
AntwortenAntworten

Zurück zu „IONIQ - Infotainment“

Gehe zu Profile
  • Vergleichbare Themen
    Antworten
    Zugriffe
    Letzter Beitrag