tags:

views:

21

answers:

0

Okey, this is a strange question so I need to explain some of the background for it.

My car stereo (Alfa Romeo Blue&Me Bose) doesn't support bluetooth a2dp, nor has it an aux input. It does have a usb input which my Nexus One successfully mounts up with.

However, all my music is now being streamed through the music service Wimp (similar to Spotify). Therefore, there are no .mp3 files locally on the SD card which the car stereo can read.

The question here represent a desparte attempt for a workaround for this by: 1. Creating a dummy .mp3 file on the sd card of my android phone 2. Mount the Android phone with the car stereo USB 3. Play the dummy .mp3 from the car stereo 4. In Android override the read file event, and instead provide a byte stream of the currently played music/sound

I assume this is not possible to overwrite the file system behaviour, but can anyone confirm this?

I envision using FileObserver to catch the event that the file is being read http://developer.android.com/reference/android/os/FileObserver.html and perhaps also do some hacks in the MountService http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/MountService.java;h=ddf7c56d1e05448b58a7ad0b1b263558307179e9;hb=7ebf017658070323ed1c2bbd80c46c7cd2390d87

PS most likely I will end up with a FM sender, but would really like to avoid this