Fatal error - playing mp3 from a listview

rickrack

Member
Licensed User
Longtime User
Hi all devs. I'm here because I need help, of course..

I made an application with a listview. When the user click on a listview item, an mp3 file starts.
It's perfect on my phone but on my friends' phones it gives errors..
1) clicking on a item, the apps gives them this error:

An error has occurred in sub:
main_listview1_itemclick (java
line: 331)
java.io.ioexception: setDataSourceFD failed.:
status=0x80000000
Continue? [y/n]


2) Ads not showing on their devices... the ads is not visible because it has these coordinates and it's impossible to show it on smaller screens:
AdView1.Initialize("Ad", "pub-id")

This is how the application should be

If you want you can check... this is the application. it's a fun mp3 compilation of a crazy man that screams everytime :)

*edit*
if you want i can post the complete source code of the application
 
Last edited:

NJDude

Expert
Licensed User
Longtime User
Ok, I made some modifications to your project, download it HERE <link deleted>
The MP3's are NOT playing on some devices, on my EVO running Froyo runs fine but on my Galaxy Tab running Honeycomb I get the error message you posted.
 
Last edited:
Upvote 0

rickrack

Member
Licensed User
Longtime User
Thank you for assistance

unfortunately, it's ok on my galaxy nexus, but it gives me the same error i had before on the htc desire..

why isn't the ad showing in no one of these devices?

ps. i'll not post my id ;)

*edit*
solved ad viewing problem
 
Last edited:
Upvote 0

rickrack

Member
Licensed User
Longtime User
Probabily it gives me the error message on the htc desire because the phone has a custom rom (cyanogenmod)?
 
Upvote 0

rickrack

Member
Licensed User
Longtime User
I'm here, another time :)

I studied the problem... as I can see, the problem comes when in java this activity is called:

mostCurrent._mp.Load(anywheresoftware.b4a.keywords .Common.File.getDirAssets(),String.valueOf(mostCur rent._mp3list.Get(_position)));

It's not a mp3list problem..
Please help me if you can, thank you :)
 
Upvote 0

mcmanu

Active Member
Licensed User
Longtime User
same problem

I have the same Problem, sometimes it plays the mp3 file and sometimes the error message is shown. I have converted the mp3 file into a OGG file and now there is no error message but i dont like the Quality of Ogg.

Why is the mp3 file sometimes playing and sometimes get this Error message?
 
Upvote 0

mcmanu

Active Member
Licensed User
Longtime User
Thanks

Thank you Erel :) so i have to use OGG, because my hole app needs this sound :) hope i get the file with a good quality :)
 
Upvote 0
Top