rickrack Member Licensed User Longtime User Feb 16, 2012 #1 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: Feb 16, 2012
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
NJDude Expert Licensed User Longtime User Feb 16, 2012 #2 I've installed it on my device and I can play the clips but the ad is not showing because is too far down the screen. Look at this Screenshot Maybe if you posted your code we could spot the problem. Export it as a ZIP. Upvote 0
I've installed it on my device and I can play the clips but the ad is not showing because is too far down the screen. Look at this Screenshot Maybe if you posted your code we could spot the problem. Export it as a ZIP.
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2012 #3 1) Which file does he try to play? This error is probably because the media player is not able to play this file. 2) You can put the ad wherever you want. If you want to put it at the bottom you should use: Code: Copy Activity.AddView(AdView1, 0, 100%y - 50dip, 320dip, 50dip) Upvote 0
1) Which file does he try to play? This error is probably because the media player is not able to play this file. 2) You can put the ad wherever you want. If you want to put it at the bottom you should use: Code: Copy Activity.AddView(AdView1, 0, 100%y - 50dip, 320dip, 50dip)
rickrack Member Licensed User Longtime User Feb 16, 2012 #4 Thanks for replies. This is is the zipped project @Erel - what i have to write to put the ad at the bottom center ? Last edited: Feb 16, 2012 Upvote 0
Thanks for replies. This is is the zipped project @Erel - what i have to write to put the ad at the bottom center ?
NJDude Expert Licensed User Longtime User Feb 16, 2012 #5 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: Feb 16, 2012 Upvote 0
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.
NJDude Expert Licensed User Longtime User Feb 16, 2012 #6 rickrack said: what i have to write to put the ad at the bottom center ? Click to expand... You will have to add this code: Code: Copy Activity.AddView(AdView1, 0, 100%y - 50dip, 320dip, 50dip) AdView1.Left = (100%x - 320dip) / 2 Upvote 0
rickrack said: what i have to write to put the ad at the bottom center ? Click to expand... You will have to add this code: Code: Copy Activity.AddView(AdView1, 0, 100%y - 50dip, 320dip, 50dip) AdView1.Left = (100%x - 320dip) / 2
rickrack Member Licensed User Longtime User Feb 16, 2012 #7 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: Feb 16, 2012 Upvote 0
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
rickrack Member Licensed User Longtime User Feb 16, 2012 #8 Probabily it gives me the error message on the htc desire because the phone has a custom rom (cyanogenmod)? Upvote 0
Probabily it gives me the error message on the htc desire because the phone has a custom rom (cyanogenmod)?
NJDude Expert Licensed User Longtime User Feb 16, 2012 #9 I don't think so, it has to be something else, one of my phones is custom and rooted and it works, and one that is a "plain vanilla" device doesn't like it, no idea what can it be. Upvote 0
I don't think so, it has to be something else, one of my phones is custom and rooted and it works, and one that is a "plain vanilla" device doesn't like it, no idea what can it be.
rickrack Member Licensed User Longtime User Feb 17, 2012 #10 Don't worry You were very helpful, thank you! Upvote 0
rickrack Member Licensed User Longtime User Feb 17, 2012 #11 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
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
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2012 #12 It fails to read this song. You can try copying the file to the external storage and see if it changes anything. Upvote 0
It fails to read this song. You can try copying the file to the external storage and see if it changes anything.
M mcmanu Active Member Licensed User Longtime User Mar 11, 2012 #13 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
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?
Erel B4X founder Staff member Licensed User Longtime User Mar 11, 2012 #14 The native media player fails to load the song. I do not know why it happens. It is known that OGG files are better supported. Upvote 0
The native media player fails to load the song. I do not know why it happens. It is known that OGG files are better supported.
M mcmanu Active Member Licensed User Longtime User Mar 11, 2012 #15 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
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
aklisiewicz Active Member Licensed User Longtime User Jan 6, 2014 #16 can u post your code to play OGG Upvote 0
klaus Expert Licensed User Longtime User Jan 6, 2014 #17 It's the same as with other files. MP.Load(Directory, SomeFile.mp3) MP.Load(Directory, SomeFile.wav) MP.Load(Directory, SomeFile.ogg) MP.Play Upvote 0
It's the same as with other files. MP.Load(Directory, SomeFile.mp3) MP.Load(Directory, SomeFile.wav) MP.Load(Directory, SomeFile.ogg) MP.Play