and i m very new on this android developing.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr.
*Creating a Bluetooth client socket*
**private void connectToServerSocket( BluetoothDevice device, UUID uuid) {
try{ BluetoothSocket clientSocket =
device.createRfcommSocketToServiceRecord( uuid);
// Block until server connection accepted.
clientSocket.connect();
// Start listening for
i want send a file so what changes i have to make.?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+un
Change this:
InputStream instream = socket.getInputStream();
to this:
*OutputStream outstream = socket.getOutputStream();*
Change this:
instream.read( buffer);
to this:
*outstream.write( buffer);*
On Thursday, October 11, 2012 12:26:43 AM UTC-5, akash roy wrote:
>
> i want send a file so
thanx bob i did that already...here is my sample code :
sender :
File myFile = new File(message.toURI());
nosofpackets=Math.ceil(( (int)myFile.length())/4096);
//mChatService.writeda(
message.getName(), myFile.length());
for(double i=0; i0){
L
5 matches
Mail list logo