• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

streaming link

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The link I have wont work on my phone but works on the emulator. can you tell me why it wont work on the phone?


 
Saloon Keeper
Posts: 7602
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anything in the logcat?
 
Tony fig
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesn't show anything when I run it on the the emulator. is there a log file i could get from the phone?
 
Tim Moores
Saloon Keeper
Posts: 7602
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Connect the phone via USB to your computer and enable USB debugging. Then "adb logcat" shows it.
 
Tony fig
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I plunged the phone in but I dont see anywhere were it isays usb debugging. all i have is debuging and when i click on that it run in the emulator. is there a waw to detect the usb phone.
 
Tony fig
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got it going and here is the err im getting from the phone


05-21 20:34:14.401 9321-9449/com.example.tony.xtreme_online_stations W/System.err: java.net.ProtocolException: Unexpected status line: ICY 200 OK
       at com.android.okhttp.internal.http.RawHeaders.setStatusLine(RawHeaders.java:108)
       at com.android.okhttp.internal.http.RawHeaders.fromBytes(RawHeaders.java:308)
       at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:135)
       at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644)
       at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)
       at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
       at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:179)
       at com.example.tony.xtreme_online_stations.MainActivity$1$1MyAsyncTask.doInBackground(MainActivity.java:404)
       at com.example.tony.xtreme_online_stations.MainActivity$1$1MyAsyncTask.doInBackground(MainActivity.java:258)
       at android.os.AsyncTask$2.call(AsyncTask.java:288)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
05-21 20:34:14.411 9321-9449/com.example.tony.xtreme_online_stations W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:841)
 
Tony fig
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the whole code.


05-21 20:33:59.911 9321-9321/com.example.tony.xtreme_online_stations E/MediaPlayer: Error (-38,0)
05-21 20:34:02.311 9321-9321/com.example.tony.xtreme_online_stations E/MediaPlayer: Should have subtitle controller already set
05-21 20:34:14.401 9321-9449/com.example.tony.xtreme_online_stations W/System.err: java.net.ProtocolException: Unexpected status line: ICY 200 OK
       at com.android.okhttp.internal.http.RawHeaders.setStatusLine(RawHeaders.java:108)
       at com.android.okhttp.internal.http.RawHeaders.fromBytes(RawHeaders.java:308)
       at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:135)
       at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644)
       at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)
       at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
       at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:179)
       at com.example.tony.xtreme_online_stations.MainActivity$1$1MyAsyncTask.doInBackground(MainActivity.java:404)
       at com.example.tony.xtreme_online_stations.MainActivity$1$1MyAsyncTask.doInBackground(MainActivity.java:258)
       at android.os.AsyncTask$2.call(AsyncTask.java:288)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
05-21 20:34:14.411 9321-9449/com.example.tony.xtreme_online_stations W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:841)
05-21 20:34:51.161 9321-9321/com.example.tony.xtreme_online_stations W/IInputConnectionWrapper: getExtractedText on inactive InputConnection
05-21 20:34:51.171 9321-9321/com.example.tony.xtreme_online_stations W/IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
 
reply
    Bookmark Topic Watch Topic
  • New Topic