[android-developers] Re: HELP : Android and GWT
Thanks I have resolved the problem To Communicate between Android and GWT I have used Java Socket; in GWT you can use Java Socket only in Server Side. --~--~-~--~~~---~--~~ 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 : Android and GWT
Hi, How Do I comunicate between Android and GWT ??? Because I want send for example a string from an Android application to a GWT application. I have tried with the Java Socket, but in GWT there isn't How Do I do ??? --~--~-~--~~~---~--~~ 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] Re: Openfire and XMPP with Android
You should add a new user: go on openfire console and click users / groups and then click on create new user. After in your code: String host = "192.168.1.2";//Localhost String port = "5222"; String service = "myserver.local"; String username = "user"; String password = "password"; // Create a connection ConnectionConfiguration connConfig =new ConnectionConfiguration (host, Integer.parseInt(port), service); XMPPConnection connection = new XMPPConnection(connConfig); try { connection.connect(); } catch (XMPPException ex) { xmppClient.setConnection(null); } try { connection.login(username, password); // Set the status to available Presence presence = new Presence(Presence.Type.available); connection.sendPacket(presence); xmppClient.setConnection(connection); } catch (XMPPException ex) { xmppClient.setConnection(null); } // Now return on Openfire Console and control if the user are online. bye --~--~-~--~~~---~--~~ 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] Openfire and XMPP with Android
Hi , I am trying to develop a simple chat in Android.. The connect and login with openfire server are ok The only thing is that , I don't know how do I do to send and receive a message from an other user. I try to create a chat between two users in this way : //Craete a chat beetwen user1 and user2 ;I Don't receive any messages ChatManager chatmanager = connection.getChatManager(); // connection port 5222 Chat newChat = chatmanager.createChat("us...@server.local", new MessageListener() { public void processMessage(Chat chat, Message message) { System.out.println("Received message: " + message.getBody()); } }); try { newChat.sendMessage("Hello from User1"); } catch (XMPPException e) {} // When the message is sent , generate an exception on User2 --~--~-~--~~~---~--~~ 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] Re: FileChooser on Android
Thanks !!! On 28 Feb, 16:50, Mark Murphy wrote: > ANDREA P wrote: > > In my code I want to open a File Chooser from a button , because when > > I click the button in the program i can choose a file from Android > > file system... > > That's fine. Consider using OI File Manager from OpenIntents.org, as it > "also acts as an extension to other applications to display "Open" and > "Save" dialogs." > > http://www.openintents.org/en/node/159 > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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] Re: FileChooser on Android
In my code I want to open a File Chooser from a button , because when I click the button in the program i can choose a file from Android file system... Thanks.. On 28 Feb, 16:38, Mark Murphy wrote: > ANDREA P wrote: > > Is there a FileChooser for Android ??? > > As a widget, no. > > > Because I want to select a file from File System and after send it. > > Consider using OI File Manager from OpenIntents.org: > > http://www.openintents.org/en/node/159 > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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] Multi Instances of Emulator
How to i do to launch 2 instances of the Emulator at the same time?? --~--~-~--~~~---~--~~ 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] FILE CHOOSER HELP
Hi, Is there a FileChooser for Android ??? Because I want to select a file from File System and after send it. 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] FileChooser on Android
Hi, Is there a FileChooser for Android ??? Because I want to select a file from File System and after send it. 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] Enable Upload on Android's Browser
How can I enalble upload on Android's Browser 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] Browser Upload
The Android's Browser allows the FileUpload ? --~--~-~--~~~---~--~~ 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 can comunicate with GWT Server ?????
Android can comunicate with GWT Server ? For example I want to send a string from an Android Applications to an external Server implemented in GWT. is it possible ??? --~--~-~--~~~---~--~~ 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] GWT application in Android
How to develop a Gwt applications in Android ??? 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] Gwt on Android
Can I create a GWT application on Android --~--~-~--~~~---~--~~ 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] Send Bitmap with Socket
I want to send a Bitmap to Server and I want to use Socket . This is my code in the Class Client::: This code save the Bitmap compressed in Jpeg in the phone , after I want send it. ContentValues values = new ContentValues(3); values.put(MediaStore.Images.Media.DISPLAY_NAME,"Esempio"); values.put(MediaStore.Images.Media.DESCRIPTION, "Esempio"); values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); // Add a new record without the bitmap, but with the values. // It returns the URI of the new record. Uri uri = getContentResolver().insert (MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); try { Bitmap sourceBitmap=BitmapFactory.decodeByteArray(img, 0, img.length); // Now get a handle to the file for that record, and save the data into it. // sourceBitmap is a Bitmap object representing the file to save to the database. OutputStream outStream = getContentResolver().openOutputStream (uri); sourceBitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream); outStream.close(); } catch (Exception e) { Log.e(TAG, "exception while writing image", e); } --~--~-~--~~~---~--~~ 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 do I do to save an Image ????
I want to save image after I make the photo with the Camera of the Emulator.. My program make a photo but don't save it. How do I do ??? 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] Save Image
I want to save image after I make the photo with the Camera of the Emulator.. My program make a photo but don't save it. How do I do ??? 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] Save Image
I want to save image after I make the photo with the Camera of the Emulator.. This is the Code this program makes a photo when you push space.but don't save it !! public class AppCam extends Activity implements SurfaceHolder.Callback { private static final String TAG = "CameraApiTest"; Camera mCamera; boolean mPreviewRunning = false; public void onCreate(Bundle icicle) { super.onCreate(icicle); Log.e(TAG, "onCreate"); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.main); mSurfaceView = (SurfaceView)findViewById(R.id.surface); mSurfaceHolder = mSurfaceView.getHolder(); mSurfaceHolder.addCallback(this); mSurfaceHolder.setType (SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } public boolean onCreateOptionsMenu(android.view.Menu menu) { MenuItem item = menu.add(0, 0, 0, "Gallery"); item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { Uri target = Uri.parse("content://media/external/ images/media"); Intent intent = new Intent(Intent.ACTION_VIEW, target); startActivity(intent); return true; } }); return true; } @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); } Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() { public void onPictureTaken(byte[] data, Camera c) { Log.e(TAG, "PICTURE CALLBACK: data.length = " + data.length); mCamera.startPreview(); } }; public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { return super.onKeyDown(keyCode, event); } if (keyCode == KeyEvent.KEYCODE_SPACE) { mCamera.takePicture(null, null,mPictureCallback); mCamera. return true; } return false; } protected void onResume() { Log.e(TAG, "onResume"); super.onResume(); } protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); } protected void onStop() { Log.e(TAG, "onStop"); super.onStop(); } public void surfaceCreated(SurfaceHolder holder) { Log.e(TAG, "surfaceCreated"); mCamera = Camera.open(); //mCamera.startPreview(); } public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { Log.e(TAG, "surfaceChanged"); // XXX stopPreview() will crash if preview is not running if (mPreviewRunning) { mCamera.stopPreview(); } Camera.Parameters p = mCamera.getParameters(); p.setPreviewSize(w, h); mCamera.setParameters(p); mCamera.setPreviewDisplay(holder); mCamera.startPreview(); mPreviewRunning = true; } public void surfaceDestroyed(SurfaceHolder holder) { Log.e(TAG, "surfaceDestroyed"); mCamera.stopPreview(); mPreviewRunning = false; mCamera.release(); } private SurfaceView mSurfaceView; private SurfaceHolder mSurfaceHolder; } --~--~-~--~~~---~--~~ 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] Camera.java
There is Camera application in Android Emulotor... The application code is Camera.java but I don't know where is it ? --~--~-~--~~~---~--~~ 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] Re: Make a photo with Android Emulator
Problem Resolved Thanks On 22 Gen, 11:18, ANDREA P wrote: > If I use the Camera of Emulator appear this text :"Please insert the > SDCARD before using the Camera" > > How do I simulate a SDCARD > > Thanks ! > > On 21 Gen, 21:06, Dave Sparks wrote: > > > You need to call startPreview() before takePicture. You also need to > > supply a PictureCallback function to receive the encoded JPEG. By > > passing null, you are telling the camera service you don't want the > > final JPEG image. > > > On Jan 21, 2:50 am, ANDREA P wrote: > > > > I want to use the camera tomakeaphotosnapshot with Android . > > > > At the beginning in my code : > > > > Camera mCamera = Camera.open(); > > > > PictureCallback callback = null; > > > mCamera.takePicture(null, null, callback); > > > > but nothing doesn't happen > > > > And if I Use the program Camera of the phone Emulator says that I have > > > to insert the SD Card. > > > > Please Help me..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] Re: Make a photo with Android Emulator
If I use the Camera of Emulator appear this text :"Please insert the SDCARD before using the Camera" How do I simulate a SDCARD Thanks ! On 21 Gen, 21:06, Dave Sparks wrote: > You need to call startPreview() before takePicture. You also need to > supply a PictureCallback function to receive the encoded JPEG. By > passing null, you are telling the camera service you don't want the > final JPEG image. > > On Jan 21, 2:50 am, ANDREA P wrote: > > > I want to use the camera tomakeaphotosnapshot with Android . > > > At the beginning in my code : > > > Camera mCamera = Camera.open(); > > > PictureCallback callback = null; > > mCamera.takePicture(null, null, callback); > > > but nothing doesn't happen > > > And if I Use the program Camera of the phone Emulator says that I have > > to insert the SD Card. > > > Please Help me..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] Make a photo with Android Emulator
I want to use the camera to make a photo snapshot with Android . At the beginning in my code : Camera mCamera = Camera.open(); PictureCallback callback = null; mCamera.takePicture(null, null, callback); but nothing doesn't happen And if I Use the program Camera of the phone Emulator says that I have to insert the SD Card. Please Help me..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] Make a video with Android
I want to make a program that recording a video in Android There is an example here http://code.google.com/intl/it-IT/android/toolbox/apis/media.html The class used is MediaRecorder. but there are many errors when I use this code in eclipse. Help me please !!! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---