yashsingh1/xdaforums huggingface dataset:
[Spirit FM] kevjs1982:
Is it possible to get spirit FM to stop when another audio app starts playing?

On my Xperia Z1 Compact (running Stock KitKat) I'm using headset button controller which allows me to switch between apps that play audio without touching my phone - if I switch to music (4 taps) and press play (1 tap) any other audio app stops and Google Play Music starts, if I four tap again spirit launches and I can control the radio.

I've been able to work around spirit FM not stopping the other players by using tasker to send a media controller stop to all the apps before launching spirit, but can't do the reverse.

Is there perhaps an intent exposed which I can tell tasked to close Spirit or am I missing a option which would cause spirit to exit when another app starts playing music?
[Spirit FM] Kess78:
On the Z1 compact stock KK and unroot the mute/play command doesn't work maybe that's why it does not stop for you.
[Spirit FM] mikereidis:
Hi, I see at least 2 problems:

- Spirit needs SU/root and doesn't have it. Many ROMs, like Omni, don't include a SuperUser/SuperSU app and you have to flash it manually, and run it, and say Yes when it asks to install a script to reflash at every ROM update.

- "SLS" means it's detecting a Samsung Silicon Labs or V4L driver which won't work on a P500. Set Debug-> FM Chip to the old Broadcom entry (not BCM433x/20780).
[Spirit FM] mikereidis:
Set Debug-> Audio Focus to Enable and restart Spirit.

It's disabled on some stock ROMs because the audio library in the ROM handled focus in the past.

If that's not perfect, try enabling Debug-> Silent Loop.
[Spirit FM] kevjs1982:
Thanks - at first enabling those didn't work but after restarting Google Music they kicked in and it now works more or less perfectly (a slight overlap in audio when switching from Spirit to Google Play music - less than a second and more than acceptable).

Now if only my phone had DAB on board so I could get some decent reception :eek: - a choice of Capital and BBC Local Radio is rather rubbish!
[Spirit FM] mikereidis:
:)

I'm starting to think DAB, HD or other digital (non cell data) broadcast radio will never be implemented on smart devices.

Higher end devices are seeing analog FM being removed/disabled.

Lower end devices often still have analog FM.

The problem is that digital radio is (supposed to be*) a higher end feature. Countries (esp lower wage) where FM is still essential have little if any digital radio, and range is more limited.

And large metro areas where digital radio is more common have plenty of cell data coverage.

Cell data: GSM, LTE, etc. has won as the medium for "broadcast radio" in areas where data is widely available. Analog FM is just hanging on, mostly on lower end devices and in lower wage countries.

*- In many cases digital, TV (esp cable/sat) and radio both, is used to multiplex more low bandwidth channels instead of fewer higher bandwidth channels.
[Spirit FM] BigJeff:
I don't own this app as I just saw it browsing apps and games, but holy cow! 95‰ of downloads are pirated! It's no wonder nobody developed for Android... Sorry to hear Mike and I wish you the best.
[Spirit FM] mikereidis:
:)

Adapt or die: I'm adapting already with "long term planning" and research underway for moving more towards non-FM stuff.

Percentages I post are just for demonstration, and a "Wild Ass Guess". Could be 60%, could be 95%.

Recent studies indicate 50+% software piracy rates, in general.

But I think Android app piracy rates are much higher than 50%.

Large parts of our world have low incomes, and re FM: many of these people are (1) looking for "free" FM radio, and (2) quite a few are running custom AOSP ROMs (loaded by their local phone guy, along with many pirated apps) to get the most performance out of cheaper devices. I see pirate debug logs emailed to me every day and a large percentage are from China in particular.

IMO one of the main features of Android is easy piracy (open system, Java decompilers,...). Google's Android is dominant in part because of this, in the same way that (now) Google's Youtube became so successful due to video copyright violations of popular content becoming easier.

Anyway, most of the piracy is from people who would never buy anyway, so little or no loss. And those who WOULD buy ONLY if forced are often bad customers who will demand a lot and write bad reviews.

At least I'm not trying to live purely on donations; that mostly doesn't work. Heck, the worlds' huge corporations had little money for the OpenSSL folk and one result is the horrible HeartBleed bug.

Adapt or die: I mostly concentrate on higher end popular phones now. People who buy expensive phones spend more on apps of course.

And if the "market" can't sustain a paid 3rd party FM app, then I put more effort into my new "Audio mod" app that any rooted device could benefit from, instead of the rapidly shrinking number of higher end devices with free, over the air FM radio.

So far this month my income is "good" and I'm happy to see that. But this is likely a spike from Spirit2, which will eventually subside.
[Spirit FM] kevjs1982:
Not here in the UK's 8th largest metro area - I swear EE (our largest 4G network) actually stands for EDGE Everywhere. DAB Reception on the other hand is rock solid, 4G streams brilliantly for about 30 seconds, then you move and the handset falls back on EDGE and it stops for a minute, before returning to 4g :( Then again at least 4G has finally given me a phone signal at home, all we need now is VoLTE to be enabled so I can make a phone call. At home the LTE network is nearly as fast as my home fibre broadband so I can see some promise if coverage ever becomes less than patchy (the 4G build out / 2G/3G network upgrade is due to be complete by Christmas 2015)

You want to see terrestrial TV in the UK - up to 14 standard def MPEG 2 TV channels in the space previously used by one analogue channel. The quality is, erm, somewhat lacking. At least the BBC only squeeze six into the same space :cool:

Anyway, getting back to the app - now I've got my phone working exactly as I want it means for the first time in years I can listen to the radio on my phone without having to dig it out my pocket every five minutes to change station / restart the Sony app - the Z1 Compact is also a lot more sensitive than my previous handsets which means I can finally listen to the national services when I'm in the rural/suburban areas of the city at least (alas still no reception in the city centre).

The multiple "preset groups" is an awesome little feature - no more presets called ReaCapMa because of different stations in different parts of the country being on the same frequency (Now it's North West -> Real NW; East Mids -> Capital Leics; London -> Magic) :cool: Something a £5 radio can do but not a smart phone out the box :confused:

One slight issue I have noticed is that when flicking between presets the notification tray says something like

96.2 Capital Nottm

Capital

which is fine, but when you jump to the next preset it says

97.9 BBC Radio 1

Capital

and about half an hour later it will finally change to

97.9 BBC Radio 1

BBC R 1

when it finally resolved the RDS (my home HiFi system takes about 10 minutes to resolve the RDS as the signal is poor).

The UI - Notification display is set to "Frequency" but it still appears to be using RDS?

Is this normal or a bug with the Z1 Compacts implementation?

The Audio method also needs to be forced to "Sony/QC Intent" as Auto doesn't always work (speaker only after some boot ups, speaker and headphone after other bootups - it's as if it sometimes gets the wrong method (Sony / Z... displays the same problematic behaviour)
[Spirit FM] :
Thank you, Mike and..documentation question

... hi to all users of Spirit1 FM Radio.

Dear Mike,

i own a SGS i9000 which i bought off ebay and immediately rooted.

I am running CyanogenMod 10.2 stable and the first thing i realized was that FM was gone :crying:

Now, after signing up to this wonderful forum, i quickly came across your app and Spirit2 as well.

I tested the beta you offered some days ago and well.. it could grab FM but not so nice.

Anyway: The proof gave me the courage to buy the Spirit1 app which you describe as "more mature".

What shall i say: IT WORKS just as described !

I am so satisfied. That was a good investment. Truely. I encourage all users of pirate copies to get legal and buy

that stuff.

We do not do ourselves a favor if we constantly refuse payment for something we want to use everyday.

Just my 2-cents, no offense to be taken by anybody.

My location is Germany, Northern Rhine. In a rural area my provider is often simply not present.

Or there is edge only, sometimes gprs which brings me down to 64kbit/s internet streams plus the data plan is

exceeded plus 64 is CRAPPY!

Ah, let me tell you again: I did not break my speaker on JB of the i9000. I can listen to MANY stations i even can't receive

on my home stereo.

Together with the DSP Manager i get very good sound over my headphones.

Please, Mike, hold on to that work. I am not a programmer, so i am no help for you but to spread the word.

One question i do have left: There are many many options that can be switched. Is there a document which describes the items?

Thank you again and best regards,

Frank
[Spirit FM] :
At incoming call when listening mic is mute and stays so.

Hi all,

maybe this is a question of using the right options..

I am on CyanogenMod 10.2 with my Galaxy S i9000 and using Spirit1 over headphones.

An incoming call is signalized, i answer the call. The FM is muted, i hear the partner over the headphones.

But: He cannot hear me.

Seems as if the mic is muted.

I end the call and switch off FM.

The situation is as before. I cannot answer until next reboot.

Other audio application, such as Apollo, cannot make use of the speaker any more...

Most weird: When i answer an incoming call and switch to speaker, inside the call app, i can hear and answer!!

When the call is over, Apollo stays quiet over speaker but not so via headphone.

The are two problems, i know.

One is mic muting during and after usage of Spirit1 and one is the strange loudpeaker behaviour.

Where is the connection?

Note: I grant SU as a per session way (not timed, not always). and i use Digital S1 as audio method.

I would be great to have some suggestions what to test.

Thanks!
[Spirit FM] mikereidis:
Happy to hear you're happy. :)

Germany is my biggest market; almost 20% of sales.

There's a FAQ from 1 year ago here: http://xdaforums.com/showthread.php?t=1059296&page=447

And a November 2012 document here: https://googledrive.com/host/0B7UP2cIqyQXGZVZYZHItaC1ZWk0/spirit_doc.html or http://d-h.st/TxN

Not TOO much has changed since those times.
[Spirit FM] mikereidis:
I don't really test CM10.2 much anymore. Problems like this can be caused by the way that speaker or wired headset output is forced. It's tricky because FM radio is the only time you'd want to listen on speaker when wired headset is plugged in (for antenna only.)

My best thought right now is that you should try Spirit2, at least to test. Email me and I'll send a copy. If Spirit1 is working, Spirit2 should work also. As always I can cancel any order if you want to switch.

I made extra efforts in Spirit2 to avoid problems like this, with the side effect that I can't support speaker mode (so far) as well, or at all on certain phones.

It's best if you can avoid plugging or unplugging the wired headset while FM is running, or is paused due to phone call or ringing.
[Spirit FM] :
Thank you, Mike...

for answering my question on documentation and the "mute" problem.

I would very much like to test Spirit2 but i am not able to send you a private message.

Forum software tells me that you blocked pn and i am not allowed to receive pn.

Don't know why.

How are the procedures in that case?

Clueless but full of hope,

Frank

P.S.: I removed my block for pn messaging.

P.P.S.: Mike, you got gmail. Sorry for me being numb.
[Spirit FM] marlats1:
My Verizon HTC One now has FM radio

I am using the HTC One M8 by Verizon. FM Radio was not installed.

On another site I discovered that other carriers use the NextRadio app. At first, the NextRadio app wouldn't Install because it is not allowed on my Verizon phone.

So, I sneakily found the APK on internet.

From the website I downloaded the file to my Verizon HTC M8. Using a file manager, I located the file on phone, tapped it, and it installed with no problem

I am listening to the FM radio as I type this.

Attached copy of the file.

regards from Marla
[Spirit FM] mikereidis:
:)

I block PMs because people should post instead of PMing me private.

My mikereidis@gmail.com email is public and is checked every 24 hours or so; less on weekends lately and I need an app vacation for other life responsibilities again.
[Spirit FM] mikereidis:
Wonderful...

I wonder if Emmis/NextRadio got HTC to digitally sign their FM app so it would run. AFAIK, Spirit can't, unless the phone is rooted.
[Spirit FM] mikereidis:
EMail:

Hi, Thanks for your interest. :)

I've attached the latest Spirit2. The Spirit2 UI and technical underpinnings/design are much better.

Spirit1 is over 3 years old now, and there will be no feature additions.

Spirit1 bug fixes will be mostly for "catastrophic" problems, such as SuperUser changes on Android 5.0.

Spirit2 is still less mature, and with fewer features, but updates will continue for at least 2 years I think.

I guess you purchased Spirit1 9 months ago ?

I tend to ask those using Spirit1 for over a year to consider a 2nd purchase and help support a few more years of development.

But I can cancel old Spirit1 purchases for an upgrade for those who feel it's appropriate.

I've just now lowered the price a bit for at least a few days...

Regards,

Mike.
[Spirit FM] :
Mike,

thank you. I got mail...

I am just testing with the new version and so far my audio problems i described a few postings before are all GONE!

:good:

That means: I can receive and answer calls during listening FM.

And making a call with FM in the background is also no problem.

The audio is properly muted and back again when the call ended in both cases.

I can use the SPEAKER on my i9000. I can turn it on and off flawlessly.

I cannot control the volume at the moment but might be in connection to DSP Manager.

I have to go through it again.

The FM receiver itself works amazingly good. Maybe it is the hardware and/or you software work.

I can listen to AFN radio station Wiesbaden on 98.7. This station is for the US army located at Rhine-Main airbase.

I am more than 120km distance direction north!!!!

To receive this broadcast means a lot to me. You know: I grew up with AFN on AM during the late 70s.

At night my favorite program was the Wolfman Jack show. Rest in peace Wolfman.

Nowadys they have a good internet stream broadcasted plus a few FM stations all over Germany but with

low power and a regional oriented program. No AM anymore...

Ah, i could go on for hours talking ...

I will report back with final results and, well, some suggestions for the gui and functions.

Regards,

Frank
[Spirit FM] TaylorPro:
Hi all!

Spirit FM compatible Motorola Moto G Google Play Edition rom? My device rooted. Thanks!
[Spirit FM] mikereidis:
Yes, I have one.

Look at Spirit2, unless you MUST have the few added features of Spirit1: https://play.google.com/store/apps/details?id=fm.a2d.s2

Bluetooth must be off though, and startup can take 10-15 seconds.
[Spirit FM] TaylorPro:
Thanks Mike!

Buy, ant try it! :good:
[Spirit FM] mikereidis:
:)

I "came of age" in the 1970's when the "golden age of FM" was underway (late 60's ?).

Even "pocket radios" on speaker mode sounded better on FM than AM at that point.

In fact that age gave birth to the name of this app, which nobody but my BIL has figured out and said so, so far. :)
[Spirit FM] TaylorPro:
Buy Sirit 2, working! Thanks Mike! :highfive:

EQ future function?
[Spirit FM] mikereidis:
The installed EQ, like DSP Manager on CM, works with Spirit2 or with Spirit1 in digital audio mode.

Access via Menu-> EQ, where on Spirit2 the bottom middle button is like Menu.

I've considered my own EQ UI on Spirit2, but nobody is asking for it.
[Spirit FM] TaylorPro:
My Moto G original Play Edition rom. No EQ function. My best player jetAudio. Please ad EQ function Spirit 2.

Install DSP CM. Try. Thanks!

Thank you for your work!.
[Spirit FM] mikereidis:
9100g email:

9100g is one of the "difficult devices", with similar issues as Desire HD. I've never had a 9100g and never will, largely because it's MUCH less common and very different (for audio) than 9100.

For the turn-off problem, set Menu-> Settings-> Debug-> Power Restart Media to "Disable" and restart Spirit. or better yet, reboot the phone.

But this might leave audio in a bad state after listening to FM. It's a hack that resets the whole audio/media system; it's better than rebooting the phone at least.

For audio notifications, try enabling Debug-> "Silent Loop OFF". NOTE the "... Off". Then restart Spirit. This may cause volume control issues though.

You can also try setting Debug-> Audio Focus to "Disable" and restarting Spirit.

There may be no practical solution to all issues that doesn't have side effects.
[Spirit FM] mikereidis:
:)

Spirit2 is even better, though supported on fewer devices.
[Spirit FM] mikereidis:
OT: I don't have an "audience" anywhere else on the Internet, so I'll ask here.

I'm asking for some Facebook "likes" and/or supportive replies.

As I posted here: https://www.facebook.com/metromonepicier/posts/1397436423875472

My son is home and feels OK now, but this is the 3rd time we've had to rush him to a hospital and "we" (big profit making corporations and regular people alike) need to do more to recognize this growing issue and find better solutions.

Three full epipens were required, as was several hours of emergency room treatment and observation. Epipen is a nasty (but life saving) needle device that has to be jammed into the muscles: http://en.wikipedia.org/wiki/Epinephrine_autoinjector

Having a major reaction, gasping for air and wondering if you might die are horrible things for anyone, never mind a young child.

Thanks !
[Spirit FM] shaq1907:
I hope him to get well soon. Best wishes.
[Spirit FM] Lino_PC:
doesnt get it work on samsung galaxy s4 mini ... even ... google play says my phone is compatible :(
[Spirit FM] divinehan:
weird noise when playing

I purchased Spirit1 on 4th Sep 2013. It was running fine on my GT-i9003, CM10.2 until I upgraded to CM11 recently.

I restore the app+data with Titanium Backup. After it runs for 1 or 2 minutes, it closed suddenly.

During playing, it's like 'stop, play, stop, play, stop, play', I have to tap pause and tap play to let it play properly, but it'll FC after around 1 minute. I tried to uninstall, re-download from Play, same problem. Is there compatible issue with CM11?

Can I upgrade it to Spirit2 since I bought it less than a year?
[Spirit FM] diogoritter:
Error on Play Store

[MENTION=3575078]mikereidis[/MENTION]

I bought Spirit1 on Play Store and used without problems (CM11 http://xdaforums.com/showthread.php?t=2563557).

But after the (clean) update of the phone to the latest version of the CM, I get the error 942 when trying to install the Play Store.

What can be happening?
[Spirit FM] karlos5f:
Can I use the spirit app on my lg g pro if yes send me the link
[Spirit FM] karlos5f:
Bro.I.can't seems to get spirit1 or 2 to work for.me spirit1 say Su fm bc and spirit2 says some about power can you please help
[Spirit FM] mikereidis:
If ANYONE else has seen this Unlocker problem, please let me know. As we PM'd: I sent a special unlocked release that seems to work OK, but the root cause is undetermined so far. It may be Texas Instruments chip related.

As I PM'd: It seems like something unusual may be going on with regards to the reporting of the BT state. Manually turning on BT may help.
[Spirit FM] SaurusX:
LOL. It is crazy, but previously I wasn't getting any RDS data. A major difference is that I've upgraded your app since that initial post, and it's only on this latest version that I'm getting station ID information. The DroidX chip must be very different from what you're expecting. I'll definitely be sending logs your way once the new version allows.
[Spirit FM] denzel09:
Thanks
[Spirit FM] SaurusX:
Mike, I had a thought occur to me. A few months back there was a leaked Motorola Connected Music Player app. It rolled up into one app the regular music player functions adding in lyrics from tunewiki, shoutcast streams, soundhound, and the FM Radio app. Now that I'm running CM7 on my DroidX the FM radio portion doesn't work, but would a logcat of me starting it up do anything for you? Would you be able to see anything happening behind the scenes as it tries to start that might help in Spirit FM Radio? Let me know.

Come to think of it, I don't know what Motorola has ever done with this app. It's quite useful, but they've yet to incorportate it into any phones.
[Spirit FM] mikereidis:
I downloaded that app and after some reverse engineering, posted my findings earlier in this thread. If I recall correctly I learned one of the Motorola audio routing "secrets" and created a new Audio Method based on that. It enabled some Motorola devices.

I'm hoping to have a new app version ready within 12 hours.

EDIT: My June 17 post on the leaked Motorola "Connected Music Player": http://xdaforums.com/showpost.php?p=14831796&postcount=486

The info from the java code resulted in the creation of the FM_launch and FM_launch2 Audio Methods.

I don't think there's anything there that will allow fixing of the problems you are seeing, with frequency being off by a bit.

And I don't think your FM chip is "substantially different" than my TI FM chip. It mostly works.

DeadTed has reported a somewhat similar issue on my other thread: http://xdaforums.com/showpost.php?p=15987177&postcount=10

He has a SonyEricsson X10 mini pro with a TI chip.

So my guess is there is still some sort of TI FM chip specific instability. From your reports it seems as if it affects just the lower few bits in a Frequency Set operation, and the lower bit corruption creates an offset that stays constant, at least until the app is power cycled. Seems strange. I have one idea about what it might be and will look into it and others...
[Spirit FM] mikereidis:
V July 26:

http://www.mediafire.com/file/84bm0s6ptwed4jb/Spirit_FM_Radio_v110726.apk

Main changes since July 17:

- Fixes for Japan band issues. Removed "Japan Wide" and replaced with "World" (Like Europe except 50 KHz steps).

- Logging improvements:

New checkbox setting "Debug Extra" produces detailed HCI/FM chip register debug messages in log for trouble-shooting of difficult HCI/FM chip problems.

This feature produces extra logs and starts logcat as a daemon for 60 seconds after startup. For normal operation, make sure this is unchecked or system load will increase.

Associated with this is a new Menu option: "Email Logs". If you have email setup on your device, this is an easier way to send me the debug information I need to trouble-shoot issues.

The information is in a single attachment in ASCII form. It should contain nothing that anyone concerned about privacy should be concerned about. If "Debug Extra" is unchecked, it sends about 0.4 Megabytes or so. If checked, around 1 Megabyte.

If the app just doesn't work on your device and you get the "No compatible FM chip" message, just select "Email Logs" from Menu.

If you have a problem during runtime that is not audio routing specific, check "Debug Extra" and let the app run for a minute or so, while using app features such as tuning, seeking etc. THEN select "Email Logs" from Menu.

If you have an ongoing issue, it would be useful if you can run these "Email Logs" functions and I'll have all these logs recorded in my email.

You can edit the email text to add any information you think might be useful, such as device brand and model, or your error observations.

Yes, there is also an "Unlock" function under Menu, but it's likely temporary for testing for anyone who may have had an Unlocker problem (1 person so far.)

Thanks for your reports !