SocketChannel, broken pipe exception - Cupcake only

by moju27 » Fri, 23 Apr 2010 11:23:34 GMT

Sponsored Links
 Hello :)

I'm currently writing an application to communicate with my server app
which is on a PC on the LAN. I'm using a SocketChannel and it causes
an IO exception (broken pipe). The weird and really problematic part
is that this exception only occurs on Cupcake !!!

To give more details, the exception happens when I'm writing on the
socket channel. The socket channel says that it's connected / bound,
everything seems to be correct. Plus I see my client on the server
By the way, I use a non blocking socket.

So, I would be very happy if anyone had a clue regarding this ... I
couldn't find any help anywhere else.




Other Threads

1. ProgressDialog with custom Drawable (IndeterminateDrawable)


I'd like to change the rotating image inside the ProgressDialog.

In the documentation this is suggested:

ProgressDialog dialog =, "", "Loading. Please
wait...", true);

This can be changed with:

ProgressDialog dialog = new ProgressDialog(this);
dialog.setMessage("Loading. Please wait...");

Now I want to change the drawable:

The progress_medium.xml is based on the file in platforms

<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android=""
        android:pivotX="50%" android:pivotY="50%" android:fromDegrees="0"

        <shape android:shape="ring" android:innerRadiusRatio="3"
                android:thicknessRatio="8" android:useLevel="false">

                <size android:width="48dip" android:height="48dip" />

                <gradient android:type="sweep" android:useLevel="false"
                        android:centerY="0.50" android:endColor="#ffff8000" />


But the thing isn't rotating. There is no animation at all.

Who helps me?

Marco Schmitz


2. getStreamVolume() returns 0 intermittently

We have an app that plays and records audio using AudioRecord and
AudioTrack, and also uses the 2.2 requestAudioFocus() API for audio

We also use the AudioManager.getStreamVolume() call to determine if
the user has their volume control all the way down (as sometimes
happens) and to issue a warning.

Sometimes when recording, playback, and audio focusing is all going on
at the same time or in quick succession, this function returns 0. We
reproduce this via quick repeated presses of the Record button on our
app HeyTell v1.0.7 (it happens one out of about 5 times on a Motorola


3. path appearing twice on map canvas

4. Eclipse Helios running SLOW

5. Eliminate cache or create size options

6. How to disable any android application.

7. Spinner Disable/Invisible And Auto Adjust the Other widgets Under the invisible/diabled one