MediaPlayer stops playing when streaming over 3G on the Nexus One

by henrik » Fri, 23 Apr 2010 16:12:14 GMT


Sponsored Links
 


Another small thing:  It doesn't matter whether the Nexus One is
sleeping or not.  I happens even though I set the device and screen to
never sleep.

Henrik

--



MediaPlayer stops playing when streaming over 3G on the Nexus One

by henrik » Fri, 23 Apr 2010 18:35:36 GMT


 


Here's another thing.  When I'm on 3G on the Nexus One, I get a
SocketException when it starts buffering.  I guess I get a chunk of
the song, then it fails.  MediaPlayer also continuously call
onBufferingUpdate(), which doesn't happen on Wifi.

E/HttpServer( 1525): java.net.SocketException: The connection was
reset
E/HttpServer( 1525):    at
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl(Native
Method)
E/HttpServer( 1525):    at
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream(OSNetworkSystem.java:
478)
E/HttpServer( 1525):    at
org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:
565)
E/HttpServer( 1525):    at
org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:
87)
E/HttpServer( 1525):    at
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:
103)
E/HttpServer( 1525):    at
org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:
134)
E/HttpServer( 1525):    at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:
174)
E/HttpServer( 1525):    at
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:
159)
E/HttpServer( 1525):    at
java.io.BufferedInputStream.read(BufferedInputStream.java:341)
E/HttpServer( 1525):    at
org.apache.http.entity.InputStreamEntity.writeTo(InputStreamEntity.java:
92)
E/HttpServer( 1525):    at
org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:
97)
E/HttpServer( 1525):    at
org.apache.http.impl.AbstractHttpServerConnection.sendResponseEntity(AbstractHttpServerConnection.java:
182)
E/HttpServer( 1525):    at
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:
209)
E/HttpServer( 1525):    at my.player.http.HttpServer
$WorkerThread.run(HttpServer.java:93)

Best regards,
Henrik

--


Sponsored Links


MediaPlayer stops playing when streaming over 3G on the Nexus One

by henrik » Fri, 23 Apr 2010 19:45:47 GMT


 


I switched to our secondary streaming server, and things started to
work again.  I have no idea why, because it's supposed to be
identical.

Henrik

--



MediaPlayer stops playing when streaming over 3G on the Nexus One

by prabhakaran sambasivam » Fri, 23 Apr 2010 19:55:54 GMT


 *Avoid using so many threads that may leads to such kind of probs usually...
*




>



Other Threads

1. Solution To close Application in G1 or even Emulator

1- first of all you should download terminal emulator fro Android
market  http://www.android.com/market/
2-run terminal emulator
3-just type ps (show all running process)
e.g

USER       PID   PPID  VSIZE     RSS     WCHAN    PC
NAME
app_13    295   23     119720   30612  ffffffff        afe0c824 S
com.android.browser

4-find the application you want to close suing it's name from proccess
list
5-just type kill pid
e.g
kill 295

That's it

Ahmed Hammad

--~--~---------~--~----~------------~-------~--~----~

2. No resource found

i am trying to get my first program to run but it keeps saying no
resource found that matches the given name strings/main_title" he is
what i have so far
<TextView
                android:text="@strings/main_title"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_gravity="center"
                android:layout_marginBottom="25dip"
                android:textsize="24.5sp"       />

the strings folder looks like this

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">Sudoku</string>
        <string name="main_title">Android Sudoku</string>
        <string name="continue_lable">Continue</string>
        <string name="new_game_lable">New Game</string>
        <string name="about_lable">About</string>
        <string name="exit_lable">Exit</string>
</resources>

please help

--~--~---------~--~----~------------~-------~--~----~

3. how to let my shared library, libhello.so, work

4. video playing

5. ListView for XML data

6. orientation change crashes when ids are not unique

7. How can I import any widgets under com.android.internal.widget into my app?