Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 176

miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
08/20/14 09:36 AM (10 years ago)

CP Stream: Media ERROR Unknown: -2147483648

CP Stream shows me red dot error at CP_stream.java. I edited my AndroidManifest.xml. Changes looks like this (at the end of file): -------------------------------------- <!-- BT_activity_host runs after startup and after splash screen (splash screens are not required --> <activity android:name=".BT_activity_host" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/hostThemeWithTitle" android:uiOptions="splitActionBarWhenNarrow"></activity> <activity android:name=".Cp_stream" android:configChanges="keyboardHidden|orientation" android:label="@string/app_name" android:launchMode="singleTop"> </activity> <service android:name=".Cp_streamservice" android:enabled="true" /> </application> </manifest> --------------------------------- In emulator and on device I get error: "Media ERROR Unknown: -2147483648". Red error is this line: ConnectivityManager cm = (ConnectivityManager) kumX_appDelegate.getApplication().getSystemService(Context.CONNECTIVITY_SERVICE); What could be wrong?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/20/14 11:03 AM (10 years ago)
Maybe you have a bad connection. I usually get that error when the plugin cant stream that audio type or the url is wrong. Check out vtuner.com for all of the stations you can use.at yhe top right of that site click browse all stations.make sure the radio has Mp3 as their format.it will say the format by each station.then download the file and open it with notepad or text editor to get the url
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
08/20/14 12:56 PM (10 years ago)
As soon as I import BT into Eclipse, CP_stream.java and CP_streamservice.java have errors. After that I edit AndroidManifest.xml and errors stay the same. Do you think this could have anything with connection or format? Error is evident in line 115 of CP_stream.java.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/20/14 02:24 PM (10 years ago)
No that wouldnt be the problem then. Go to Project > Clean, and select your project. If the errors on that line only show up when you run it then yeah its your connection or format.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.