On Jul 26, 11:09 am, Alexandre Ferrieux <[email protected]>
wrote:
> On Jul 24, 6:39 pm, Joseph Earl <[email protected]> wrote:
>
> > For accessing a private member you'd have to use Reflection.
> > Can't help you on the first point though I'm afraid.
>
> Thanks anyway.
>
> The solution I've come up with, is to create a pair of connected
> LocalSockets in addition to my initial Socket, and a dedicated "noria"
> thread that carries bytes from the OutputStream of the LocalSocket to
> the InputStream of the Socket. Ugly, but working. But ugly ;-)

Ah, somebody else found a more elegant solution involving
ParcelFileDescriptor:

   
http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system

Bottom line:

  ParcelFileDescriptor.fromSocket(socket).getFileDescriptor();

reaches the well-hidden jewel :)

-Alex

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to