About sending structured data between C/C++ and JAVA Code

by mak » Fri, 24 Jul 2009 13:44:53 GMT

Sponsored Links
 Hi All,

I have requirement as below:
1. I have application which creates server, executing it  and
listening on some port on Andorid.  This app is ANDROID Java Service.

2. Client to this Server is written using C/C++ Code. I am able to
communicate with server data as strings, int separately, But I need to
send Structured data packet to Server.

Questions :
1. How Can I send structured data structure between Java and C/C++
Code   ?
2. I am afraid that I can't use JNI Interfaces as both should be
talking to each other on Socket is mandatory for me. So JNI is not
feasible for me. Any other possible way.
3. How about using Serialization on Androdi ? Any inputs on it

Appreciate your input on it.

_-_Mayank Rana_-_


Other Threads

1. Download NemoPlayer.apk


Di ambil dari dump acer..

sent from Eclair 2.0.1

Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:


2. continous raw audio playback using AudioTrack.


I am trying to play raw audio samples ( 16 bit , stereo , @ 32000KHz)
using AudioTrack, in "MODE_STREAM" mode.

I could play the first video buffer successfully but, After having
received "onMarkerReached" for that raw audio buffer, I wonder how to
push more audio data in AudioTrack ? without closing/stopping it.
Writing more data to AudioTrack  in "onMarkerReached" callback does
not help.

I am using the same thread to construct the AudioTrack and pump in
audio - buffers and receive callbacks.

Any pointers would be of great help.

Ravinder Chouhan


3. How to Rooted My Magic ?

4. blocking UI thread when Yes/No AlertDialog is displayed

5. android porting imx27 - getting white screen after a long time.

6. ListView and Touch mode

7. Strange behavior using alignParentBottom in a Relative Layout for a ListView item