[android-developers] The linked program is no longer installed on your phone ????
I am using the sharedPrefrences in my app for Registration, it work's perfect on amulator but when i install it to my device mobile and enter the name and phone no. and when i close the app and then re-open it, it show me The linked program is no longer installed on your phone. what's it can have a problem with this. any suggestion please. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Redirect my app to network setting if the device is not connected to any Network??
Hi, Please help me, my application is network base. So if my app not found any network connection it will go to network settings. how? Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] one time Registration after installation of an application??
hi, I want to register the user only one time when he use after installation and save it's name locally on mobile. how can i do this? please give any suggestion. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Desktop Sharing of my pc on my Android mobile??
Hi, I am creating an app to share my pc desktop on my android mobile. Now i am receiving the images from my pc on my mobile, but not the control of my mouse, Please can anyone tell me how to get the control of my mouse to handle my pc through my mobile. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Shift selected radioButton value from one activity to other other activity??
Hi, I want some radio button on one activity. how to submit selected radio button value from this activity to other activity, any suggestion? Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] apply restriction for installion??.
Hi, Please tell me how to apply restriction for installing the application on mobile device through programming or any other way rather then using username and password. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] when internet connection don't exists, show me massage. please help!!
Hi, My app is depends on internet, so I want that if the mobile is not connected to internet then my app show the message to the user that internet not connected and exit the application. give me any suggestion. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] connection problem with server??
hi all, My server is in running mode every time(PC server). I am connecting with my server on onCreate method and it successfully transmit data to server. but when i close my app on Android side and re-open my app but this time it will not connect to server and give me exception. I think the problem is in closing the stream, and i m close it in surfaceDestroyed() method. Please tell me is it right approach? or what can i do? Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Please provide me the Mediarecorder documentation?
hi all, Please give me the Mediarecorder documentation or The report on Mediarecorder. Please please i really need it. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to restrict my app??
hi, I want to restrict my android app to just open on specific No. of mobiles that i want. how can i do that? Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Encoder???
hi, Please anyone tell me that, which encoder i can use on onPreviewFrame to create a video, and i want to send this encoded video to network, please suggest me which encoder that android support. Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Encode frames from onPreviewFrame??
hi, I want to encode each frame and these encoded frame send to network and save it in a video file. please tell me which encoder i have to use, that supported by Android. and also suggest the link for it. Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Increase frame rate (fps) from onPreviewFrame??
hi, I am getting frames from onPreviewFrame, compress to jpeg image with YUV and send over the network(TCP), but the problem is, i want to increase the frame rate. Now it is 4fps but i want 15fps and my image size is 4- 6 kb what can i do to increase frame rate, here is my code public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); // Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Want to increase frame rate(fps), How???
hi, I am getting frames from onPreviewFrame, compress to jpeg image with YUV and send over the network, but the problem is, i want to increase the frame rate. Now it is 4fps but i want 15fps and my image size is 4- 6 kb what can i do to increase frame rate, here is my code public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); // Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to increase frame rate(fps) of onPreviewFrame ??
hi, I am getting frames from onPreviewFrame, compress to jpeg image with YUV and send over the network, but the problem is, i want to increase the frame rate. Now it is 4fps but i want 15fps what can i do to increase frame rate, here is my code public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); // Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] compress frame to QVGA from onPreviewFrame??
hi, I am getting the frames from onPreviewFrame method, and convert these frames to jpeg and send it on a network. but i want the size of each image to QVGA that is 320x240. Please tell me what is the right way to do this, but i am doing like this, Here is my code. Is this give me the result that i want. thanks public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); // Apply QVGA dimensions ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Want to increase frame rate(fps), How???
hi, I am getting frames from onPreviewFrame, compress to jpeg image with YUV and send over the network, but the problem is, i want to increase the frame rate. Now it is 4fps but i want 15fps what can i do to increase frame rate, here is my code public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); // Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] compress frame to QVGA from onPreviewFrame??
hi, I am getting the frames from onPreviewFrame method, and convert these frames to jpeg and send it on a network. but i want the size of each image to QVGA that is 320x240. Please tell me what is the right way to convert the onPreviewFrame to QVGA, but i am doing like add 320 and 240 as a parameters of Rect , Here is my code. Is this give me the result that i want. thanks public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format ==ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h,null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); // Apply QVGA dimensions ByteArrayOutputStream output_stream = newByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to increase frame per second ??
hi, I am getting frames from onPreviewFrame, compress to jpeg image with YUV and send over the network, but the problem is, i want to increase the frame rate. Now it is 4fps but i want 15fps what can i do to increase frame rate, here is my code public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); // Log.d(TAG, onPictureTaken - wrote bytes: + data.length); } catch (FileNotFoundException e) { // 10 e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] compress frame to QVGA from onPreviewFrame??
hi, I am getting the frames from onPreviewFrame method, and convert these frames to jpeg and send it on a network. but i want the size of each image to QVGA that is 320x240. Please tell me what is the right way to do this, but i am doing like this, Here is my code. Is this give me the result that i want. thanks public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, 320, 240); // Apply QVGA dimensions ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 30, output_stream); byte[] byt=output_stream.toByteArray(); Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] YUV to h263/h264 compression on android to stream video
hi, I am trying stream video from android to network and receiving it on a server that I had written in java. I am capturing YUV data on onPreviewFrame method on Camera convert with yuv in jpeg and sending it to the server where I convert this data to image and displaying it. Everything works fine but the problem is that there is a lot much delay and size of images in the streaming process as I am sending the data directly. Is there some way of encoding this YUV data to h263 or h264 format so that I can minimize the delay and the size of images? Also MediaRecorder have ability to record the video in the available standard video format but it stores the video to a file on sdcard. Is there any way of getting a stream from that video which is being recorded so that I can stream it to the network? This will reduce my efforts in conversion process. here is my code for conversion. public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, w, h); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 100, output_stream); byte[] byt=output_stream.toByteArray(); and send these bytes to network. how to reduce the size of images in KB and also delay? Thanks -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to compress images in onPreviewframe??
hi, I am trying stream video from android to network and receiving it on a server that I had written in java. I am capturing YUV data on onPreviewFrame method on Camera convert with yuv in jpeg and sending it to the server where I convert this data to image and displaying it. verything works fine but the size of the image is too large in KB to send on network that are 20-30 kb, I want to reduce the size(KB) approximately 2-3 kb. please tell me how can i reduce the size? Is it possible? Thanks and regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onPreviewFrame got Exception???
hi, I am sending the onpreviewFrame byte array to socket. it send the first image but due to onPreviewframe callback it does not send any image and go to Exception. I want to send images to socket continuously. what's the reason. Here is my code logCat result public void surfaceCreated(SurfaceHolder holder) { // The Surface has been created, acquire the camera and tell it where // to draw. //connection to server try { socket = new Socket(192.168.1.220, ); obj = new ObjectOutputStream(socket.getOutputStream()); } catch (UnknownHostException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } camera = Camera.open(); try { camera.setPreviewDisplay(holder); camera.setPreviewCallback(new PreviewCallback() { // Called for each frame previewed // @SuppressWarnings(null) public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, w, h); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 100, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } }); obj.close(); } catch (IOException e) { e.printStackTrace(); } } /according to logCat 01-08 17:52:07.033: ERROR/mm-camera 7x-vfe(3726): Received VFE Stop ACK!!! ctrlCmd is NULL 01-08 17:52:07.533: ERROR/mm-camera(3726): +++ DELETING LEAKED MEMORY AT 0x2c790 (2 REMAINING) 01-08 17:52:07.533: ERROR/mm-camera(3726): 6 0xa742e2fc 01-08 17:52:07.533: ERROR/mm-camera(3726): 5 0xa740cd0a 01-08 17:52:07.533: ERROR/mm-camera(3726): 4 0xa740e576 01-08 17:52:07.533: ERROR/mm-camera(3726): 3 0xa740e066 01-08 17:52:07.533: ERROR/mm-camera(3726): 2 0xafd110b0 01-08 17:52:07.533: ERROR/mm-camera(3726): 1 0xafd10b94 01-08 17:52:07.533: ERROR/mm-camera(3726): +++ DELETING LEAKED MEMORY AT 0x2e648 (1 REMAINING) 01-08 17:52:07.533: ERROR/mm-camera(3726): 6 0xa742e2fc 01-08 17:52:07.543: ERROR/mm-camera(3726): 5 0xa740cd0a 01-08 17:52:07.543: ERROR/mm-camera(3726): 4 0xa740e576 01-08 17:52:07.543: ERROR/mm-camera(3726): 3 0xa740e066 01-08 17:52:07.543: ERROR/mm-camera(3726): 2 0xafd110b0 01-08 17:52:07.543: ERROR/mm-camera(3726): 1 0xafd10b94 01-08 17:52:18.223: ERROR/QualcommCameraHardware(3726): native_access_parm: error (No such file or directory): fd 12, type 1, length 32, status 0 01-08 17:52:18.523: ERROR/mm-camera 7x-vfe(3726): Received VFE start ACK!!! This is a user preview start. Thanks -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onPreviewFrame got Exception???
hi, Please anyone tell me that when onPreviewFrame call it send first frame of the preview to socket but when it callback it get exception and does send any frame to socket, I want to send images from onPreviewFrame continuously. Please tell me what's the reason, and sorry for my English. Here is my code. public void surfaceCreated(SurfaceHolder holder) { // The Surface has been created, acquire the camera and tell it where // to draw. //connection to server try { socket = new Socket(192.168.1.220, ); obj = new ObjectOutputStream(socket.getOutputStream()); } catch (UnknownHostException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } camera = Camera.open(); try { camera.setPreviewDisplay(holder); camera.setPreviewCallback(new PreviewCallback() { // Called for each frame previewed // @SuppressWarnings(null) public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, w, h); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 100, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } }); } catch (IOException e) { e.printStackTrace(); } } Thanks and regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to debug the code when using camera of device(mobile)
hi, I want to debug the code when i using the camera of the mobile. how can i debug it on a device. Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to send onPreviewframe jpeg image continuously to server??????
hi, I am creating an app to send onPreviewframe image byte array continuously to server, but only on image is transfer to server. I am stuck here please tell me what i have to do for this situation. //here is my android onpreviewframe code/// public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, w, h); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 100, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); obj.close(); } catch (FileNotFoundException e) { // 10 e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onPreviewFrame
hi, I am creating an app to send onPreviewframe images byte array continuously to server, but only one image is transfer to server. I am stuck here please tell me what i have to do for sending all images to server with this onPreviewFrame. //here is my android onpreviewframe code/// public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, w, h); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 100, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); obj.close(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to reduce the size of image in (kb) from Camera onpreviewframe???
Hi, My requirement is to save the space on SD Card, so i want to create an app to take picture of size 1kb, is it possible, and if it is possible then what can i do. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to reduce the size of image from Camera onPreviewFrame !!!!!
Hi, My requirement is to save the space on SD Card, so i want to create an app to take picture of size 1kb, is it possible, and if it is possible then what can i do. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to save video file through Mediarecorder on SD Card when mobile is crack during recording?????
Hi, I want to create an app, that record video from my camera through Mediarecorder API. Is Mediarecorder support to create a video file when my mobile is turned off or crack during recording or how can i handle this myself. Thanks and Regards, umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Anyone help me! Send Mediarecorder video to server through TCP socket and server save it in a file????
Hi, I am succeed to record video through Mediarecorder on SD card but i want to send this video to pc server without writing to SD card. I search it and i found the parcelFileDescriptor is the way to send video to TCP socket but i don't know how to receive it on server side please explain it. here is my client side code socket = new Socket(192.168.15.220, ); ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); recorder = new MediaRecorder(); recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(pfd.getFileDescriptor()); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); mPreview = new Preview(VideoRecorder.this,recorder); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setContentView(mPreview); I want to receive it on server side and save it to file.Is it possible? Please help me. I want a server side code. Thanks and Regards Umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Capture video with onPreviewFrame and send over TCP Socket????
Hi, I am using the TCP socket to send data to my desktop server. but first i want to convert the NV21 format to 3gp form also compress it and create the byte array of this frame to send over a TCP socket. then the server will write this live to video file. /// Here is my client side code public void onPreviewFrame(byte[] data, Camera camera) { / how to encode this byte array data, convert this NV21 format to 3gp video formate and send this video to server DataOutputStream dos = new DataOutputStream(socket.getOutputStream()); //BufferedOutputStream imagebos = new BufferedOutputStream(dos); dos.writeInt(len); if (len 0) { /// this will write to socket imagebos.write(myByteArray, start, len); } I really need your help, I am stuck here for to many days. please help me. Thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] help me! how to send video to TCP socket server??
Hi, I am succeed to record video through Mediarecorder on SD card but i want to send this video to pc server without writing to SD card. I search it and i found the parcelFileDescriptor is the way to send video to TCP socket but i don't know how to receive it on server side please explain it. here is my client side code socket = new Socket(192.168.15.220, ); ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); recorder = new MediaRecorder(); recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(pfd.getFileDescriptor()); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); mPreview = new Preview(VideoRecorder.this,recorder); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setContentView(mPreview); I want to receive it on server side and save it to file.Is it possible? Please help me. I want a server side code. Thanks and Regards Umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android camera video send through TCP socket to Server???
Hi, I am succeed to record video through Mediarecorder on SD card but i want to send this video to pc server without writing to SD card. I search it and i found the parcelFileDescriptor is the way to send video to TCP socket but i don't know how to receive it on server side please explain it. here is my client side code socket = new Socket(192.168.15.220, ); ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); recorder = new MediaRecorder(); recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(pfd.getFileDescriptor()); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); mPreview = new Preview(VideoRecorder.this,recorder); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setContentView(mPreview); I want to receive it on server side and save it to file.Is it possible? Please help me. I want a server side code. Thanks and Regards Umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] help me!! MediaRecorder record video and send to server?is it possible??
Hi, I am succeed to record video through Mediarecorder on SD card but i want to send this video to pc server without writing to SD card. I search it and i found the parcelFileDescriptor is the way to send video to TCP socket but i don't know how to receive it on server side please explain it. here is my client side code socket = new Socket(192.168.15.220, ); ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); recorder = new MediaRecorder(); recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setOutputFile(pfd.getFileDescriptor()); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); mPreview = new Preview(VideoRecorder.this,recorder); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setContentView(mPreview); I want to receive it on server side and save it to file.Is it possible? Please help me. I want a server side code. Thanks and Regards Umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Please help me!!! how to create video file on server side by send onPreviewFrames byte array
Hi, i am able to create images on sd card with onPreviewFrame by converting the raw byte array to Yuvimage and then compressing it to jpeg format and then write in a file. this work perfectly. but i want to send these preview frames to server and recored in a video file. please help me, I m stuck here thanks and Regards umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MediaRecorder send video over TCP socket,how can I recive it on server side??? HELP
Hi, I found Mediarecorder that record video, i also found that parcelFileDescriptor fromSocket can use to send video over TCP but I am not able to send this video and recieve on a server side. Mediarecorder parcelFileDescriptor fromSocket that perfect to record video on sd card but when i send it to socket it doesn't receive on server side and not create a file, please guide me how can receive this video on server side and how can i store in a video file. Thanks UMER -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I save image on sd card with onpreviewfame??????
Hi, please tell me with the code example, how can we save images on sd card from OnperviewFrame(byte[] data, Camera camera) what can we do with this data byte array, to store as image on sd card. I know i want to decode it but not succeed.please please give me the code example to do this. Thanks and Regards, Umer -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need Your Help: How to send video of mediarecorder over TCP and How can i receive this on server side.
Hi, I found Mediarecorder that record video, i also found that parcelFileDescriptor fromSocket can use to send video over TCP but I am not able to send this video and recieve on a server side. Mediarecorder parcelFileDescriptor fromSocket that perfect to record video on sd card but when i send it to socket it doesn't receive on server side and not create a file, please guide me how can receive this video on server side and how can i store in a video file. Thanks UMER -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MediaRecorder send video over TCP socket
hi, Please please help me. i have found 2 method for android video camera recording to pc but i m stuck to create a file on server side. these 2 methods are 1) Mediarecorder parcelFileDescriptor fromSocket that perfect to record video on sd card but when i send it to socket, it doesn't receive on server side and not create a video file.How can i receive this video on server side, is it possible? 2) OnperviewFrame(byte[] data, Camera camera) i am succeed to send this byte array in a file on server side that is not a playable. I want to create a video file that is in a correct format and playable. I really need your help because i am a student and i m doing my project. thanks and Regards sahil -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] video streaming from android(client) to pc(server)
hi, i am a student and i have a project on video streaming. capture a video from android camera and send it live to my server. and server save this video in a file. I am to much familiar with java but starting with android development. Please tell me which API's that i should use to capture a video from android camera and during capture a video it will transform it and send in the form of packets or any other way through GPRS to server. A server is in waiting state every time it collect these packet and combine it and save it in a file. please any one how have experienced with this type of project help me.please please please i really need it. Regards, -- 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en