Acess to FM Radio API - Desire Themes and Apps

Hi
I'd like to build an Android App to delay the FM Radio and match the sound with a sport event in TV like football.
There's any API to do this?
I'm new in Android development (not in Java). Can i decompile the HTC Radio program like a normal Java jar/class?
Thanks

sergio.otero said:
Hi
I'd like to build an Android App to delay the FM Radio and match the sound with a sport event in TV like football.
There's any API to do this?
I'm new in Android development (not in Java). Can i decompile the HTC Radio program like a normal Java jar/class?
Thanks
Click to expand...
Click to collapse
I'm pretty sure that you can't decompile the radio. As far as a radio API is concerned, I think one could come with the Android 2.2 SDK. The HTC one is proprietary stuff.

It's highly possible that radio is accessible via some files in /dev, and can be controlled by /sys or /proc as any radio/tv tuner in linux is. Check this via adb, and than search some samples. Maybe android audio API can be used for this? If not you will have to access it directly.
But it's only my idea.

This all sounds suspiciously like Android Development talk ;P

Sorry, I thought that i was in "Android development" subforum ...
I'm just doing my first Hello world examples while waiting to receive the Desire (25 may), so i'll first try to learn Android with the easy part of the application (all but the FM radio access).
I'll keep you posted if i do any progress.
Thanks for the advices

emdzej said:
It's highly possible that radio is accessible via some files in /dev, and can be controlled by /sys or /proc as any radio/tv tuner in linux is. Check this via adb, and than search some samples. Maybe android audio API can be used for this? If not you will have to access it directly.
But it's only my idea.
Click to expand...
Click to collapse
Hi guys,
The, it´s possible to rip songs from Fm Radio?

Related

who can adapt gpstmc.dll for tmc?

Hello who is ingeniously and can change gptmc.dll for tmc?
Thank you!
What do you mean exactly ?
You want to know if this gpstmc.dll library can be used to retrieve TMC data from RDS using the Polaris's FM radio ?
First, I'd like to know where do this library come from ? What kind of device ? I dunno if raw RDS data is available on the Polaris.
No gpstmc.dll it must be rewritten. Then the TC/Orbit2 TMC.
I can not change the gpstmc.dll, so I look for help here.
Data supplied by Orbit2
The Polaris can TMC.
Signals/TMC are sent to the gpstmc.dll. But will not continue.
Mc0815 said:
The Polaris can TMC.
Signals/TMC are sent to the gpstmc.dll. But will not continue.
Click to expand...
Click to collapse
Can you explain this in detail ?
I just looked a bit into this:
I don't see where gpstmc.dll get its data, but it looks like a compatible equivalent library is feasible.
I see that FMRadio drives the FM chip thru FMS_api.dll which itself speaks to the FMS.dll FM Chip driver.
What I can see in FMS.dll is that there is a specific event handler for incoming RDS groups but I don't yet know if is hookable. It looks like FMS.dll RDS groups handler filter a lots of feature (probably managing only PI, AF and PS).
Do you have more info on gpstmc.dll inner workings ?
plopplop said:
Can you explain this in detail ?
I just looked a bit into this:
I don't see where gpstmc.dll get its data, but it looks like a compatible equivalent library is feasible.
I see that FMRadio drives the FM chip thru FMS_api.dll which itself speaks to the FMS.dll FM Chip driver.
What I can see in FMS.dll is that there is a specific event handler for incoming RDS groups but I don't yet know if is hookable. It looks like FMS.dll RDS groups handler filter a lots of feature (probably managing only PI, AF and PS).
Do you have more info on gpstmc.dll inner workings ?
Click to expand...
Click to collapse
you have message
Well. This is not a simple project.
First, a program to test reception of TMC data using the FMS driver must be done.
Then, if it works, a new version of gpstmc.dll must be created (not that easy) to provide software using gpstmc.dll (like, igo or software like that) with TMC data.
gpstmc.dll seems to be specific to devices with GNS GPS+TMC receivers.
Personnaly, I like the idea of getting TMC data from the Polaris radio. If the driver allows us to grab other groups than RDS PS then it can be done. However, providing TMC data to GPS software will be a bit tough.
before you try driver hacks ... do you know what bluetooth chip is inside? after that you must hack the radio rom to switch the right nv-items on. then you can use the drivers.
What does Bluetooth have to do with TMC?
TMC is a side channel of RDS on FM radio.
There is a software for showing TMC events at navifriends.com (called TMCview).
Look here
Download after registration only.
Sascha
Donations Recieved:
30€ Mc0815 for TMC
SaBo said:
What does Bluetooth have to do with TMC?
TMC is a side channel of RDS on FM radio.
There is a software for showing TMC events at navifriends.com (called TMCview).
Look here
Download after registration only.
Sascha
Click to expand...
Click to collapse
Those are very specific to the Eten hardware (and drivers). But its interesting nonetheless.
NetrunnerAT said:
before you try driver hacks ... do you know what bluetooth chip is inside? after that you must hack the radio rom to switch the right nv-items on. then you can use the drivers.
Click to expand...
Click to collapse
RDS support is already there on qualcomm side. The fact is that FMS.dll driver (the windows driver for the FM chip) filters out RDS features other than AF (alternative frequencies), PS (program service, the station's name) and PI (program identifier, a unique identifier for a listened station).
This driver needs to be hacked into to let RDS TMC groups out. It seems this driver does not give access to raw rds data.
I wonder if the best strategy is to modify existing driver (and still let the FM radio program use it) or "make" a new one used only by programs using TMC.
This driver needs to be hacked into to let RDS TMC groups out. It seems this driver does not give access to raw rds data.
I wonder if the best strategy is to modify existing driver (and still let the FM radio program use it) or "make" a new one used only by programs using TMC.
Click to expand...
Click to collapse
how about make 'TomTom Go' or 'TomTom One' work on mobile phones with the hacked gpstmc.dll
http://www.tomtom.com/products/accessories/accessory.php?ID=294
plopplop said:
Those are very specific to the Eten hardware (and drivers). But its interesting nonetheless.
Click to expand...
Click to collapse
What is specific to Eten hardware?
TMCview definitely is not.
manaaa said:
how about make 'TomTom Go' or 'TomTom One' work on mobile phones with the hacked gpstmc.dll
http://www.tomtom.com/products/accessories/accessory.php?ID=294
Click to expand...
Click to collapse
TomTom software from PNA is not based on Windows OS but some sort of Unix.
Sascha

Auto integration and Android

A question for those who keep up on the news a lot better than I do in the Android world.
Has there been any news about progress on Android supporting PBAP and other parts of the bluetooth protocol necessary to transfer contacts, caller ID, and sms notifications to a car stereo headunit?
In my searching, I noticed that bluez, the linux bluetooth stack, does indeed support PBAP, but either Android's version doesn't or there is no application that uses it yet.
recent thread and more:
http://www.google.com/cse?cx=000825...pment&sa=Search&cof=FORID:0&ie=utf-8&oe=utf-8
There's some info in koocat's thread about OBEX being supported by bluez, he's offering $300 for a dev to make things work. I don't know if anything will come of it, but there is some info in there that may help.
I had read that thread before and found it to be the usual, long, drawn-out series of off-topic posts. It answered my question: there really isn't any news about android bluetooth stack development.
BlueZ supports OBEX (and has for a while) as well as PBAP. Unfortunately, the Android devs decided not to include them, just as they decided to leave out some audio-related bluetooth features until cupcake.
Auldg's post (yesterday, in fact) had a better answer. http://forum.xda-developers.com/showpost.php?p=4157673&postcount=59
He outlines a possible workaround, at least, for getting contacts lists into a car headunit by using vCards and BlueX from the market. It might be worth a try.
Thanks for the link!
http://forum.xda-developers.com/showpost.php?p=4157673&postcount=59

Jython in Android?

Hey Folks,
I was wondering if anyone knew if it was possible to use Jython instead of plane Java for android development? I don't know much about Java development but I'm with Python. I was figuring that this might ease me into it better. Any thoughts?
Thanks,
-=GB=-
Have you had a look at the Android scripting environment?
http://code.google.com/p/android-scripting/
http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html
http://code.google.com/p/android-scripting/wiki/PythonAndroidAPI
Regards,
Akshay
Thanks aksd,
I don't know how I didn't find that before. Perhaps I should have just searched for Python and Android as opposed to just Jython and androind.
Anyway, this is very cool for prototyping and simple scripting. However, the main thing I was hoping for was writing apps in Python (via Jython) that could then be distributed on the Marketplace. It's kind of to bad. It doesn't look like anyone is really trying to port Jython to Android because ASE is sort of Google's official response to the whole thing. On the whole, a really great thing for people who just want to script Android but not really for App development.
In all of this searching I did find some interesting information about how to link in C libs so you could code some of the hardcore speed sucking elements in C (like a game engine) and then make calls into it via Java. I didn't know that was even possible so... Pretty cool stuff.
Hey ngrava,
I'm not much into scripts, so dont really follow whats happening with scripting and Android.
If you wanted a bit of a performance gain you can use the NDK and call the JNI to execute native libraries or code. been there for awhile but few use them. Java is just so much easier than C .
Theres a lot of interesting stuff going on on the Android platform, Mono being ported to Android, Scala being ported to Android, I'm actually currently working on profiling the performance of scala code on android.
Regards,
Akshay
On the Google DevFest on Argentina, Google´s ingeneers afirmed that they are working to make more languages availeable on Gingerbread, they specifically mentioned Ruby. We just have to wait to see if this is true and if we are going to be able to ship apps of other languages to the market, and I´m not sure if they will be backwards compatible with earlier versions of android as well.
PD: Oops, sorry for reviving this old post, I just realised i clicked last page instead of next

[Q] Interacting with ADB programatically

Hello
I'm planning to write a program that will interact with an active Android phone (Leo specifically). I plan to do this using ADB (since it fulfills exactly what I need to do), but I'm not comfortable having to open a program shell every time, it's not really an efficient and fail-safe method of doing things.
I noticed that the ADB files in the SDK come with two dll files called adbWinApi and AdbWinUsbApi, but I couldn't import them to Visual Studio, so I'm guessing they can't be used as external resources (or they can and I'm just too ignorant). Anyway, I found no resources on how to use them, so I'm guessing adb.exe uses them, and unless someone can reverse engineer them for me and found the references I need to use, they're useless.
Does anyone have an idea how to interface with an Android device programatically? Using C# preferably, but any open 'handle' I can use would be helpful.
Thanks in advance.
This looks like it might be what you're after:
http://madb.codeplex.com/
This is a Managed port of the Android Debug Bridge to allow communication from .NET applications to Android devices. This wraps the same methods that the ddms uses to directly communicate with ADB. This gives more flexibility to the developer then launching an adb process and executing one of its build in commands.
Click to expand...
Click to collapse
Wow, looks interesting, I'll look into it.
Thanks for the great find!
Sent from my Android HTC HD2 using XDA App
Ambious said:
Anyway, I found no resources on how to use them, so I'm guessing adb.exe uses them, and unless someone can reverse engineer them for me and found the references I need to use, they're useless.
Click to expand...
Click to collapse
And why to reverse engineer a part of an open source project? Android is open, you know ;-)
http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=adb
Brut.all said:
And why to reverse engineer a part of an open source project? Android is open, you know ;-)
http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=adb
Click to expand...
Click to collapse
LOL, true. But is the SDK?
Sent from my Android HTC HD2 using XDA App
Ambious said:
LOL, true. But is the SDK?
Click to expand...
Click to collapse
I think so, I have linked ADB sources above. Maybe these sources are for adbd daemon on a phone only, but even if, then you have docs about adb protocol in OVERVIEW.TXT and SERVICES.txt files.
True, and I also noticed the ADB client emulates TCP anyway, so it shouldn't be too hard to replicate and 'hook in'. Thanks for the tip
Sent from my Android HTC HD2 using XDA App

[DEV][AADK] Google's Arduino based "ADK" Working on Nexus One

I managed to snag an Android Accessory Development Kit from Google IO.
After wrangling all the necessary code bits together I got the demo code running on the Arduino board and my Nexus One.
The first picture you can see the phone reading the sensors of the demo shield, button states, the temperature, a light sensor and the joystick position.
In the second picture the phone is controlling the led colors and has one relay turned on.
In the last picture you can see that the phone detects the board being plugged in, Android knows there is no app installed for the board and it cannot be found in market.
The Nexus One is running a rooted 2.3.4 ROM from this thread
P.S. Mod's can we get a forum section for Android Accessory Development?
Now for Pics.
Now that is bad a**!!! I was waiting for something like this!!
Hey, I've been attempting to hack in the support into CM7 (nightly, 2.3.4) on my EVO without much success. I've rebuilt the kernel with the necessary flag enabled and ripped the JAR/XML files from the Nexus S update.
I've monitored logcat and seen that it does find the framework JAR (the application wouldn't install otherwise since it's a needed feature) and a dmesg scan shows that the kernel driver is being initialized.
What's happening now is I plug in the ADK and the output from the Arduino board spams that it couldn't get a protocol version from the phone. The phone slows down to a crawl as its probably being spammed with requests from the ADK for a protocol version and doesn't know what to do.
I'm at a loss here as to what I could possibly be missing. If you have any insight through your own endeavors it would be much appreciated.
Great stuff! I was also at Google I/O and picked up an ADK. Can you post the apk file of your app? I'd love to try it out.
And if you're feeling generous...the code?
badass. good ****
Well done mate...
Have tried it out with arduino UNO?...
uh uh, why i wasn't at the Google I/O
Google is doing really good s**t nowadays. I suppose that Arduino will guest in my house in some time as I am fascinated
I am Actually using the ADK with my Nexus One on an Arduino UNO and an USB-Host Shield from Sparkfun, it works equal but only take a fraction to buy it
My first project is an interface for my Audi, at the moment i only use it to start the Motor, but in future i want to try to build a CAN-BUS interface...
Sure here is the compiled ADK.
-Nik
bharathp666 said:
Well done mate...
Have tried it out with arduino UNO?...
Click to expand...
Click to collapse
The Arduino UNO doesn't have native USB Host support onboard like the megas.
You will need a USB Host shield and will have to modify the Arduino code.
SoyoBro said:
Great stuff! I was also at Google I/O and picked up an ADK. Can you post the apk file of your app? I'd love to try it out.
And if you're feeling generous...the code?
Click to expand...
Click to collapse
You can find all the ADK instructions and code here.
Note: When you select your build target you must choose
Target Name - Vendor - Platform - API Level
"Google APIs" - "Google Inc." - "2.3.3" - "10"
Otherwise you will get errors trying to build on the new libs. The instructions on the ADK page wern't very clear about this. Took me awhile to figure that one out.
You will need to update your Android SDK if you don't see those options.
-Nik
As for the point of using an arduino uno, Oleg is providing an newer version of his USB lib, it now works with his shield and the ADK.
My car is almost starting with the ADK, i am only missing a few relays and stuff to get it completed but i posted a proof of concept on youtube. Text an explanation is all german, sorry for that
http://www.youtube.com/watch?v=FlvpMwSxgMg
if there are any questions Ill be here for you
Great stuff. I am really looking forward to this.
But what I don't get is which hard- and software is required:
- is 2.3.4 sufficient?
Answer: YES
- do other devices (running 2.3.4) than the Nexus 1/S work?
Answer: Pending
- will an Arduino Duemilanove board work?
Answer: NO
Thanks for your help, guys
Besides those questions I have one more:
- assuming I have a board that is connected to a power supply. will i be able to charge an Android device when connecting the board to the handset via USB?
Answer: depends on the boards and its power consumption/outlet. Basically, it should
Nikropht said:
P.S. Mod's can we get a forum section for Android Accessory Development?
Click to expand...
Click to collapse
+1 for a dedicated section.
I reckon it's gonna take off as soon as more USB host boards become available
My Arduino Duemilanove works perfectly

Categories

Resources