[android-developers] Re: Unable to open my own apk
Thanks for your answer. - 1st question : The way you describe is exactly what I did to obtain the 3 values I gave in my question : Microsoftware version : 2.1-update 1 Kernel version : 2.6.29 Build version : 2.0.2.A.0.24 That's the reason why I asked : What is the version of my android in those 3 values ? - 2nd question : Same result after deleting of the bin directory and rebuild Thanks again. -- 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: How to Increase frame rate (fps) from onPreviewFrame??
muhammad.ume...@hotmail.com wrote: 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 why don't you use MediaRecorder for video capture? pskink -- 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: Encoder???
muhammad.ume...@hotmail.com wrote: 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] Re: Unable to open my own apk
The Android version is 2.1, which API Level 7. Make sure that in your Manifest, you have: uses-sdk android:minSdkVersion=7 android:targetSdkVersion=15/ The important value is the minSdkVersion. On Jan 24, 4:08 pm, Rémy CASTALDI remy.casta...@gmail.com wrote: Thanks for your answer. - 1st question : The way you describe is exactly what I did to obtain the 3 values I gave in my question : Microsoftware version : 2.1-update 1 Kernel version : 2.6.29 Build version : 2.0.2.A.0.24 That's the reason why I asked : What is the version of my android in those 3 values ? - 2nd question : Same result after deleting of the bin directory and rebuild Thanks again. -- 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
Re: [android-developers] Runtime exception while audio recording
A couple of things to try: 1. Make sure permission is set in your manifest: uses-permission android:name=android.permission.RECORD_AUDIO/ 2. Make sure the source file's permissions are okay 3. Try calling reset() on the MediaRecorder prior to setting the source. On Fri, Jan 20, 2012 at 11:55 AM, Raneez rane...@gmail.com wrote: I get the following error while trying to record audio: E/AndroidRuntime(759): java.lang.RuntimeException: setAudioSource failed. E/AndroidRuntime(759): at android.media.MediaRecorder.setAudioSource(Native Method)). Please help me out. -- 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 -- 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
RE: [android-developers] Re: How to Increase frame rate (fps) from onPreviewFrame??
hi, Thanks for your kind reply, I studied about MediaRecorder to capture video, but i want to send video to my server (TCP socket) live. and save this video on a file. also i found that, the ParcelFileDescriptor.fromSocket(socket) can be use to send the video but i don't know, how to recieve it on server side. if you have any idea about please reply me. Thanks and Regards. umer Date: Tue, 24 Jan 2012 00:22:10 -0800 Subject: [android-developers] Re: How to Increase frame rate (fps) from onPreviewFrame?? From: psk...@gmail.com To: android-developers@googlegroups.com muhammad.ume...@hotmail.com wrote: 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 why don't you use MediaRecorder for video capture? pskink -- 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 -- 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
RE: [android-developers] Re: Encoder???
hi, I recive your reply empty ,Please can you do it again. Thanks umer Date: Tue, 24 Jan 2012 00:35:18 -0800 Subject: [android-developers] Re: Encoder??? From: psk...@gmail.com To: android-developers@googlegroups.com muhammad.ume...@hotmail.com wrote: 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 -- 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: Encoder???
On Jan 24, 10:15 am, Muhammad UMER muhammad.ume...@hotmail.com wrote: hi, I recive your reply empty ,Please can you do it again. Thanks umer Date: Tue, 24 Jan 2012 00:35:18 -0800 Subject: [android-developers] Re: Encoder??? From: psk...@gmail.com To: android-developers@googlegroups.com muhammad.ume...@hotmail.com wrote: 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 sorry, I wanted to say to use MediaRecorder pskink -- 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
Re: [android-developers] Re: How to Increase frame rate (fps) from onPreviewFrame??
Muhammad UMER wrote: also i found that, the ParcelFileDescriptor.fromSocket(socket) can be use to send the video but i don't know, how to recieve it on server side. if you have any idea about please reply me. just little googling gives the answer for your problem pskink -- 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
RE: [android-developers] Re: Encoder???
hi, Thanks for your kind reply, I studied about MediaRecorder to capture video, but i want to send video to my server (TCP socket) live. and save this video on a file. also i found that, the ParcelFileDescriptor.fromSocket(socket) can be use to send the video but i don't know, how to recieve it on server side. if you have any idea about please reply me. e.g, pfd = ParcelFileDescriptor.fromSocket(socket); recorder.setOutputFile(pfd.getFileDescriptor()); Thanks and Regards. umer Date: Tue, 24 Jan 2012 01:18:49 -0800 Subject: [android-developers] Re: Encoder??? From: psk...@gmail.com To: android-developers@googlegroups.com On Jan 24, 10:15 am, Muhammad UMER muhammad.ume...@hotmail.com wrote: hi, I recive your reply empty ,Please can you do it again. Thanks umer Date: Tue, 24 Jan 2012 00:35:18 -0800 Subject: [android-developers] Re: Encoder??? From: psk...@gmail.com To: android-developers@googlegroups.com muhammad.ume...@hotmail.com wrote: 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 sorry, I wanted to say to use MediaRecorder pskink -- 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 -- 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] Contact Number
Hi, I am a newbie to android and while developing i got stuck up at a point and there by i could not move further.Please some one help me to solve my problem. My problem is as follows.. I wanna get the phone number of a particular contact into the edit text i.e., When i select a contact from the contacts, the phone number of the selected contact should get displayed in the EditText box..I had gone to the extent of opening the contacts, and now i can't find the way to pick the number and then get it in to the edittext. Thank you, Bharath -- 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: Unable to open my own apk
Thanks a lot. It works perfectly ! I didn't know this parameter to manage versioning. Thanks again. -- 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
Re: [android-developers] Re: Encoder???
Muhammad UMER wrote: hi, Thanks for your kind reply, I studied about MediaRecorder to capture video, but i want to send video to my server (TCP socket) live. and save this video on a file. also i found that, the ParcelFileDescriptor.fromSocket(socket) can be use to send the video but i don't know, how to recieve it on server side. if you have any idea about please reply me. e.g, pfd = ParcelFileDescriptor.fromSocket(socket); recorder.setOutputFile(pfd.getFileDescriptor()); http://mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system pskink -- 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
Re: [android-developers] Re: Encoder???
Muhammad UMER wrote: also i found that, the ParcelFileDescriptor.fromSocket(socket) can be use to send the video but i don't know, how to recieve it on server side. if you have any idea about please reply me. e.g, pfd = ParcelFileDescriptor.fromSocket(socket); recorder.setOutputFile(pfd.getFileDescriptor()); http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system -- 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
Re: [android-developers] Is Android developers website down?
Cool. Thanks guys. Apparently, it was my ISP problem. On Tue, Jan 24, 2012 at 7:17 AM, Oli Wright oli.wri...@gmail.com wrote: No issues here connecting using sky broadband or 3 mobile broadband in London. -- 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 -- 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
Re: [android-developers] Contact Number
Hi, 1) You should call the contact picker using startActivityForResult 2) You should override onActivityResult and parse the data returned from the contact picker. Something like: ... Uri result = data.getData(); String id = result.getLastPathSegment(); Cursor cursor = getContentResolver().query(Phone.CONTENT_URI, null, Email.CONTACT_ID + =?, new String [] { id }, null); int numberIdx = cursor.getColumnIndex(Phone.DATA); if (cursor.moveToFirst()) { String number = cursor.getString(numberIdx); yourEditText.setText(number); } Don't forget to verify that the activityResult are returned from the contact picker and the result code is ok. Hope this helps /Yaron On 01/24/2012 11:31 AM, Bharath kumar Thota wrote: Hi, I am a newbie to android and while developing i got stuck up at a point and there by i could not move further.Please some one help me to solve my problem. My problem is as follows.. I wanna get the phone number of a particular contact into the edit text i.e., When i select a contact from the contacts, the phone number of the selected contact should get displayed in the EditText box..I had gone to the extent of opening the contacts, and now i can't find the way to pick the number and then get it in to the edittext. Thank you, Bharath -- 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
Re: [android-developers] Contact Number
Hi, Thanks for the help, Could be some more clear in the ans please becoz I did not get the requirement. On Tue, Jan 24, 2012 at 3:28 PM, poncho poncho...@gmail.com wrote: Hi, 1) You should call the contact picker using startActivityForResult 2) You should override onActivityResult and parse the data returned from the contact picker. Something like: ... Uri result = data.getData(); String id = result.getLastPathSegment(); Cursor cursor = getContentResolver().query(**Phone.CONTENT_URI, null, Email.CONTACT_ID + =?, new String [] { id }, null); int numberIdx = cursor.getColumnIndex(Phone.**DATA); if (cursor.moveToFirst()) { String number = cursor.getString(numberIdx); yourEditText.setText(number); } Don't forget to verify that the activityResult are returned from the contact picker and the result code is ok. Hope this helps /Yaron On 01/24/2012 11:31 AM, Bharath kumar Thota wrote: Hi, I am a newbie to android and while developing i got stuck up at a point and there by i could not move further.Please some one help me to solve my problem. My problem is as follows.. I wanna get the phone number of a particular contact into the edit text i.e., When i select a contact from the contacts, the phone number of the selected contact should get displayed in the EditText box..I had gone to the extent of opening the contacts, and now i can't find the way to pick the number and then get it in to the edittext. Thank you, Bharath -- 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.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- 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: How to reload app without restarting emulator
Just re-built your project and select run as android app, even if your old app is currently running on the emulator, it'll will reinstall the new app and old one will be deleted itself (no need to uninstall your app from emulator). To check this process See CONSOLE while app is getting installed on emultor. You'll get complete detail over there what exactly happening while installing. At any case it shows red line saying unable to install, showing last activity, then only you need to uninstall your app from emulator. Hope you got what I mean. Have Fun. On Jan 24, 11:52 am, Etienne lawloretie...@gmail.com wrote: To reload an app without restarting emulator, just uninstall the app on the emulator, then in Eclipse choose to run the application. This will reinstall the application and run the latest version of your app on the current emulator. This is the fastest process of reloading an app that I have discovered. Has anyone else been able to reload an app with a faster process? -- 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: Possible to protect settings menu with an android app?
That would make sense. At the application level it is an invitation to chaos. Chris On Jan 23, 7:38 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I assume the real requirement is prevent employees with messing with the phone's settings. IMO, this should probably a part of the android.app.admin package. Seems like a common and reasonable thing to restrict. On Jan 24, 8:18 am, Chris Mawata chris.maw...@gmail.com wrote: Actually my employer told me to create an android app that prevents other apps from blocking access to the settings menus. Do you see this couldn't possible work? There are shared aspects of the framework that no one app should have hegemony over. On Jan 23, 1:35 pm, Yar Lag ya...@hotmail.com wrote: My employer has told me to create an android app to do the following: The ability to password protect specific submenus in the Settings menu (i.e. specifically Privacy, Applications, and Location Security). Is this possible without rooting?- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - -- 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: Failed to register input channel
Anyone? On Jan 23, 11:38 am, William Ferguson william.ferguson...@gmail.com wrote: I get about one of these errors occurring roughly every 50,000 app starts, so it's starting to occur pretty regularly now. I have never managed to make it occur on a local device so I can't check the logs for details. The only other mention on the list was 6+ months ago and Nikolay didn't get much response then. Is any else seeing this or know what it means and how to combat it? I suspect it's a race condition with Activity destruction, bit I'm already checking if the Activity has been closed in JumbleeActivity#showDialogSafely before I attempt showDialog so I'm not sure what else I can do. William java.lang.RuntimeException: Failed to register input channel. Check logs for details. at android.view.InputQueue.nativeRegisterInputChannel(Native Method) at android.view.InputQueue.registerInputChannel(InputQueue.java:92) at android.view.ViewRoot.setView(ViewRoot.java:595) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:203) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:117) at android.view.Window$LocalWindowManager.addView(Window.java:424) at android.app.Dialog.show(Dialog.java:241) at android.app.Activity.showDialog(Activity.java:2572) at android.app.Activity.showDialog(Activity.java:2530) at au.com.xandar.jumblee.JumbleeActivity.showDialogSafely(JumbleeActivity.java : 195) at au.com.xandar.android.os.DialogTaskManager.preExecute(DialogTaskManager.jav a: 78) at au.com.xandar.android.os.SimpleDialogTask.onPreExecute(SimpleDialogTask.jav a: 39) at au.com.xandar.android.os.SimpleAsyncTask.execute(SimpleAsyncTask.java: 46) at au.com.xandar.android.os.DialogTaskManager.executeTask(DialogTaskManager.ja va: 66) at au.com.xandar.jumblee.game.GameActivity$3.onClick(GameActivity.java: 272) at android.view.View.performClick(View.java:2574) at android.view.View$PerformClick.run(View.java:9238) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3691) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:907) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665) at dalvik.system.NativeStart.main(Native Method) -- 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
Re: [android-developers] Re: Failed to register input channel
Device or Emulator ? Logcat ... DDMS ... is checked? 2012/1/24 William Ferguson william.ferguson...@gmail.com Anyone? On Jan 23, 11:38 am, William Ferguson william.ferguson...@gmail.com wrote: I get about one of these errors occurring roughly every 50,000 app starts, so it's starting to occur pretty regularly now. I have never managed to make it occur on a local device so I can't check the logs for details. The only other mention on the list was 6+ months ago and Nikolay didn't get much response then. Is any else seeing this or know what it means and how to combat it? I suspect it's a race condition with Activity destruction, bit I'm already checking if the Activity has been closed in JumbleeActivity#showDialogSafely before I attempt showDialog so I'm not sure what else I can do. William java.lang.RuntimeException: Failed to register input channel. Check logs for details. at android.view.InputQueue.nativeRegisterInputChannel(Native Method) at android.view.InputQueue.registerInputChannel(InputQueue.java:92) at android.view.ViewRoot.setView(ViewRoot.java:595) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:203) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:117) at android.view.Window$LocalWindowManager.addView(Window.java:424) at android.app.Dialog.show(Dialog.java:241) at android.app.Activity.showDialog(Activity.java:2572) at android.app.Activity.showDialog(Activity.java:2530) at au.com.xandar.jumblee.JumbleeActivity.showDialogSafely(JumbleeActivity.java : 195) at au.com.xandar.android.os.DialogTaskManager.preExecute(DialogTaskManager.jav a: 78) at au.com.xandar.android.os.SimpleDialogTask.onPreExecute(SimpleDialogTask.jav a: 39) at au.com.xandar.android.os.SimpleAsyncTask.execute(SimpleAsyncTask.java: 46) at au.com.xandar.android.os.DialogTaskManager.executeTask(DialogTaskManager.ja va: 66) at au.com.xandar.jumblee.game.GameActivity$3.onClick(GameActivity.java: 272) at android.view.View.performClick(View.java:2574) at android.view.View$PerformClick.run(View.java:9238) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3691) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:907) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665) at dalvik.system.NativeStart.main(Native Method) -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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] SlidingDrawer - Setting height moves the view up
Hi, i'm having a problem: i've created a sliding drawer with a specific height, at the bottom of the screen. The problem is, when the height of the SlidingDrawer is set as fill_parent, everything works great, but when i set the height as for instance, 150dip, the SlidingDrawer moves to the top of the screen.. is that a common issue? I can't seem to find any user with same problem :S My code btw: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content SlidingDrawer android:id=@+id/drawer android:layout_height=200dip android:layout_width=fill_parent android:content=@+id/content android:handle=@+id/handle ImageView android:id=@+id/handle android:layout_height=wrap_content android:layout_width=wrap_content android:src=@drawable/ ntrack/ImageView LinearLayout android:layout_height=fill_parent android:id=@+id/ content android:layout_width=fill_parent android:orientation=vertical TextView android:id=@+id/txt android:text=This is some text android:layout_width=wrap_content android:layout_height=wrap_content /TextView Button android:id=@+id/btn android:text=Click Me android:onClick=ClickHandler android:layout_width=wrap_content android:layout_height=wrap_content/Button /LinearLayout /SlidingDrawer /RelativeLayout -- 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: SlidingDrawer - Setting height moves the view up
http://developer.android.com/guide/practices/screens_support.html On 24 jan, 08:42, joaocruz04 jtcru...@gmail.com wrote: Hi, i'm having a problem: i've created a sliding drawer with a specific height, at the bottom of the screen. The problem is, when the height of the SlidingDrawer is set as fill_parent, everything works great, but when i set the height as for instance, 150dip, the SlidingDrawer moves to the top of the screen.. is that a common issue? I can't seem to find any user with same problem :S My code btw: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content SlidingDrawer android:id=@+id/drawer android:layout_height=200dip android:layout_width=fill_parent android:content=@+id/content android:handle=@+id/handle ImageView android:id=@+id/handle android:layout_height=wrap_content android:layout_width=wrap_content android:src=@drawable/ ntrack/ImageView LinearLayout android:layout_height=fill_parent android:id=@+id/ content android:layout_width=fill_parent android:orientation=vertical TextView android:id=@+id/txt android:text=This is some text android:layout_width=wrap_content android:layout_height=wrap_content /TextView Button android:id=@+id/btn android:text=Click Me android:onClick=ClickHandler android:layout_width=wrap_content android:layout_height=wrap_content/Button /LinearLayout /SlidingDrawer /RelativeLayout -- 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] Does GregorianCalendar use another TimeZone implementation than what is available to an App?
Hi all I have discovered a problem with getting correct DST saving value, . TimeZone.getDSTSavings() normally returns 360 (1 hour), but should for timezone ID Australia/Lord_Howe return 180 (30 minutes). (See http://www.timeanddate.com/worldclock/clockchange.html?n=750) I believe that GregorianCalendar uses TimeZone.getDSTSavings(), but that is only my guess from looking at the source at http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/java/util/GregorianCalendar.java.htm Now, if I instead of using TimeZone.getDSTSavings() looks att what GregorianCalendar.get(Calendar.DST_OFFSET) returns, it is infact 180 when DST is on, which the following App reveals: package x.getdstavingsissue; /* * Result on Android 2.2 is: * TimeZone.getDSTSavings() == 360 * GregorianCalendar DST_OFFSET == 180 */ import java.util.Calendar; import java.util.TimeZone; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class GetDSTSavingsIssueActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(Australia/Lord_Howe)); int getdstsavings = cal.getTimeZone().getDSTSavings(); cal.set(2012, 1, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); int caldstsavings = cal.get(Calendar.DST_OFFSET); ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); Log.d(GetDSTSavingsIssue, TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); Log.d(GetDSTSavingsIssue, GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); } } I tried running on 2.2 in emulator and on a device, and also on 3.2 in emulator. Same result. So, I wonder how this can be. Regards Jan -- 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
Re: [android-developers] Re: How I use Web Services in android.?
ok then learn how to consume soap based website in android. -- *More info*, http://androidbasic-answer.blogspot.com/ On Mon, Jan 23, 2012 at 7:18 PM, Harpreet Singh harry...@gmail.com wrote: Actually the website is developed in .NET, they are going to provide me WebServices information. I studied regarding web services on internet and going to develop it using ksoap2, wsdl and whatever it needs. Sorry actually I am new to this stuff. Please do suggest whatever you like, like:: What concept should I use and all. Thanks. On Jan 22, 4:50 pm, unicus unicus unicus...@gmail.com wrote: Is your web service is soap based or simple servlet?. On Fri, Jan 20, 2012 at 11:21 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh harry...@gmail.com wrote: How can I communicate with the database which that site is using? Have the site developers provide you an api. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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 -- 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] Further Question
I have further questions on this particular problem. Dimitri Plotnikov you wrote: 2) In releases of Android from Eclair through Gingerbread integrated editing of 3rd party contacts is poorly supported. The trick is to insert a data row, Edit in MyApp, which would take the user to your app and your app would then provide an editor activity. Also, there is no provision in the Contacts UI for creating new contacts in 3rd party accounts. We have fixed those issues in Honeycomb. Now you can specify two activities in your metadata xml file: one for creating new contacts and one for editing existing ones and voilà! - you have seamless integration. Of course, it's a bit too soon to rely on Honeycomb as the dominant version of Android ;-) So for now you will need to either go with the described hack or only allow creation/editing of contacts through your app. Could you please give me the exact name of the metadata xml file (authenticator.xml or syncadapter.xml) and the names of the attribute you mentioned? I searched references twice but didn't find the attributes :/ I also have problems with the workaround, because the intent includes no informations about which contact was clicked? Do I need to specify something in my data-row so it is send via extrabundle, or something? Any help is greatly appreciated :) -- 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
Re: [android-developers] Re: getApplicationContext() returns null?
On Tue, Jan 24, 2012 at 2:16 AM, Zsolt Vasvari zvasv...@gmail.com wrote: In a Service... Actually, it's WakefulIntentService, extending your class. I only got a single report of this failure (I use ACRA) and it's in a commonly executed code. That's pretty bizarre. A fair amount of work will have been done already in the Service before doWakefulWork() gets called. Moreover, *I* use getApplicationContext() along the way, though by that point I will have only called it on the Context passed into onReceive(), not on the WakefulIntentService itself. That being said, calling getResources() on the Application object would worry me some in general. We have seen, over the years, that Application and GUI-related stuff do not work well together, and I've often wondered if that is somehow tied to resource access. Is there a particular reason why you are calling getApplicationContext().getResources(), rather than just getResources()? getResources() is available on Service as well. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/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
Re: [android-developers] Does GregorianCalendar use another TimeZone implementation than what is available to an App?
I know some tricks are played with the time zone database, compared to regular Java environments, simply for performance issues. It used to be the first time you used something that touched time zones that your app would freeze for a full second while the database was loaded. Now, they pre-load the time zone database in zygote and share it among all VMs. It's possible that there's a bug introduced in that process. I would file an issue on this at b.android.com, with a complete project containing your source code that demonstrates the error. On Tue, Jan 24, 2012 at 6:18 AM, Jan Skarvall jan.skarv...@telia.com wrote: Hi all I have discovered a problem with getting correct DST saving value, . TimeZone.getDSTSavings() normally returns 360 (1 hour), but should for timezone ID Australia/Lord_Howe return 180 (30 minutes). (See http://www.timeanddate.com/worldclock/clockchange.html?n=750) I believe that GregorianCalendar uses TimeZone.getDSTSavings(), but that is only my guess from looking at the source at http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/java/util/GregorianCalendar.java.htm Now, if I instead of using TimeZone.getDSTSavings() looks att what GregorianCalendar.get(Calendar.DST_OFFSET) returns, it is infact 180 when DST is on, which the following App reveals: package x.getdstavingsissue; /* * Result on Android 2.2 is: * TimeZone.getDSTSavings() == 360 * GregorianCalendar DST_OFFSET == 180 */ import java.util.Calendar; import java.util.TimeZone; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class GetDSTSavingsIssueActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(Australia/Lord_Howe)); int getdstsavings = cal.getTimeZone().getDSTSavings(); cal.set(2012, 1, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); int caldstsavings = cal.get(Calendar.DST_OFFSET); ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); Log.d(GetDSTSavingsIssue, TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); Log.d(GetDSTSavingsIssue, GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); } } I tried running on 2.2 in emulator and on a device, and also on 3.2 in emulator. Same result. So, I wonder how this can be. Regards Jan -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/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] Question about animation
Hello, i would animate a VideoView what scales up and switch then to fullscreen. My code looks like: final VideoView videoView = (VideoView) findViewById(R.id.video_view); final ObjectAnimator x = ObjectAnimator.ofFloat(this, x, 0); x.setTarget(videoView); final ObjectAnimator y = ObjectAnimator.ofFloat(this, y, 0); y.setTarget(videoView); final ObjectAnimator scaleX = ObjectAnimator.ofFloat(this, scaleX, 2); scaleX.setTarget(videoView); final ObjectAnimator scaleY = ObjectAnimator.ofFloat(this, scaleY, 2); scaleY.setTarget(videoView); final AnimatorSet set = new AnimatorSet(); set.setInterpolator(new LinearInterpolator()); set.setDuration(1000); set.playTogether(x, y, scaleX, scaleY); Unfortunately nothing happens. I am happy to read suggestions. Thanks in advance Daniel -- 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
Re: [android-developers] Re: NFC Secure Element
Hi Michael* ** *. Yes i have followed the aforesaid method but as soon as I execute these commands.: *Step 1) Polling for the MIFARE 1K/4K Tags, 106 kbps* FF 00 00 00 04 D4 4A 01 00 * d5 4b 00 90 00* ( I am getting this) - which shows no NFC tag. and 63 00 for rest of the of the commands. I am using the same reader(ACR 122U ) as suggested by you. Is it possible to share your Nexus S Images, so that I could try them out here and confirm whether the files I have generated by compiling the Android 2.3.4-r1 source code with the card emulation patches , is correct or not. What is the significance of this : I just looked through my code and found that I also explicitly disabled ISO 14443-4 activation (before polling) using this command: FF0003D41224 Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Fri, Jan 20, 2012 at 10:16 PM, Michael Roland mi.rol...@gmail.comwrote: FF0003D41224 -- 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
Re: [android-developers] Question about animation
I doubt that will work, as VideoView is backed by a SurfaceView, which doesn't play by the same rules. On Android 4.0, you could try replacing the VideoView with a MediaPlayer and a TextureView. TextureView can be animated, IIRC. On Tue, Jan 24, 2012 at 7:27 AM, Daniel Rindt daniel.ri...@googlemail.com wrote: Hello, i would animate a VideoView what scales up and switch then to fullscreen. My code looks like: final VideoView videoView = (VideoView) findViewById(R.id.video_view); final ObjectAnimator x = ObjectAnimator.ofFloat(this, x, 0); x.setTarget(videoView); final ObjectAnimator y = ObjectAnimator.ofFloat(this, y, 0); y.setTarget(videoView); final ObjectAnimator scaleX = ObjectAnimator.ofFloat(this, scaleX, 2); scaleX.setTarget(videoView); final ObjectAnimator scaleY = ObjectAnimator.ofFloat(this, scaleY, 2); scaleY.setTarget(videoView); final AnimatorSet set = new AnimatorSet(); set.setInterpolator(new LinearInterpolator()); set.setDuration(1000); set.playTogether(x, y, scaleX, scaleY); Unfortunately nothing happens. I am happy to read suggestions. Thanks in advance Daniel -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/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] android.holo.cts.HoloTest CTS Failure
Hi all, Observing CTS test failure with the following logs. Can someone please help on this. 01-02 00:30:59.539 W/InputManagerService( 319): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@420123e0 (uid=10072 pid=2762) 01-02 00:30:59.569 D/memalloc( 132): /dev/pmem: Allocated buffer base:0x41e5a000 size:1536000 offset:1536000 fd:28 01-02 00:30:59.569 D/memalloc( 2762): /dev/pmem: Mapped buffer base:0x5cffb000 size:3072000 offset:1536000 fd:58 01-02 00:30:59.579 D/memalloc( 2762): /dev/pmem: Unmapping buffer base:0x5ff0f000 size:15364096 offset:13828096 01-02 00:30:59.579 D/memalloc( 2762): /dev/pmem: Unmapping buffer base:0x61792000 size:19910656 offset:18374656 01-02 00:30:59.579 D/memalloc( 132): /dev/pmem: Freeing buffer base:0x42fe size:1536000 offset:18374656 fd:65 01-02 00:30:59.609 I/WindowManager( 319): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 2 01-02 00:30:59.639 D/memalloc( 132): /dev/pmem: Allocated buffer base:0x41e5a000 size:1536000 offset:18374656 fd:59 01-02 00:30:59.639 D/memalloc( 132): /dev/pmem: Freeing buffer base:0x42d01000 size:1536000 offset:15364096 fd:40 01-02 00:30:59.649 D/memalloc( 2762): /dev/pmem: Mapped buffer base:0x5e2b9000 size:19910656 offset:18374656 fd:61 01-02 00:30:59.669 I/TestRunner( 2762): failed: testHoloNoActionBar(android.holo.cts.HoloTest) 01-02 00:30:59.669 I/TestRunner( 2762): - begin exception - 01-02 00:30:59.669 I/TestRunner( 2762): 01-02 00:30:59.669 I/TestRunner( 2762): junit.framework.AssertionFailedError: Failed bitmap names: [holo_noactionbar_calendar_view, holo_noactionbar_progressbar_horizontal_100] Check /mnt/sdcard/cts-holo-assets/failed and /mnt/sdcard/cts-holo-assets/diff for details. 01-02 00:30:59.669 I/TestRunner( 2762):at junit.framework.Assert.fail(Assert.java:47) 01-02 00:30:59.669 I/TestRunner( 2762):at junit.framework.Assert.assertTrue(Assert.java:20) 01-02 00:30:59.669 I/TestRunner( 2762):at android.holo.cts.HoloTest.runThemeTest(HoloTest.java:142) 01-02 00:30:59.669 I/TestRunner( 2762):at android.holo.cts.HoloTest.testHoloNoActionBar(HoloTest.java:111) 01-02 00:30:59.669 I/TestRunner( 2762):at java.lang.reflect.Method.invokeNative(Native Method) 01-02 00:30:59.669 I/TestRunner( 2762):at java.lang.reflect.Method.invoke(Method.java:511) 01-02 00:30:59.669 I/TestRunner( 2762):at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) 01-02 00:30:59.669 I/TestRunner( 2762):at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) 01-02 00:30:59.669 I/TestRunner( 2762):at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:186) 01-02 00:30:59.669 I/TestRunner( 2762):at junit.framework.TestCase.runBare(TestCase.java:127) 01-02 00:30:59.669 I/TestRunner( 2762):at junit.framework.TestResult$1.protect(TestResult.java:106) 01-02 00:30:59.669 I/TestRunner( 2762):at junit.framework.TestResult.runProtected(TestResult.java:124) 01-02 00:30:59.669 I/TestRunner( 2762):at junit.framework.TestResult.run(TestResult.java:109) 01-02 00:30:59.669 I/TestRunner( 2762):at junit.framework.TestCase.run(TestCase.java:118) 01-02 00:30:59.669 I/TestRunner( 2762):at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) 01-02 00:30:59.669 I/TestRunner( 2762):at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) 01-02 00:30:59.669 I/TestRunner( 2762):at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:537) 01-02 00:30:59.669 I/TestRunner( 2762):at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) 01-02 00:30:59.669 I/TestRunner( 2762): - end exception - 01-02 00:30:59.679 I/TestRunner( 2762): finished: testHoloNoActionBar(android.holo.cts.HoloTest) 01-02 00:30:59.679 I/TestRunner( 2762): started: testHoloNoActionBarFullscreen(android.holo.cts.HoloTest) 01-02 00:30:59.699 I/ActivityManager( 319): START {flg=0x1000 cmp=com.android.cts.holo/android.holo.cts.ThemeTestActivity (has extras)} from pid 2762 01-02 00:30:59.719 I/WindowManager( 319): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 2 01-02 00:30:59.759 D/memalloc( 132): /dev/pmem: Freeing buffer base:0x41e5a000 size:1536000 offset:0 fd:32 01-02 00:30:59.789 D/memalloc( 2762): /dev/pmem: Unmapping buffer base:0x5cffb000 size:3072000 offset:1536000 01-02 00:30:59.789 D/memalloc( 2762): /dev/pmem: Unmapping buffer base:0x5e2b9000 size:19910656 offset:18374656 01-02 00:30:59.789 D/memalloc( 132): /dev/pmem: Freeing buffer base:0x42fe size:1536000 offset:18374656 fd:59 01-02 00:30:59.799 I/ThemeTestActivity(
Re: [android-developers] android.holo.cts.HoloTest CTS Failure
Visit http://source.android.com for firmware-related issues, which includes CTS. On Tue, Jan 24, 2012 at 7:53 AM, anup Jaipurkar androida...@gmail.com wrote: Hi all, Observing CTS test failure with the following logs. Can someone please help on this. 01-02 00:30:59.539 W/InputManagerService( 319): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@420123e0 (uid=10072 pid=2762) 01-02 00:30:59.569 D/memalloc( 132): /dev/pmem: Allocated buffer base:0x41e5a000 size:1536000 offset:1536000 fd:28 01-02 00:30:59.569 D/memalloc( 2762): /dev/pmem: Mapped buffer base:0x5cffb000 size:3072000 offset:1536000 fd:58 01-02 00:30:59.579 D/memalloc( 2762): /dev/pmem: Unmapping buffer base:0x5ff0f000 size:15364096 offset:13828096 01-02 00:30:59.579 D/memalloc( 2762): /dev/pmem: Unmapping buffer base:0x61792000 size:19910656 offset:18374656 01-02 00:30:59.579 D/memalloc( 132): /dev/pmem: Freeing buffer base:0x42fe size:1536000 offset:18374656 fd:65 01-02 00:30:59.609 I/WindowManager( 319): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 2 01-02 00:30:59.639 D/memalloc( 132): /dev/pmem: Allocated buffer base:0x41e5a000 size:1536000 offset:18374656 fd:59 01-02 00:30:59.639 D/memalloc( 132): /dev/pmem: Freeing buffer base:0x42d01000 size:1536000 offset:15364096 fd:40 01-02 00:30:59.649 D/memalloc( 2762): /dev/pmem: Mapped buffer base:0x5e2b9000 size:19910656 offset:18374656 fd:61 01-02 00:30:59.669 I/TestRunner( 2762): failed: testHoloNoActionBar(android.holo.cts.HoloTest) 01-02 00:30:59.669 I/TestRunner( 2762): - begin exception - 01-02 00:30:59.669 I/TestRunner( 2762): 01-02 00:30:59.669 I/TestRunner( 2762): junit.framework.AssertionFailedError: Failed bitmap names: [holo_noactionbar_calendar_view, holo_noactionbar_progressbar_horizontal_100] Check /mnt/sdcard/cts-holo-assets/failed and /mnt/sdcard/cts-holo-assets/diff for details. 01-02 00:30:59.669 I/TestRunner( 2762): at junit.framework.Assert.fail(Assert.java:47) 01-02 00:30:59.669 I/TestRunner( 2762): at junit.framework.Assert.assertTrue(Assert.java:20) 01-02 00:30:59.669 I/TestRunner( 2762): at android.holo.cts.HoloTest.runThemeTest(HoloTest.java:142) 01-02 00:30:59.669 I/TestRunner( 2762): at android.holo.cts.HoloTest.testHoloNoActionBar(HoloTest.java:111) 01-02 00:30:59.669 I/TestRunner( 2762): at java.lang.reflect.Method.invokeNative(Native Method) 01-02 00:30:59.669 I/TestRunner( 2762): at java.lang.reflect.Method.invoke(Method.java:511) 01-02 00:30:59.669 I/TestRunner( 2762): at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) 01-02 00:30:59.669 I/TestRunner( 2762): at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) 01-02 00:30:59.669 I/TestRunner( 2762): at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:186) 01-02 00:30:59.669 I/TestRunner( 2762): at junit.framework.TestCase.runBare(TestCase.java:127) 01-02 00:30:59.669 I/TestRunner( 2762): at junit.framework.TestResult$1.protect(TestResult.java:106) 01-02 00:30:59.669 I/TestRunner( 2762): at junit.framework.TestResult.runProtected(TestResult.java:124) 01-02 00:30:59.669 I/TestRunner( 2762): at junit.framework.TestResult.run(TestResult.java:109) 01-02 00:30:59.669 I/TestRunner( 2762): at junit.framework.TestCase.run(TestCase.java:118) 01-02 00:30:59.669 I/TestRunner( 2762): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) 01-02 00:30:59.669 I/TestRunner( 2762): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) 01-02 00:30:59.669 I/TestRunner( 2762): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:537) 01-02 00:30:59.669 I/TestRunner( 2762): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551) 01-02 00:30:59.669 I/TestRunner( 2762): - end exception - 01-02 00:30:59.679 I/TestRunner( 2762): finished: testHoloNoActionBar(android.holo.cts.HoloTest) 01-02 00:30:59.679 I/TestRunner( 2762): started: testHoloNoActionBarFullscreen(android.holo.cts.HoloTest) 01-02 00:30:59.699 I/ActivityManager( 319): START {flg=0x1000 cmp=com.android.cts.holo/android.holo.cts.ThemeTestActivity (has extras)} from pid 2762 01-02 00:30:59.719 I/WindowManager( 319): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 2 01-02 00:30:59.759 D/memalloc( 132): /dev/pmem: Freeing buffer base:0x41e5a000 size:1536000 offset:0 fd:32 01-02 00:30:59.789 D/memalloc( 2762): /dev/pmem: Unmapping buffer base:0x5cffb000 size:3072000 offset:1536000 01-02 00:30:59.789
[android-developers] Re: How I use Web Services in android.?
Thanks Sir. Today I also get requirements what I need. So I had to use Soap Service, in which I have to access a checklogin method and match my UserName and Password with the method data and then get the access to next service. Any suggestion regarding this. Thanks for the link, studying that too. On Jan 24, 4:28 pm, unicus unicus unicus...@gmail.com wrote: ok then learn how to consume soap based website in android. -- *More info*,http://androidbasic-answer.blogspot.com/ On Mon, Jan 23, 2012 at 7:18 PM, Harpreet Singh harry...@gmail.com wrote: Actually the website is developed in .NET, they are going to provide me WebServices information. I studied regarding web services on internet and going to develop it using ksoap2, wsdl and whatever it needs. Sorry actually I am new to this stuff. Please do suggest whatever you like, like:: What concept should I use and all. Thanks. On Jan 22, 4:50 pm, unicus unicus unicus...@gmail.com wrote: Is your web service is soap based or simple servlet?. On Fri, Jan 20, 2012 at 11:21 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh harry...@gmail.com wrote: How can I communicate with the database which that site is using? Have the site developers provide you an api. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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 -- 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: How I use Web Services in android.?
Actually I have to develop the app in form that the user access id pwd has to be checked from site and get the response. User should always be on app, I dont have to take him to any website, he has to access everything on app. :) On Jan 24, 4:28 pm, unicus unicus unicus...@gmail.com wrote: ok then learn how to consume soap based website in android. -- *More info*,http://androidbasic-answer.blogspot.com/ On Mon, Jan 23, 2012 at 7:18 PM, Harpreet Singh harry...@gmail.com wrote: Actually the website is developed in .NET, they are going to provide me WebServices information. I studied regarding web services on internet and going to develop it using ksoap2, wsdl and whatever it needs. Sorry actually I am new to this stuff. Please do suggest whatever you like, like:: What concept should I use and all. Thanks. On Jan 22, 4:50 pm, unicus unicus unicus...@gmail.com wrote: Is your web service is soap based or simple servlet?. On Fri, Jan 20, 2012 at 11:21 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh harry...@gmail.com wrote: How can I communicate with the database which that site is using? Have the site developers provide you an api. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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 -- 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] por favor, divulguem!!! Pinheirinho
Sorry for this message in forum, but what is happening in Brazil IS VERY, VERY IMPORTANT, and needs visibility... For those who not speak portuguese to... READ THE EMAIL below the news in portuguese ...Please share this, please... https://www.facebook.com/guzz.junqueira/posts/142712285845718 #Pinheirinho URGENTE Segundo P, que está lá em Pinheirinho, a polícia de São Paulo está removendo os corpos das pessoas que foram assassinadas e de pessoas gravemente feridas do hospital de São José dos Campos. Abaixo publicamos na íntegra tudo que informou através do Facebook o jovem que está na cidade. Post e comentários extraídos de: https://www.facebook.com/muhammadpailatif/posts/10150726383138625 Pedro Rios Leao, no Facebook: URGENTE!! URGENTE!!! Atenção!!! REPASSEM polícia municipal de São josé, o Hospital Municipal, e a ROTA, da polícia militar do estado de São Paulo estão SEQUESTRANDO os feridos e mortos, e SUMINDO com os corpos! Isso é REAL! ALCKMIN ASSASSINO! SE MOBILIZEM AGORA!!! Eu tenho inúmeros depoimentos e provas circunstanciais, tenho certeza ABSOLUTA do que estou falando. Depende da mobilização da internet ser ágil para cobrar uma resposta do governo federal, para não deixar o governador sumir com as provas físicas (os corpos) Fonte? Eu estive no hospital. A direção negou qualquer tipo de recebimento de paciente, devagar apelei para a moça da recepção. Ela falou que se eu soubesse o nome, ela me deixava visitar. Consegui o nome de David Washington Castor Furtado, levou um tiro nas costas, enquanto carregava um bebê. Segundo inúmeras testemunhas, o tiro foi disparado por um guarda municipal. Outra enfermeira me falou que tinham chegado duas crianças mortas. ele não quis falar comigo, porque estava APAVORADO, Estou tentando convence-lo de que ele só vai permanecer vivo enquanto as pessoas lembrarem o nome dele conversei com a familia dele, que estava no hospital A polícia também sumiu com o corpo de 2 crianças, e matou um homem, em plena luz do dia, as 10 da manhã, na frente da Igreja e sumiu com o corpo. Todos os feridos com mais gravidade no confronto foram levados pela polícia, e, com exceção do david washington, cujo nome vazou para imprensa, todos estão desaparecidos. Tenho vídeos, Leonardo Eloi, de depoimentos e de confusão. Mas acredite, eles não estão mentindo. cara, ta dificil atualizar as postagens, a internet aqui ta uma merda, o clima é de pânico. Me ajuda a divulgar, faz escandalo, eu to fazendo o que eu posso. To buscando, eu upei um vídeo, mostrando as pessoas na Igreja, e foi a primeira vez que alguém me falou do cara que foi morto na rua as 10 da manhã To tentando organizar as lideranças para catar os nomes dos mortos e feridos, mas é muita confusão e as pessoas estão com muito medo de falar. Acho que em uns dois ou três dias eu consigo depoimentos melhores. Mas a atualização vai ficar complexa... divulga, e mano, acredita, eu não estou falando porque eu ACHO. Só tive certeza depois de visitar o hospital. Os links são só de depoimentos, no hospital eu não consegui puxar a camera, meu deus! Olha só, quando o hospital está mentindo e uma enfermeira vem te dizer a verdade chorando, bom Já existem vídeos que mostram a polícia atirando na população. Eu sei, mas existe um aparelho de estado para apagar provas. A situação é: a polícia federal quase trocando tiro com a PM ontem. Isso aqui é uma guerra civil, que tem muito pouco a ver com prova. A mídia sequer está aqui... Pedro Rios Leao URGENTE!! URGENTE!!! Atenção!!! REPASSEM polícia municipal de São josé, o Hospital Municipal, e a ROTA, da polícia militar do estado de São Paulo estão SEQUESTRANDO os feridos e mortos, e SUMINDO com os corpos! Isso é REAL! ALCKMIN ASSASSINO! SE MOBILIZEM AGORA!!!Pedro Rios Leao URGENTE!! URGENTE!!! Atenção!!! REPASSEM polícia municipal de São josé, o Hospit...al Municipal, e a ROTA, da polícia militar do estado de São Paulo estão SEQUESTRANDO os feridos e mortos, e SUMINDO com os corpos! Isso é REAL! ALCKMIN ASSASSINO! SE MOBILIZEM AGORA!!!Ver mais..há 10 minutos · --- # Pinheirinho URGENT According to P, which is there in Pinheirinho, police in Sao Paulo is removing the bodies of people who were killed and seriously injured people in hospital in Sao Jose dos Campos. Below we publish in full all through Facebook said the young man who is in town. Post and comments taken from: https://www.facebook.com/muhammadpailatif/posts/10150726383138625 Leao Pedro Rios, on Facebook: Urgent! URGENT! Warning! Go over the municipal police in San Jose, City Hospital, and ROTA, Military Police of São Paulo are hijacking the wounded and dead, and fading with the bodies! This is REAL ! Alckmin KILLER! Mobilizes NOW! I have numerous testimonials and circumstantial evidence, I'm absolutely sure of what I'm talking about. It depends on the mobilization of the Internet to be responsive to demand a response from the federal government not to allow the governor to carry away
Re: [android-developers] por favor, divulguem!!! Pinheirinho
Olha o que foi para no Android Dev Internacional. so repassando 2012/1/24 Guilherme Lunhani gcravi...@gmail.com Sorry for this message in forum, but what is happening in Brazil IS VERY, VERY IMPORTANT, and needs visibility... For those who not speak portuguese to... READ THE EMAIL below the news in portuguese ...Please share this, please... https://www.facebook.com/guzz.junqueira/posts/142712285845718 #Pinheirinho URGENTE Segundo P, que está lá em Pinheirinho, a polícia de São Paulo está removendo os corpos das pessoas que foram assassinadas e de pessoas gravemente feridas do hospital de São José dos Campos. Abaixo publicamos na íntegra tudo que informou através do Facebook o jovem que está na cidade. Post e comentários extraídos de: https://www.facebook.com/muhammadpailatif/posts/10150726383138625 Pedro Rios Leao, no Facebook: URGENTE!! URGENTE!!! Atenção!!! REPASSEM polícia municipal de São josé, o Hospital Municipal, e a ROTA, da polícia militar do estado de São Paulo estão SEQUESTRANDO os feridos e mortos, e SUMINDO com os corpos! Isso é REAL! ALCKMIN ASSASSINO! SE MOBILIZEM AGORA!!! Eu tenho inúmeros depoimentos e provas circunstanciais, tenho certeza ABSOLUTA do que estou falando. Depende da mobilização da internet ser ágil para cobrar uma resposta do governo federal, para não deixar o governador sumir com as provas físicas (os corpos) Fonte? Eu estive no hospital. A direção negou qualquer tipo de recebimento de paciente, devagar apelei para a moça da recepção. Ela falou que se eu soubesse o nome, ela me deixava visitar. Consegui o nome de David Washington Castor Furtado, levou um tiro nas costas, enquanto carregava um bebê. Segundo inúmeras testemunhas, o tiro foi disparado por um guarda municipal. Outra enfermeira me falou que tinham chegado duas crianças mortas. ele não quis falar comigo, porque estava APAVORADO, Estou tentando convence-lo de que ele só vai permanecer vivo enquanto as pessoas lembrarem o nome dele conversei com a familia dele, que estava no hospital A polícia também sumiu com o corpo de 2 crianças, e matou um homem, em plena luz do dia, as 10 da manhã, na frente da Igreja e sumiu com o corpo. Todos os feridos com mais gravidade no confronto foram levados pela polícia, e, com exceção do david washington, cujo nome vazou para imprensa, todos estão desaparecidos. Tenho vídeos, Leonardo Eloi, de depoimentos e de confusão. Mas acredite, eles não estão mentindo. cara, ta dificil atualizar as postagens, a internet aqui ta uma merda, o clima é de pânico. Me ajuda a divulgar, faz escandalo, eu to fazendo o que eu posso. To buscando, eu upei um vídeo, mostrando as pessoas na Igreja, e foi a primeira vez que alguém me falou do cara que foi morto na rua as 10 da manhã To tentando organizar as lideranças para catar os nomes dos mortos e feridos, mas é muita confusão e as pessoas estão com muito medo de falar. Acho que em uns dois ou três dias eu consigo depoimentos melhores. Mas a atualização vai ficar complexa... divulga, e mano, acredita, eu não estou falando porque eu ACHO. Só tive certeza depois de visitar o hospital. Os links são só de depoimentos, no hospital eu não consegui puxar a camera, meu deus! Olha só, quando o hospital está mentindo e uma enfermeira vem te dizer a verdade chorando, bom Já existem vídeos que mostram a polícia atirando na população. Eu sei, mas existe um aparelho de estado para apagar provas. A situação é: a polícia federal quase trocando tiro com a PM ontem. Isso aqui é uma guerra civil, que tem muito pouco a ver com prova. A mídia sequer está aqui... Pedro Rios Leao URGENTE!! URGENTE!!! Atenção!!! REPASSEM polícia municipal de São josé, o Hospital Municipal, e a ROTA, da polícia militar do estado de São Paulo estão SEQUESTRANDO os feridos e mortos, e SUMINDO com os corpos! Isso é REAL! ALCKMIN ASSASSINO! SE MOBILIZEM AGORA!!!Pedro Rios Leao URGENTE!! URGENTE!!! Atenção!!! REPASSEM polícia municipal de São josé, o Hospit...al Municipal, e a ROTA, da polícia militar do estado de São Paulo estão SEQUESTRANDO os feridos e mortos, e SUMINDO com os corpos! Isso é REAL! ALCKMIN ASSASSINO! SE MOBILIZEM AGORA!!!Ver mais..há 10 minutos · --- # Pinheirinho URGENT According to P, which is there in Pinheirinho, police in Sao Paulo is removing the bodies of people who were killed and seriously injured people in hospital in Sao Jose dos Campos. Below we publish in full all through Facebook said the young man who is in town. Post and comments taken from: https://www.facebook.com/muhammadpailatif/posts/10150726383138625 Leao Pedro Rios, on Facebook: Urgent! URGENT! Warning! Go over the municipal police in San Jose, City Hospital, and ROTA, Military Police of São Paulo are hijacking the wounded and dead, and fading with the bodies! This is REAL ! Alckmin KILLER! Mobilizes NOW! I have numerous testimonials and circumstantial evidence, I'm
[android-developers] Re: Failed to register input channel
Remote device so I don't have added to logcat or DDMS. On Jan 24, 8:39 pm, Marcelo Henrique marceloh...@gmail.com wrote: Device or Emulator ? Logcat ... DDMS ... is checked? 2012/1/24 William Ferguson william.ferguson...@gmail.com Anyone? On Jan 23, 11:38 am, William Ferguson william.ferguson...@gmail.com wrote: I get about one of these errors occurring roughly every 50,000 app starts, so it's starting to occur pretty regularly now. I have never managed to make it occur on a local device so I can't check the logs for details. The only other mention on the list was 6+ months ago and Nikolay didn't get much response then. Is any else seeing this or know what it means and how to combat it? I suspect it's a race condition with Activity destruction, bit I'm already checking if the Activity has been closed in JumbleeActivity#showDialogSafely before I attempt showDialog so I'm not sure what else I can do. William java.lang.RuntimeException: Failed to register input channel. Check logs for details. at android.view.InputQueue.nativeRegisterInputChannel(Native Method) at android.view.InputQueue.registerInputChannel(InputQueue.java:92) at android.view.ViewRoot.setView(ViewRoot.java:595) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:203) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:117) at android.view.Window$LocalWindowManager.addView(Window.java:424) at android.app.Dialog.show(Dialog.java:241) at android.app.Activity.showDialog(Activity.java:2572) at android.app.Activity.showDialog(Activity.java:2530) at au.com.xandar.jumblee.JumbleeActivity.showDialogSafely(JumbleeActivity.java : 195) at au.com.xandar.android.os.DialogTaskManager.preExecute(DialogTaskManager.jav a: 78) at au.com.xandar.android.os.SimpleDialogTask.onPreExecute(SimpleDialogTask.jav a: 39) at au.com.xandar.android.os.SimpleAsyncTask.execute(SimpleAsyncTask.java: 46) at au.com.xandar.android.os.DialogTaskManager.executeTask(DialogTaskManager.ja va: 66) at au.com.xandar.jumblee.game.GameActivity$3.onClick(GameActivity.java: 272) at android.view.View.performClick(View.java:2574) at android.view.View$PerformClick.run(View.java:9238) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3691) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:907) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665) at dalvik.system.NativeStart.main(Native Method) -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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
Re: [android-developers] Can´t create an AudioRecorder object
Hi Gabriel, I would like to express I am facing the same issue as you stated below, have you fixed it yet? I have found using a sample rate of 8192 works too, although I still get the same errors. at least 8192 goes into the buffersize exactly (and is power of 2). Also I read your other article http://permalink.gmane.org/gmane.comp.handhelds.android.devel/85692 in which you said to loop to find the best solution for your device and look at the output (if 0 then good). could you clear up how you did this? Please let me know if you have had any joy with this class. Thanks for your time, Ben -- 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
Re: [android-developers] Question about animation
Thanks for your quick answer, i have API Level 11 available for the application, so the compatibility package may help here? Another idea is to render one frame of the video in a hidden fullscreen element, then shrink it down and animate it. I think poeple can neglect that the video is not playing in the zoom animation. Thanks for all input. Daniel -- 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
Re: [android-developers] Question about animation
On Tue, Jan 24, 2012 at 9:43 AM, Daniel Rindt daniel.ri...@googlemail.com wrote: i have API Level 11 available for the application, so the compatibility package may help here? No, sorry. Another idea is to render one frame of the video in a hidden fullscreen element, then shrink it down and animate it. I think poeple can neglect that the video is not playing in the zoom animation. That seems reasonable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/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
RE: [android-developers] Unable to send text messages on some Android Phones using SmsManager
Any idea how to fix this guys? I posted this on StackOverflow, tried the IRC channel and I am posting this here, where else I should look for answers? Can I contact anybody at Google about this? Thanks! -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of voicely Sent: Saturday, January 21, 2012 1:41 PM To: Android Developers Subject: [android-developers] Unable to send text messages on some Android Phones using SmsManager Hello, My mobile app occasionally is sending text messages, everything works great on most phones but i am starting to receive emails from some users stating the messages aren't going out. Here is the code i am using: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(+1222333, null, test sms, null, null); I've read somewhere that I should use the PendingIntent, so i tried it as follows: PendingIntent pi = PendingIntent.getActivity(register.this, 0, new Intent(register.this, register.class), 0); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(+1222333, null, test sms, pi, null); But it still doesnt work. So far I have gotten emails from users of Samsung Galaxy S II, Sprint Evo Shift, Samsung Sidekick phones. Please keep in mind it's not phone specific, i have tested the app on two of these phones (my friends) and the text message was sent normally. What am i doing wrong, is there another way to send text messages that would work on all phones? 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 -- 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 update location problem
Hi Friends Am using alcatel 890D mobile. Recently we have developed one location tracking application. the app is working in Samsung mobile but it is not working in alcatel it is continuously giving same location even if mobile is moving some where. please help me on this. Regards Suresh K -- 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] What should be the layout to view the data and the menu here?
package com.example.testcode; import android.app.Activity; import android.app.ListFragment; import android.app.LoaderManager; import android.content.CursorLoader; import android.content.Loader; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; import android.support.v4.widget.SimpleCursorAdapter; import android.text.TextUtils; import android.util.Log; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.widget.ListView; import android.widget.SearchView; import android.widget.SearchView.OnQueryTextListener; public class TestAndActivity extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public static class ExampleFragment extends ListFragment implements OnQueryTextListener, LoaderManager.LoaderCallbacksCursor { // This is the Adapter being used to display the list's data. SimpleCursorAdapter mAdapter; // If non-null, this is the current filter the user has provided. String mCurFilter; @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); // Give some text to display if there is no data. In a real // application this would come from a resource. setEmptyText(No phone numbers); // We have a menu item to show in action bar. setHasOptionsMenu(true); // Create an empty adapter we will use to display the loaded data. mAdapter = new SimpleCursorAdapter(getActivity(), android.R.layout.simple_list_item_2, null, new String[] { ContactsContract.Contacts.DISPLAY_NAME, ContactsContract.Contacts.CONTACT_STATUS }, new int[] { android.R.id.text1, android.R.id.text2 }, 0); setListAdapter(mAdapter); // Start out with a progress indicator. setListShown(false); // Prepare the loader. Either re-connect with an existing one, // or start a new one. getLoaderManager().initLoader(0, null, this); } @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { // Place an action bar item for searching. MenuItem item = menu.add(Search); item.setIcon(android.R.drawable.ic_menu_search); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); SearchView sv = new SearchView(getActivity()); sv.setOnQueryTextListener(this); item.setActionView(sv); } public boolean onQueryTextChange(String newText) { // Called when the action bar search text has changed. Update // the search filter, and restart the loader to do a new query // with this filter. mCurFilter = !TextUtils.isEmpty(newText) ? newText : null; getLoaderManager().restartLoader(0, null, this); return true; } @Override public boolean onQueryTextSubmit(String query) { // Don't care about this. return true; } @Override public void onListItemClick(ListView l, View v, int position, long id) { // Insert desired behavior here. Log.i(FragmentComplexList, Item clicked: + id); } // These are the Contacts rows that we will retrieve. static final String[] CONTACTS_SUMMARY_PROJECTION = new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME, ContactsContract.Contacts.CONTACT_STATUS, ContactsContract.Contacts.CONTACT_PRESENCE, ContactsContract.Contacts.PHOTO_ID, ContactsContract.Contacts.LOOKUP_KEY, }; public LoaderCursor onCreateLoader(int id, Bundle args) { // This is called when a new Loader needs to be created. This // sample only has one Loader, so we don't care about the ID. // First, pick the base URI to use depending on whether we are // currently filtering. Uri baseUri; if (mCurFilter != null) { baseUri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_FILTER_URI, Uri.encode(mCurFilter)); } else { baseUri = ContactsContract.Contacts.CONTENT_URI; } // Now create and return a CursorLoader that will take care of // creating a Cursor for the data being displayed. String select = (( + ContactsContract.Contacts.DISPLAY_NAME + NOTNULL) AND ( + ContactsContract.Contacts.HAS_PHONE_NUMBER + =1) AND ( + ContactsContract.Contacts.DISPLAY_NAME + != '' )); return new CursorLoader(getActivity(), baseUri, CONTACTS_SUMMARY_PROJECTION, select, null, ContactsContract.Contacts.DISPLAY_NAME + COLLATE LOCALIZED ASC); } public void
[android-developers] Google cloud print
Hi all, Any idea about the google cloud print in android application. Thanks and 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
Re: [android-developers] Re: How to set the preferred APN through code?
I haven't actually tried it myself so I can't answer your question definitively, but my understanding was that it is no longer possible to write any elements of the access point. See this issue: http://code.google.com/p/android/issues/detail?id=24227 -- 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
Re: [android-developers] Google cloud print
http://www.slideshare.net/wolfpaulus/android-print-intent-8431140 On Tue, Jan 24, 2012 at 10:25 AM, aru padam deepesh...@gmail.com wrote: Hi all, Any idea about the google cloud print in android application. Thanks and 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 -- 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: Does GregorianCalendar use another TimeZone implementation than what is available to an App?
Thanks! I forgot to include main.xml. You may either remove the lines: ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); or change res/layout/main.xml to look like below: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:id=@+id/getdstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ TextView android:id=@+id/caldstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout Also, the line: cal.set(Calendar.MILLISECOND, 0); can be deleted. It is irrelevant for the result. Jan On Jan 24, 1:13 pm, Mark Murphy mmur...@commonsware.com wrote: I know some tricks are played with the time zone database, compared to regular Java environments, simply for performance issues. It used to be the first time you used something that touched time zones that your app would freeze for a full second while the database was loaded. Now, they pre-load the time zone database in zygote and share it among all VMs. It's possible that there's a bug introduced in that process. I would file an issue on this at b.android.com, with a complete project containing your source code that demonstrates the error. On Tue, Jan 24, 2012 at 6:18 AM, Jan Skarvall jan.skarv...@telia.com wrote: Hi all I have discovered a problem with getting correct DST saving value, . TimeZone.getDSTSavings() normally returns 360 (1 hour), but should for timezone ID Australia/Lord_Howe return 180 (30 minutes). (Seehttp://www.timeanddate.com/worldclock/clockchange.html?n=750) I believe that GregorianCalendar uses TimeZone.getDSTSavings(), but that is only my guess from looking at the source at http://www.java2s.com/Open-Source/Android/android-core/platform-libco... Now, if I instead of using TimeZone.getDSTSavings() looks att what GregorianCalendar.get(Calendar.DST_OFFSET) returns, it is infact 180 when DST is on, which the following App reveals: package x.getdstavingsissue; /* * Result on Android 2.2 is: * TimeZone.getDSTSavings() == 360 * GregorianCalendar DST_OFFSET == 180 */ import java.util.Calendar; import java.util.TimeZone; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class GetDSTSavingsIssueActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(Australia/Lord_Howe)); int getdstsavings = cal.getTimeZone().getDSTSavings(); cal.set(2012, 1, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); int caldstsavings = cal.get(Calendar.DST_OFFSET); ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); Log.d(GetDSTSavingsIssue, TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); Log.d(GetDSTSavingsIssue, GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); } } I tried running on 2.2 in emulator and on a device, and also on 3.2 in emulator. Same result. So, I wonder how this can be. Regards Jan -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in DC:http://marakana.com/training/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
Re: [android-developers] Re: Does GregorianCalendar use another TimeZone implementation than what is available to an App?
Oh, sorry, the I would file meant that I suggest that *you* file the issue... :-) On Tue, Jan 24, 2012 at 11:33 AM, Jan Skarvall jan.skarv...@telia.com wrote: Thanks! I forgot to include main.xml. You may either remove the lines: ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); or change res/layout/main.xml to look like below: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:id=@+id/getdstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ TextView android:id=@+id/caldstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout Also, the line: cal.set(Calendar.MILLISECOND, 0); can be deleted. It is irrelevant for the result. Jan On Jan 24, 1:13 pm, Mark Murphy mmur...@commonsware.com wrote: I know some tricks are played with the time zone database, compared to regular Java environments, simply for performance issues. It used to be the first time you used something that touched time zones that your app would freeze for a full second while the database was loaded. Now, they pre-load the time zone database in zygote and share it among all VMs. It's possible that there's a bug introduced in that process. I would file an issue on this at b.android.com, with a complete project containing your source code that demonstrates the error. On Tue, Jan 24, 2012 at 6:18 AM, Jan Skarvall jan.skarv...@telia.com wrote: Hi all I have discovered a problem with getting correct DST saving value, . TimeZone.getDSTSavings() normally returns 360 (1 hour), but should for timezone ID Australia/Lord_Howe return 180 (30 minutes). (Seehttp://www.timeanddate.com/worldclock/clockchange.html?n=750) I believe that GregorianCalendar uses TimeZone.getDSTSavings(), but that is only my guess from looking at the source at http://www.java2s.com/Open-Source/Android/android-core/platform-libco... Now, if I instead of using TimeZone.getDSTSavings() looks att what GregorianCalendar.get(Calendar.DST_OFFSET) returns, it is infact 180 when DST is on, which the following App reveals: package x.getdstavingsissue; /* * Result on Android 2.2 is: * TimeZone.getDSTSavings() == 360 * GregorianCalendar DST_OFFSET == 180 */ import java.util.Calendar; import java.util.TimeZone; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class GetDSTSavingsIssueActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(Australia/Lord_Howe)); int getdstsavings = cal.getTimeZone().getDSTSavings(); cal.set(2012, 1, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); int caldstsavings = cal.get(Calendar.DST_OFFSET); ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); Log.d(GetDSTSavingsIssue, TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); Log.d(GetDSTSavingsIssue, GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); } } I tried running on 2.2 in emulator and on a device, and also on 3.2 in emulator. Same result. So, I wonder how this can be. Regards Jan -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in DC:http://marakana.com/training/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
[android-developers] Re: Does GregorianCalendar use another TimeZone implementation than what is available to an App?
I just reported it, se http://code.google.com/p/android/issues/detail?id=24684 Jan On Jan 24, 5:33 pm, Jan Skarvall jan.skarv...@telia.com wrote: Thanks! I forgot to include main.xml. You may either remove the lines: ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); or change res/layout/main.xml to look like below: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:id=@+id/getdstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ TextView android:id=@+id/caldstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout Also, the line: cal.set(Calendar.MILLISECOND, 0); can be deleted. It is irrelevant for the result. Jan On Jan 24, 1:13 pm, Mark Murphy mmur...@commonsware.com wrote: I know some tricks are played with the time zone database, compared to regular Java environments, simply for performance issues. It used to be the first time you used something that touched time zones that your app would freeze for a full second while the database was loaded. Now, they pre-load the time zone database in zygote and share it among all VMs. It's possible that there's a bug introduced in that process. I would file an issue on this at b.android.com, with a complete project containing your source code that demonstrates the error. On Tue, Jan 24, 2012 at 6:18 AM, Jan Skarvall jan.skarv...@telia.com wrote: Hi all I have discovered a problem with getting correct DST saving value, . TimeZone.getDSTSavings() normally returns 360 (1 hour), but should for timezone ID Australia/Lord_Howe return 180 (30 minutes). (Seehttp://www.timeanddate.com/worldclock/clockchange.html?n=750) I believe that GregorianCalendar uses TimeZone.getDSTSavings(), but that is only my guess from looking at the source at http://www.java2s.com/Open-Source/Android/android-core/platform-libco... Now, if I instead of using TimeZone.getDSTSavings() looks att what GregorianCalendar.get(Calendar.DST_OFFSET) returns, it is infact 180 when DST is on, which the following App reveals: package x.getdstavingsissue; /* * Result on Android 2.2 is: * TimeZone.getDSTSavings() == 360 * GregorianCalendar DST_OFFSET == 180 */ import java.util.Calendar; import java.util.TimeZone; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class GetDSTSavingsIssueActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(Australia/Lord_Howe)); int getdstsavings = cal.getTimeZone().getDSTSavings(); cal.set(2012, 1, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); int caldstsavings = cal.get(Calendar.DST_OFFSET); ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); Log.d(GetDSTSavingsIssue, TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); Log.d(GetDSTSavingsIssue, GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); } } I tried running on 2.2 in emulator and on a device, and also on 3.2 in emulator. Same result. So, I wonder how this can be. Regards Jan -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in DC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group.
Re: [android-developers] Re: Does GregorianCalendar use another TimeZone implementation than what is available to an App?
On Tue, Jan 24, 2012 at 12:02 PM, Jan Skarvall jan.skarv...@telia.com wrote: I just reported it, se http://code.google.com/p/android/issues/detail?id=24684 Cool, I'll keep an eye on it. I really feel like adding a joke here about Lord Howe needing a watch that kept better time and wasn't always off by a half-hour, but I'll just keep my mouth shut. Oh, wait, I typed that already -- better delete it before I press Se... Jan On Jan 24, 5:33 pm, Jan Skarvall jan.skarv...@telia.com wrote: Thanks! I forgot to include main.xml. You may either remove the lines: ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); or change res/layout/main.xml to look like below: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:id=@+id/getdstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ TextView android:id=@+id/caldstsavings android:layout_width=fill_parent android:layout_height=wrap_content/ /LinearLayout Also, the line: cal.set(Calendar.MILLISECOND, 0); can be deleted. It is irrelevant for the result. Jan On Jan 24, 1:13 pm, Mark Murphy mmur...@commonsware.com wrote: I know some tricks are played with the time zone database, compared to regular Java environments, simply for performance issues. It used to be the first time you used something that touched time zones that your app would freeze for a full second while the database was loaded. Now, they pre-load the time zone database in zygote and share it among all VMs. It's possible that there's a bug introduced in that process. I would file an issue on this at b.android.com, with a complete project containing your source code that demonstrates the error. On Tue, Jan 24, 2012 at 6:18 AM, Jan Skarvall jan.skarv...@telia.com wrote: Hi all I have discovered a problem with getting correct DST saving value, . TimeZone.getDSTSavings() normally returns 360 (1 hour), but should for timezone ID Australia/Lord_Howe return 180 (30 minutes). (Seehttp://www.timeanddate.com/worldclock/clockchange.html?n=750) I believe that GregorianCalendar uses TimeZone.getDSTSavings(), but that is only my guess from looking at the source at http://www.java2s.com/Open-Source/Android/android-core/platform-libco... Now, if I instead of using TimeZone.getDSTSavings() looks att what GregorianCalendar.get(Calendar.DST_OFFSET) returns, it is infact 180 when DST is on, which the following App reveals: package x.getdstavingsissue; /* * Result on Android 2.2 is: * TimeZone.getDSTSavings() == 360 * GregorianCalendar DST_OFFSET == 180 */ import java.util.Calendar; import java.util.TimeZone; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; public class GetDSTSavingsIssueActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(Australia/Lord_Howe)); int getdstsavings = cal.getTimeZone().getDSTSavings(); cal.set(2012, 1, 1, 0, 0, 0); cal.set(Calendar.MILLISECOND, 0); int caldstsavings = cal.get(Calendar.DST_OFFSET); ((TextView) findViewById(R.id.getdstsavings)) .setText(TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); ((TextView) findViewById(R.id.caldstsavings)) .setText(GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); Log.d(GetDSTSavingsIssue, TimeZone.getDSTSavings() == + String.valueOf(getdstsavings)); Log.d(GetDSTSavingsIssue, GregorianCalendar DST_OFFSET == + String.valueOf(caldstsavings)); } } I tried running on 2.2 in emulator and on a device, and also on 3.2 in emulator. Same result. So, I wonder how this can be. Regards Jan -- 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
Re: [android-developers] Android update location problem
On Tue, Jan 24, 2012 at 9:07 AM, suresh sureshmca.sv...@gmail.com wrote: it is not working in alcatel it is continuously giving same location even if mobile is moving some where. please help me on this. First question: do other apps show the same behavior or is it just you? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] What is the error in this code?
What is the error in this code? How to debug it? package com.example.testcode; import android.app.ListActivity; import android.app.LoaderManager; import android.content.CursorLoader; import android.content.Loader; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.ContactsContract; import android.support.v4.widget.SimpleCursorAdapter; import android.text.TextUtils; import android.util.Log; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.widget.ListView; import android.widget.SearchView; import android.widget.SearchView.OnQueryTextListener; public class TestAndActivity extends ListActivity implements OnQueryTextListener, LoaderManager.LoaderCallbacksCursor { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } // This is the Adapter being used to display the list's data. SimpleCursorAdapter mAdapter; // If non-null, this is the current filter the user has provided. String mCurFilter; @Override public void onActivityCreated(Bundle savedInstanceState) { super .onActivityCreated(savedInstanceState); // Give some text to display if there is no data. In a real // application this would come from a resource. setEmptyText(No phone numbers); // We have a menu item to show in action bar. setHasOptionsMenu(true); // Create an empty adapter we will use to display the loaded data. mAdapter = new SimpleCursorAdapter(getActivity(), android.R.layout.simple_list_item_2, null, new String[] { ContactsContract.Contacts.DISPLAY_NAME, ContactsContract.Contacts.CONTACT_STATUS }, new int[] { android.R.id.text1, android.R.id.text2 }, 0); setListAdapter(mAdapter); // Start out with a progress indicator. setListShown(false); // Prepare the loader. Either re-connect with an existing one, // or start a new one. getLoaderManager().initLoader(0, null, this); } @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { // Place an action bar item for searching. MenuItem item = menu.add(Search); item.setIcon(android.R.drawable.ic_menu_search); item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); SearchView sv = new SearchView(getActivity()); sv.setOnQueryTextListener(this); item.setActionView(sv); } public boolean onQueryTextChange(String newText) { // Called when the action bar search text has changed. Update // the search filter, and restart the loader to do a new query // with this filter. mCurFilter = !TextUtils.isEmpty(newText) ? newText : null; getLoaderManager().restartLoader(0, null, this); return true; } @Override public boolean onQueryTextSubmit(String query) { // Don't care about this. return true; } @Override public void onListItemClick(ListView l, View v, int position, long id) { // Insert desired behavior here. } // These are the Contacts rows that we will retrieve. static final String[] CONTACTS_SUMMARY_PROJECTION = new String[] { ContactsContract.Contacts._ID, ContactsContract.Contacts.DISPLAY_NAME, ContactsContract.Contacts.CONTACT_STATUS, ContactsContract.Contacts.CONTACT_PRESENCE, ContactsContract.Contacts.PHOTO_ID, ContactsContract.Contacts.LOOKUP_KEY, }; public LoaderCursor onCreateLoader(int id, Bundle args) { // This is called when a new Loader needs to be created. This // sample only has one Loader, so we don't care about the ID. // First, pick the base URI to use depending on whether we are // currently filtering. Uri baseUri; if (mCurFilter != null) { baseUri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_FILTER_URI, Uri.encode(mCurFilter)); } else { baseUri = ContactsContract.Contacts.CONTENT_URI; } // Now create and return a CursorLoader that will take care of // creating a Cursor for the data being displayed. String select = (( + ContactsContract.Contacts.DISPLAY_NAME + NOTNULL) AND ( + ContactsContract.Contacts.HAS_PHONE_NUMBER + =1) AND ( + ContactsContract.Contacts.DISPLAY_NAME + != '' )); return new CursorLoader(getActivity(), baseUri, CONTACTS_SUMMARY_PROJECTION, select, null, ContactsContract.Contacts.DISPLAY_NAME + COLLATE LOCALIZED ASC); } public void onLoadFinished(LoaderCursor loader, Cursor data) { // Swap the new cursor
Re: [android-developers] What is the error in this code?
On Tue, Jan 24, 2012 at 11:15 AM, Satyajit Sarangi writetosatya...@gmail.com wrote: What is the error in this code? Are you quizzing us or do you just want us to do your work? How to debug it? With the aptly named debugger. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] What is the error in this code?
Erm. This doesn't compile. Else, I would have debugged and found my problem. Implementing loaders for the first time thus facing such problems. The initial code was in fragments. Removed that to implement ListActivity. Do tell me where I am going wrong. On Tue, Jan 24, 2012 at 10:55 PM, TreKing treking...@gmail.com wrote: On Tue, Jan 24, 2012 at 11:15 AM, Satyajit Sarangi writetosatya...@gmail.com wrote: What is the error in this code? Are you quizzing us or do you just want us to do your work? How to debug it? With the aptly named debugger. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- *Satyajit Sarangi* -- 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: Scroll View
Anybody? I am really stuck with this. Any idea is useful. On Jan 23, 5:18 pm, Oliviu Vais oliviu.v...@gmail.com wrote: I am trying to scroll a HorizontalScrollView by 2 buttons, one left, one right. What am i doing wrong? Which one to choose? sw - scroll view public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch(v.getId()){ case R.id.bRight: sw.smoothScrollBy(20, 0); break; case R.id.bLeft: sw.smoothScrollBy(-20, 0); break; } return false; } public boolean onLongClick(View arg0) { // TODO Auto-generated method stub switch(arg0.getId()){ case R.id.bRight: sw.smoothScrollBy(50, 0); break; } return false; -- 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
Re: [android-developers] What is the error in this code?
On Tue, Jan 24, 2012 at 11:01:57PM +0530, Satyajit Sarangi wrote: Erm. This doesn't compile. Else, I would have debugged and found my problem. Implementing loaders for the first time thus facing such problems. The initial code was in fragments. Removed that to implement ListActivity. Do tell me where I am going wrong. Glad to! You are doing several things incorrectly: 1) you don't appear to have done any debugging before posting here (DO YOUR HOMEWORK FIRST!) 2) you are posting what looks like your whole app, instead of only posting the bits of code that are causing the problem 3) you didn't post the relevant portion of the logcat output 4) you didn't mention what the problem is 5) you didn't list the errors you're seeing 6) As Treking mentioned, you appear to just expect everyone else to do your work for you. That is highly unlikely, unless you want to PAY someone. There. Now you know what you're doing wrong...so try doing it the right way this time. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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
Re: [android-developers] UI requirement
Use scroll view as the root element .. and use a composite view i.e extend the Linear Layout class and provide your implementation of the Header and the checkboxes which you want ... and every time add that to your scroll view when ever the button is clicked. hope this pointer helps On Sun, Jan 22, 2012 at 8:49 PM, Rachna Sharma designndeve...@gmail.comwrote: Hi Group, I have UI requirement shown below: |---| |Header-1 | | Checkbox1[]| | Checkbox2[]| | Checkbox3[]| |---| |Header-2 | | Checkbox1 [] | | Checkbox2 [] | | Checkbox3 [] | and so on clicking below button. BUTTON - clicking on this button on bottom will create header and 3 checkbox everytime. How can i achieve this? This is very urgent. I can not take these in XML laypout as these need to be added dynamically on runtime. If possible, Please provide any sample code and guide me. Thanks, Rachana -- 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 -- 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 merge two amr files to a single file?
I have recorded two amr files using MediaRecorder. Now i want to combine them. Please direct me to achieve this task. -- 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
Re: [android-developers] Google cloud print
Hang on, didn't you post this same question a while back? -- 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
Re: [android-developers] What is the error in this code?
On Tue, Jan 24, 2012 at 11:31 AM, Satyajit Sarangi writetosatya...@gmail.com wrote: Erm. This doesn't compile. Else, I would have debugged and found my problem. 7) You have to learn Java and how to use your IDE to fix basic compiler errors. This is not an Android problem, thus does not belong on this list. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: How to set the preferred APN through code?
Hi, What I infer from your code is that you haven't added the APN first into the database. You need to first write the APN settings into the database before updating the preferred APN code. The following links will be helpful in making you understand and resolve the issue: http://blogs.msdn.com/b/zhengpei/archive/2009/10/13/managing-apn-data-in-google-android.aspx http://stackoverflow.com/questions/7867079/android-apn-enforcement Moreover, it is indeed true that from Android 4.0 onwards, apps need root permissions to modify APN Settings. But if you are developing your app for Android versions prior to Android 4.0 then you need not worry. :) I hope this solves your problems. Warm Regards On Tue, Jan 24, 2012 at 9:10 PM, Tom t...@malcolmson.ca wrote: I haven't actually tried it myself so I can't answer your question definitively, but my understanding was that it is no longer possible to write any elements of the access point. See this issue: http://code.google.com/p/android/issues/detail?id=24227 -- 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 -- 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
Re: [android-developers] SlidingDrawer - Setting height moves the view up
Are you setting fill_parent to the SlidingDrawer or RelativeLayout (in your code there is 200dp, so I'm not sure)? Anyway, since you are using a RelativeLayout you can try setting on the SlidingDrawer android:layout_alignParentBottom=true. (maybe though you'll need to set the RelativeLayout height to fill_parent). On Tue, Jan 24, 2012 at 11:42 AM, joaocruz04 jtcru...@gmail.com wrote: Hi, i'm having a problem: i've created a sliding drawer with a specific height, at the bottom of the screen. The problem is, when the height of the SlidingDrawer is set as fill_parent, everything works great, but when i set the height as for instance, 150dip, the SlidingDrawer moves to the top of the screen.. is that a common issue? I can't seem to find any user with same problem :S My code btw: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=wrap_content android:layout_height=wrap_content SlidingDrawer android:id=@+id/drawer android:layout_height=200dip android:layout_width=fill_parent android:content=@+id/content android:handle=@+id/handle ImageView android:id=@+id/handle android:layout_height=wrap_content android:layout_width=wrap_content android:src=@drawable/ ntrack/ImageView LinearLayout android:layout_height=fill_parent android:id=@+id/ content android:layout_width=fill_parent android:orientation=vertical TextView android:id=@+id/txt android:text=This is some text android:layout_width=wrap_content android:layout_height=wrap_content /TextView Button android:id=@+id/btn android:text=Click Me android:onClick=ClickHandler android:layout_width=wrap_content android:layout_height=wrap_content/Button /LinearLayout /SlidingDrawer /RelativeLayout -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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
Re: [android-developers] Scroll View
On Mon, Jan 23, 2012 at 9:18 AM, Oliviu Vais oliviu.v...@gmail.com wrote: What am i doing wrong? Well you didn't really explain what the problem is. I'm trying to do X is not a problem. What have you debugged and learned so far? What is actually not working? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to keep -pre-build across android update project?
Seem to be a known issue: http://code.google.com/p/android/issues/detail?id=23225 -- 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
Re: [android-developers] Scroll View
xml logcat ?xml version=1.0 encoding=utf-8? ScrollView android:id=@+id/ScrollView02 android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; HorizontalScrollView android:id=@+id/HorizontalScrollView01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:src=@drawable/pic android:isScrollContainer=true android:layout_height=fill_parent android:layout_width=fill_parent android:adjustViewBounds=true /ImageView /HorizontalScrollView /ScrollView 2012/1/24 TreKing treking...@gmail.com On Mon, Jan 23, 2012 at 9:18 AM, Oliviu Vais oliviu.v...@gmail.comwrote: What am i doing wrong? Well you didn't really explain what the problem is. I'm trying to do X is not a problem. What have you debugged and learned so far? What is actually not working? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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: Scroll View
I thought it's clear enough. I have a HorizontalScrollView at the bottom of my screen. I want to scroll it left and right by using 2 buttons that are on each side(one for left scroll, one for right). I do not need help in setting the Xml. I need help for the Java class, i cant get my buttons to scroll continous, they scroll only once when i click them. I need them to scroll to the end of the View but not at once, in little continous steps. This is what i have so far: public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch(v.getId()){ case R.id.bRight: sw.smoothScrollBy(20, 0); break; case R.id.bLeft: sw.smoothScrollBy(-20, 0); break; } return false; On Jan 24, 9:42 pm, Marcelo Henrique marceloh...@gmail.com wrote: xml logcat ?xml version=1.0 encoding=utf-8? ScrollView android:id=@+id/ScrollView02 android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; HorizontalScrollView android:id=@+id/HorizontalScrollView01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:src=@drawable/pic android:isScrollContainer=true android:layout_height=fill_parent android:layout_width=fill_parent android:adjustViewBounds=true /ImageView /HorizontalScrollView /ScrollView 2012/1/24 TreKing treking...@gmail.com On Mon, Jan 23, 2012 at 9:18 AM, Oliviu Vais oliviu.v...@gmail.comwrote: What am i doing wrong? Well you didn't really explain what the problem is. I'm trying to do X is not a problem. What have you debugged and learned so far? What is actually not working? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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
Re: [android-developers] Re: Scroll View
you need viewpager http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html http://developer.android.com/reference/android/support/v4/view/ViewPager.html 2012/1/24 Oliviu Vais oliviu.v...@gmail.com I thought it's clear enough. I have a HorizontalScrollView at the bottom of my screen. I want to scroll it left and right by using 2 buttons that are on each side(one for left scroll, one for right). I do not need help in setting the Xml. I need help for the Java class, i cant get my buttons to scroll continous, they scroll only once when i click them. I need them to scroll to the end of the View but not at once, in little continous steps. This is what i have so far: public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch(v.getId()){ case R.id.bRight: sw.smoothScrollBy(20, 0); break; case R.id.bLeft: sw.smoothScrollBy(-20, 0); break; } return false; On Jan 24, 9:42 pm, Marcelo Henrique marceloh...@gmail.com wrote: xml logcat ?xml version=1.0 encoding=utf-8? ScrollView android:id=@+id/ScrollView02 android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; HorizontalScrollView android:id=@+id/HorizontalScrollView01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:src=@drawable/pic android:isScrollContainer=true android:layout_height=fill_parent android:layout_width=fill_parent android:adjustViewBounds=true /ImageView /HorizontalScrollView /ScrollView 2012/1/24 TreKing treking...@gmail.com On Mon, Jan 23, 2012 at 9:18 AM, Oliviu Vais oliviu.v...@gmail.com wrote: What am i doing wrong? Well you didn't really explain what the problem is. I'm trying to do X is not a problem. What have you debugged and learned so far? What is actually not working? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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 browser
Hi All. I read the news that google is going to open android browser. Where can I find the source code ? Thanks! Cindy -- 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: Scroll View
I don't think so. This viewpager is for dragging. On Jan 24, 11:23 pm, Marcelo Henrique marceloh...@gmail.com wrote: you need viewpager http://android-developers.blogspot.com/2011/08/horizontal-view-swipin... http://developer.android.com/reference/android/support/v4/view/ViewPa... 2012/1/24 Oliviu Vais oliviu.v...@gmail.com I thought it's clear enough. I have a HorizontalScrollView at the bottom of my screen. I want to scroll it left and right by using 2 buttons that are on each side(one for left scroll, one for right). I do not need help in setting the Xml. I need help for the Java class, i cant get my buttons to scroll continous, they scroll only once when i click them. I need them to scroll to the end of the View but not at once, in little continous steps. This is what i have so far: public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch(v.getId()){ case R.id.bRight: sw.smoothScrollBy(20, 0); break; case R.id.bLeft: sw.smoothScrollBy(-20, 0); break; } return false; On Jan 24, 9:42 pm, Marcelo Henrique marceloh...@gmail.com wrote: xml logcat ?xml version=1.0 encoding=utf-8? ScrollView android:id=@+id/ScrollView02 android:layout_width=wrap_content android:layout_height=wrap_content xmlns:android=http://schemas.android.com/apk/res/android; HorizontalScrollView android:id=@+id/HorizontalScrollView01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:src=@drawable/pic android:isScrollContainer=true android:layout_height=fill_parent android:layout_width=fill_parent android:adjustViewBounds=true /ImageView /HorizontalScrollView /ScrollView 2012/1/24 TreKing treking...@gmail.com On Mon, Jan 23, 2012 at 9:18 AM, Oliviu Vais oliviu.v...@gmail.com wrote: What am i doing wrong? Well you didn't really explain what the problem is. I'm trying to do X is not a problem. What have you debugged and learned so far? What is actually not working? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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 -- - Marcelo Henrique - Se não puder se destacar pelo talento, vença pelo esforço. (Dave Weinbaum) -- 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
Re: [android-developers] Re: Scroll View
On Tue, Jan 24, 2012 at 3:06 PM, Oliviu Vais oliviu.v...@gmail.com wrote: I thought it's clear enough. Nope =) I need help for the Java class, i cant get my buttons to scroll continous, they scroll only once when i click them. I need them to scroll to the end of the View but not at once, in little continous steps. This is what i have so far: A - see, that makes a lot more sense than here's some code, what's wrong. I don't know much about the onTouchEvent, but I would guess by the name and what you described that it get's called once, when the view is initially touched, and not continuously as you're wanting to do. Does the method get called when you release as well? If so, or if there is another event that tells you that, you could start a timer on the initial touch which you use to control the scrolling of the view, and then stop it when the view stops being touched. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] android browser
http://source.android.com The source code to the stock Browser has been available since sometime in 2008 IIRC. For further assistance with the source code, visit http://source.android.com and find a suitable Google Group under the Community tab. This list is for developing applications with the Android SDK. On Tue, Jan 24, 2012 at 4:36 PM, cindy ypu01...@yahoo.com wrote: Hi All. I read the news that google is going to open android browser. Where can I find the source code ? Thanks! Cindy -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/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] system/bin/dalvikvm command/
Hi, I want to use the adb shell command: dalvikvm in order to start a new dalvik virtual machine When i try to use it like this: dalvikvm Myclass .it doesn't work When looking at logcat i see that the following error: can't open dex cache /data/dalvik-cache.. As i read this is because i don't have access to that folder. so i changed the ANDROID_DATA environment variable to =/sdcard in adb shell using export. and when trying again i get: can't open dex cache /sdcard/dalvik- cache.. Seems like nothing changed... 1. Does anyone know what's the problem. or even if it is possible to start a new dvm using adb (not forking from zygote process like am command, maybe dvz or app_process) in non rooted devices? 2. Is it possible to tell dalvikvm to skip the dex optimization part? or to tell him that i already have one optimized Thanks for the help Nir -- 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: system/bin/dalvikvm command/
slight correction. after changing the ANDROID_DATA variable my new dex errors are: that it can't find system.framework.jar.classes.dex and more. sounds reasonable that is can't find them since they are probably at / data/... but why do we need them? and this returns me to my first questions: is there another way??? or a solution thanks again Nir On 25 ינואר, 01:03, nir apple apple@gmail.com wrote: Hi, I want to use the adb shell command: dalvikvm in order to start a new dalvik virtual machine When i try to use it like this: dalvikvm Myclass .it doesn't work When looking at logcat i see that the following error: can't open dex cache /data/dalvik-cache.. As i read this is because i don't have access to that folder. so i changed the ANDROID_DATA environment variable to =/sdcard in adb shell using export. and when trying again i get: can't open dex cache /sdcard/dalvik- cache.. Seems like nothing changed... 1. Does anyone know what's the problem. or even if it is possible to start a new dvm using adb (not forking from zygote process like am command, maybe dvz or app_process) in non rooted devices? 2. Is it possible to tell dalvikvm to skip the dex optimization part? or to tell him that i already have one optimized Thanks for the help Nir -- 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
Re: [android-developers] Re: system/bin/dalvikvm command/
http://www.milk.com/kodebase/dalvik-docs-mirror/docs/hello-world.html http://www.netmite.com/android/mydroid/2.0/dalvik/docs/embedded-vm-control.html will be of interest to you.. kris On Tue, Jan 24, 2012 at 6:16 PM, nir apple apple@gmail.com wrote: slight correction. after changing the ANDROID_DATA variable my new dex errors are: that it can't find system.framework.jar.classes.dex and more. sounds reasonable that is can't find them since they are probably at / data/... but why do we need them? and this returns me to my first questions: is there another way??? or a solution thanks again Nir On 25 ינואר, 01:03, nir apple apple@gmail.com wrote: Hi, I want to use the adb shell command: dalvikvm in order to start a new dalvik virtual machine When i try to use it like this: dalvikvm Myclass .it doesn't work When looking at logcat i see that the following error: can't open dex cache /data/dalvik-cache.. As i read this is because i don't have access to that folder. so i changed the ANDROID_DATA environment variable to =/sdcard in adb shell using export. and when trying again i get: can't open dex cache /sdcard/dalvik- cache.. Seems like nothing changed... 1. Does anyone know what's the problem. or even if it is possible to start a new dvm using adb (not forking from zygote process like am command, maybe dvz or app_process) in non rooted devices? 2. Is it possible to tell dalvikvm to skip the dex optimization part? or to tell him that i already have one optimized Thanks for the help Nir -- 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 -- 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
Re: [android-developers] Re: system/bin/dalvikvm command/
I should mention: why are you doing this? If you feel like you need to do this, you are probably doing something wrong. There aren't too many reasons you would need to do this, the only time I've ever done this was when I was actually hacking the vm source. If this is what you intend to do, this is the wrong mailing list to ask.. kris On Tue, Jan 24, 2012 at 6:20 PM, Kristopher Micinski krismicin...@gmail.com wrote: http://www.milk.com/kodebase/dalvik-docs-mirror/docs/hello-world.html http://www.netmite.com/android/mydroid/2.0/dalvik/docs/embedded-vm-control.html will be of interest to you.. kris On Tue, Jan 24, 2012 at 6:16 PM, nir apple apple@gmail.com wrote: slight correction. after changing the ANDROID_DATA variable my new dex errors are: that it can't find system.framework.jar.classes.dex and more. sounds reasonable that is can't find them since they are probably at / data/... but why do we need them? and this returns me to my first questions: is there another way??? or a solution thanks again Nir On 25 ינואר, 01:03, nir apple apple@gmail.com wrote: Hi, I want to use the adb shell command: dalvikvm in order to start a new dalvik virtual machine When i try to use it like this: dalvikvm Myclass .it doesn't work When looking at logcat i see that the following error: can't open dex cache /data/dalvik-cache.. As i read this is because i don't have access to that folder. so i changed the ANDROID_DATA environment variable to =/sdcard in adb shell using export. and when trying again i get: can't open dex cache /sdcard/dalvik- cache.. Seems like nothing changed... 1. Does anyone know what's the problem. or even if it is possible to start a new dvm using adb (not forking from zygote process like am command, maybe dvz or app_process) in non rooted devices? 2. Is it possible to tell dalvikvm to skip the dex optimization part? or to tell him that i already have one optimized Thanks for the help Nir -- 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 -- 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: getApplicationContext() returns null?
Is there a particular reason why you are calling getApplicationContext().getResources(), rather than just getResources()? getResources() is available on Service as well. I honestly don't know/remember why Let me turn the question around, why are you using getApplicationContext()? For example, your sendWakefulWork() looks like this, why? public static void sendWakefulWork(Context ctxt, Intent i) { getLock(ctxt.getApplicationContext()).acquire(); ctxt.startService(i); } I find the regular Context vs. ApplicationContext probably the most confusing aspect of Android, especially the application context is not a proper interface/class, so you cannot make it required. I think this decision by the API design team is causing a lot of headaches for people. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in DC:http://marakana.com/training/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
Re: [android-developers] Re: getApplicationContext() returns null?
On Tue, Jan 24, 2012 at 7:27 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I honestly don't know/remember why Let me turn the question around, why are you using getApplicationContext()? For example, your sendWakefulWork() looks like this, why? public static void sendWakefulWork(Context ctxt, Intent i) { getLock(ctxt.getApplicationContext()).acquire(); ctxt.startService(i); } In the end, I am holding onto a WakeLock in a static data member. You get a WakeLock by asking for one from the PowerManager. You get the PowerManager from a Context. Now, it is entirely likely that the WakeLock will never hold a reference to that Context. But, in case it does, since I'm holding onto it in a static data member, I want to make sure I'm not leaking a Context. Since the Application is a natural singleton, I use the Application to get the PowerManager, to get the WakeLock. In this case, it's probably paranoia. General rules of thumb: if you are holding onto something possibly Context-related from a static data member, use the Application context. Otherwise, don't. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/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] Re: getApplicationContext() returns null?
Ok, thanks. That makes sense. I will try changing my code to not to use getApplicationContext() On Jan 25, 8:37 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jan 24, 2012 at 7:27 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I honestly don't know/remember why Let me turn the question around, why are you using getApplicationContext()? For example, your sendWakefulWork() looks like this, why? public static void sendWakefulWork(Context ctxt, Intent i) { getLock(ctxt.getApplicationContext()).acquire(); ctxt.startService(i); } In the end, I am holding onto a WakeLock in a static data member. You get a WakeLock by asking for one from the PowerManager. You get the PowerManager from a Context. Now, it is entirely likely that the WakeLock will never hold a reference to that Context. But, in case it does, since I'm holding onto it in a static data member, I want to make sure I'm not leaking a Context. Since the Application is a natural singleton, I use the Application to get the PowerManager, to get the WakeLock. In this case, it's probably paranoia. General rules of thumb: if you are holding onto something possibly Context-related from a static data member, use the Application context. Otherwise, don't. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in DC:http://marakana.com/training/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] Are NPOT textures compressed to ETC format supported on SGX540 GPUs?
I noticed today that my OpenGL game was crashing when attempting to load an NPOT texture compressed using ETC format into an SGX540 (Galaxy Nexus to be specific). The stacktrace in the log showed that the crash was happening in the SGX driver. When I run the same code by only change the texture to POT, then everything is ok. I have followed all the rules for using NPOT textures, like ensuring that CLAMP repeat mode is used and LINEAR texture sampling is used (i.e. no mipmapping). Can anyone else confirm this behaviour? Thanks, Mark -- 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] Another free lunch tomorrow for SF devs, from Flurry
Hi everyone, As you may have seen from previous emails, we're doing a series of insanely popular free lunches by our office in SF with top, gourmet food trucks. They fill up super fast, but there are still a few spots left for tomorrow. Just sign up here: http://flurryfoodfestsanguchon.eventbrite.com/ Our last one got us prime-time TV coverage on channel 5: http://sanfrancisco.cbslocal.com/video/6630500-san-francisco-tech-companies-using-perks-to-recruit-talent/ Hope to see you there. All the best, Peter Peter Farago VP Marketing www.flurry.com -- 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: android browser
Thank you for the information. Then what is the meaning of following news release: http://androidcommunity.com/android-web-browser-goes-open-source-chrome-incoming-20110823/ Dose it means the open source android browser will get better? Thanks! April On Jan 24, 2:39 pm, Mark Murphy mmur...@commonsware.com wrote: http://source.android.com The source code to the stock Browser has been available since sometime in 2008 IIRC. For further assistance with the source code, visithttp://source.android.comand find a suitable Google Group under the Community tab. This list is for developing applications with the Android SDK. On Tue, Jan 24, 2012 at 4:36 PM, cindy ypu01...@yahoo.com wrote: Hi All. I read the news that google is going to open android browser. Where can I find the source code ? Thanks! Cindy -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in DC:http://marakana.com/training/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] Re: Logcat is broken every time phone is unplugged
The following appears in the Console window when I plug the usb cable into the phone. Any ideas? [2012-01-24 18:27:21 - Unexpected error while launching logcat. Try reselecting the device.] device not found com.android.ddmlib.AdbCommandRejectedException: device not found at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java: 373) at com.android.ddmlib.Device.executeShellCommand(Device.java:372) at com.android.ddmuilib.logcat.LogCatReceiver $1.run(LogCatReceiver.java:100) at java.lang.Thread.run(Thread.java:680) -- 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: Strange behavior with Theme.DeviceDefault.Light
No one else noticed this problem? Are you all using the default/dark theme? This isn't an issue for you guys? -- 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] RelativeLayout created in Java not XML - is this possible?
I want to create a RelativeLayout in Java code, rather than using the XML format. It seems RelativeLayout.LayoutParams.addRule() would be the way to add relative positioning constraints. However, this doesn't take a View anchor argument, just an int anchor argument. Does this mean you can only use XML-specified Views as the anchor in constraints? All the examples tutorials I've found for RelativeLayout assume you are using XML-specifications. I'm constructing the layout programmatically because the layout is very dynamic - each region of the screen has structured content (eg, a crossword square) which varies according to the size of the crossword chosen, and the degree of zooming. -- 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
Re: [android-developers] Spinner example has no prompt
At 02:21 AM 1/23/2012, you wrote: At 07:29 PM 1/21/2012, Ray Tayek wrote: hi, newbie here. ... running the spinner example shows earth. the prompt is not visible also, the spinner prompts in my project are not visible... found clue: http://groups.google.com/group/android-developers/browse_thread/thread/d93ce1ef583a2a29 thanks --- co-chair http://ocjug.org/ -- 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: RelativeLayout created in Java not XML - is this possible?
If I understand you correctly, this is certainly possible. The integer argument is an ID, so you just have to call setId() on your programmatically created views first (where each ID is unique...), and then use view.getId() in the addRule() method. See here for a somewhat more complete explanation: http://stackoverflow.com/questions/2305395/laying-out-views-in-relativelayout-programmatically On Jan 24, 9:57 pm, Guy Smith g...@multiniche.org wrote: I want to create a RelativeLayout in Java code, rather than using the XML format. It seems RelativeLayout.LayoutParams.addRule() would be the way to add relative positioning constraints. However, this doesn't take a View anchor argument, just an int anchor argument. Does this mean you can only use XML-specified Views as the anchor in constraints? All the examples tutorials I've found for RelativeLayout assume you are using XML-specifications. I'm constructing the layout programmatically because the layout is very dynamic - each region of the screen has structured content (eg, a crossword square) which varies according to the size of the crossword chosen, and the degree of zooming. -- 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 GPS within a rectangular area
This is my code objective: I want an android application to start to trigger connecting to server and sending the latitude and longitude only when the phone (being used in a car) is within a road area ( say an area 1km x 30m ). It is continuously listening to its location but will start sending to server once it enters the area and will continuously send and will stop only once it exit the area. A good answer i received for this: create two location, a NorthWest location and a SouthEast location that represent your box. In your onLocationChanged method, compare the new location with the corners, such that (l.lat se.lat l.lat nw.lat) and (l.lon se.lon l.lon nw.lon) where l is the newest location from the callback, se is the south east corner of your boundary and nw is the north west corner of your bounder. If it meets the 4 above conditions, then you send to your server I think this is applicable when a pair of the sides of the rectangular area are parallel to the latitude(equator) and the other pair of the sides parallel to the longitude lines (meridian). What if the rectangular area's sides are not parallel to the latitude and longitude lines . How can I meet my objective? Proximity alert will form a circle. Should a mathematical formula do it sir? -- 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: Another free lunch tomorrow for SF devs, from Flurry
There's no such thing as a free lunch! -- 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
Re: [android-developers] Spinner example has no prompt
At 07:07 PM 1/24/2012, you wrote: At 02:21 AM 1/23/2012, you wrote: At 07:29 PM 1/21/2012, Ray Tayek wrote: hi, newbie here. ... running the spinner example shows earth. the prompt is not visible also, the spinner prompts in my project are not visible... found clue: http://groups.google.com/group/android-developers/browse_thread/thread/d93ce1ef583a2a29 more clues: more clues: http://stackoverflow.com/questions/867518/how-to-make-an-android-spinner-with-initial-text-select-one has anyone seen a prompt in a spinner in without some special code using 4.0.3 spi level 15? thanks --- co-chair http://ocjug.org/ -- 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
Re: [android-developers] Re: How I use Web Services in android.?
u can refer stackoverflow for this it may help u a lot On Tue, Jan 24, 2012 at 6:59 PM, Harpreet Singh harry...@gmail.com wrote: Actually I have to develop the app in form that the user access id pwd has to be checked from site and get the response. User should always be on app, I dont have to take him to any website, he has to access everything on app. :) On Jan 24, 4:28 pm, unicus unicus unicus...@gmail.com wrote: ok then learn how to consume soap based website in android. -- *More info*,http://androidbasic-answer.blogspot.com/ On Mon, Jan 23, 2012 at 7:18 PM, Harpreet Singh harry...@gmail.com wrote: Actually the website is developed in .NET, they are going to provide me WebServices information. I studied regarding web services on internet and going to develop it using ksoap2, wsdl and whatever it needs. Sorry actually I am new to this stuff. Please do suggest whatever you like, like:: What concept should I use and all. Thanks. On Jan 22, 4:50 pm, unicus unicus unicus...@gmail.com wrote: Is your web service is soap based or simple servlet?. On Fri, Jan 20, 2012 at 11:21 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh harry...@gmail.com wrote: How can I communicate with the database which that site is using? Have the site developers provide you an api. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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 -- 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 -- Bhaumik Thaker -- 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
Re: [android-developers] Re: How I use Web Services in android.?
hello I have used a web service created in .NET in android in my application. so please let me knw what exactly you want to do. so that i can send u demo example for this thank you regards On Wed, Jan 25, 2012 at 10:12 AM, Bhaumik Thaker bgtha...@gmail.com wrote: u can refer stackoverflow for this it may help u a lot On Tue, Jan 24, 2012 at 6:59 PM, Harpreet Singh harry...@gmail.comwrote: Actually I have to develop the app in form that the user access id pwd has to be checked from site and get the response. User should always be on app, I dont have to take him to any website, he has to access everything on app. :) On Jan 24, 4:28 pm, unicus unicus unicus...@gmail.com wrote: ok then learn how to consume soap based website in android. -- *More info*,http://androidbasic-answer.blogspot.com/ On Mon, Jan 23, 2012 at 7:18 PM, Harpreet Singh harry...@gmail.com wrote: Actually the website is developed in .NET, they are going to provide me WebServices information. I studied regarding web services on internet and going to develop it using ksoap2, wsdl and whatever it needs. Sorry actually I am new to this stuff. Please do suggest whatever you like, like:: What concept should I use and all. Thanks. On Jan 22, 4:50 pm, unicus unicus unicus...@gmail.com wrote: Is your web service is soap based or simple servlet?. On Fri, Jan 20, 2012 at 11:21 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 19, 2012 at 6:39 AM, Harpreet Singh harry...@gmail.com wrote: How can I communicate with the database which that site is using? Have the site developers provide you an api. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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 -- 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 -- Bhaumik Thaker -- 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 -- 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] CTS on android emulator
Hi All, We are running CTS on android emulator. android.holo.cts.HoloTest is failing on emulator. Is this failure because, I am using an emulator and it wont be the case on actual target?? In other words, if some package is failing on emulator, is it sure that the same will fail on target also?? thanks in advance. -- 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
Re: [android-developers] Android GPS within a rectangular area
The problem you are trying to solve is very common, google point in polygon kris On Tue, Jan 24, 2012 at 10:14 PM, coollearner josephmmagt...@gmail.com wrote: This is my code objective: I want an android application to start to trigger connecting to server and sending the latitude and longitude only when the phone (being used in a car) is within a road area ( say an area 1km x 30m ). It is continuously listening to its location but will start sending to server once it enters the area and will continuously send and will stop only once it exit the area. A good answer i received for this: create two location, a NorthWest location and a SouthEast location that represent your box. In your onLocationChanged method, compare the new location with the corners, such that (l.lat se.lat l.lat nw.lat) and (l.lon se.lon l.lon nw.lon) where l is the newest location from the callback, se is the south east corner of your boundary and nw is the north west corner of your bounder. If it meets the 4 above conditions, then you send to your server I think this is applicable when a pair of the sides of the rectangular area are parallel to the latitude(equator) and the other pair of the sides parallel to the longitude lines (meridian). What if the rectangular area's sides are not parallel to the latitude and longitude lines . How can I meet my objective? Proximity alert will form a circle. Should a mathematical formula do it sir? -- 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 -- 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: Re : onclick button
Hi Ratheesh, Here is my scenario i m listing images with text using ListActivity,what i have to do is on clicking the text or imgae i have to display another list of details for the corresponding one.When i m using ImageAndTextAdapter activity i can build my application but when i run the application it crashes. thanks regards, Vivek On Jan 18, 4:34 pm, Ratheesh Valamchuzhy android...@gmail.com wrote: while clicking one image , start a new activity and pass the image to that activity and display the image on that activity..include the activity name in manifest also... -- 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
Re: [android-developers] Re: Re : onclick button
Please Paste your Logs here so that it will be easy to understand your issue. secondly check the activity is declared in the AndroidManifest file. Third, instead of calling the activity directly , have a console message see whether it appears on the loglist. -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Wed, Jan 25, 2012 at 10:55 AM, vivek elangovan elangovan.vi...@gmail.com wrote: Hi Ratheesh, Here is my scenario i m listing images with text using ListActivity,what i have to do is on clicking the text or imgae i have to display another list of details for the corresponding one.When i m using ImageAndTextAdapter activity i can build my application but when i run the application it crashes. thanks regards, Vivek On Jan 18, 4:34 pm, Ratheesh Valamchuzhy android...@gmail.com wrote: while clicking one image , start a new activity and pass the image to that activity and display the image on that activity..include the activity name in manifest also... -- 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 -- 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
Re: [android-developers] Re: Another free lunch tomorrow for SF devs, from Flurry
Out of Android Development topic. Mate, find a different forum. -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Wed, Jan 25, 2012 at 9:05 AM, John Coryat cor...@gmail.com wrote: There's no such thing as a free lunch! -- 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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS
I hope this is a software bug, and can be fixed in next firmware release, maybe 4.0.4. On Jan 24, 8:36 am, Mark Murphy mmur...@commonsware.com wrote: You cannot register for ACTION_BATTERY_CHANGED from the manifest. It has to be via registerReceiver() in Java code. On Mon, Jan 23, 2012 at 5:21 PM, SimonP snpre...@hotmail.com wrote: No idea but I'm also looking for a solution, I'm using a nearly identical bit of code to you and getting the same error. The really weird thing was I changed a load of code to see if I could get an event from just the battery level changing instead. I used the following in the manifest: receiver android:name=.receiver.OnPowerReceiver android:enabled=true android:exported=true intent-filter action android:name=android.intent.action.ACTION_BATTERY_CHANGED / /intent-filter /receiver and it still happened, even placing it into a new project and new AVB. Basically I know I have not referencedACTION_POWER_CONNECTEDin anything I put in there but in the eclipse LogCat logs I still get the exact same error as before referencing it; The only value I have seen change is the number in brackets in PowerUI(). Anyone got any ideas? What am I doing wrong, I know it'll be something obvious but I'm battering my head off the desk at this point... On Jan 8, 1:32 pm, cl cllam2...@gmail.com wrote: I wanted to detect when the phone is pluged into the charger. I created a BroadcastReceiver as below public class PowerReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED)) { Log.d(DEBUG, Power connected...); } } } with following in the manifest receiver android:name=.PowerReceiver intent-filter action android:name=android.intent.action.ACTION_POWER_CONNECTED / /intent-filter /receiver Everything work as expected on 2.2 (emulator and phone), but on ICS (emulator 4.0.3 and phone 4.0.1), the LogCat show 01-08 21:02:02.090: W/PowerUI(143): unknown intent: Intent { act=android.intent.action.ACTION_POWER_CONNECTEDflg=0x1010 } Anybody know reason, and a solution. 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS
I hope this (ACTION_POWER_CONNECTED) is a software bug, and can be fixed in next firmware release, maybe 4.0.4. On Jan 25, 2:17 pm, cl cllam2...@gmail.com wrote: I hope this is a software bug, and can be fixed in next firmware release, maybe 4.0.4. On Jan 24, 8:36 am, Mark Murphy mmur...@commonsware.com wrote: You cannot register for ACTION_BATTERY_CHANGED from the manifest. It has to be via registerReceiver() in Java code. On Mon, Jan 23, 2012 at 5:21 PM, SimonP snpre...@hotmail.com wrote: No idea but I'm also looking for a solution, I'm using a nearly identical bit of code to you and getting the same error. The really weird thing was I changed a load of code to see if I could get an event from just the battery level changing instead. I used the following in the manifest: receiver android:name=.receiver.OnPowerReceiver android:enabled=true android:exported=true intent-filter action android:name=android.intent.action.ACTION_BATTERY_CHANGED / /intent-filter /receiver and it still happened, even placing it into a new project and new AVB. Basically I know I have not referencedACTION_POWER_CONNECTEDin anything I put in there but in the eclipse LogCat logs I still get the exact same error as before referencing it; The only value I have seen change is the number in brackets in PowerUI(). Anyone got any ideas? What am I doing wrong, I know it'll be something obvious but I'm battering my head off the desk at this point... On Jan 8, 1:32 pm, cl cllam2...@gmail.com wrote: I wanted to detect when the phone is pluged into the charger. I created a BroadcastReceiver as below public class PowerReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED)) { Log.d(DEBUG, Power connected...); } } } with following in the manifest receiver android:name=.PowerReceiver intent-filter action android:name=android.intent.action.ACTION_POWER_CONNECTED / /intent-filter /receiver Everything work as expected on 2.2 (emulator and phone), but on ICS (emulator 4.0.3 and phone 4.0.1), the LogCat show 01-08 21:02:02.090: W/PowerUI(143): unknown intent: Intent { act=android.intent.action.ACTION_POWER_CONNECTEDflg=0x1010 } Anybody know reason, and a solution. 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- 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 on uploading image to server
Hi all, I am trying to upload image to php server but it is not up loading here is my following code public class ImageUpload extends Activity { Bitmap bm; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); try { bm = BitmapFactory.decodeResource(getResources(), R.drawable.icon); // bm = BitmapFactory.decodeFile(/sdcard/DCIM/forest.png); executeMultipartPost(); } catch (Exception e) { Log.e(e.getClass().getName(), e.getMessage()); } } public void executeMultipartPost() throws Exception { try { ByteArrayOutputStream bos = new ByteArrayOutputStream(); bm.compress(CompressFormat.JPEG, 75, bos); byte[] data = bos.toByteArray(); HttpClient httpClient = new DefaultHttpClient(); HttpPost postRequest = new HttpPost( http://ncpo.cc/android/uploadbespokecase.php;); // ByteArrayBody bab = new ByteArrayBody(data, icon.jpg); File file = new File(/sdcard/FB_loginnew.png); FileBody bin = new FileBody(file); MultipartEntity reqEntity = new MultipartEntity( HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(uploaded, bin); reqEntity.addPart(photoCaption, new StringBody(sfsdfsdf)); postRequest.setEntity(reqEntity); HttpResponse response = httpClient.execute(postRequest); BufferedReader reader = new BufferedReader(new InputStreamReader( response.getEntity().getContent(), UTF-8)); String sResponse; StringBuilder s = new StringBuilder(); while ((sResponse = reader.readLine()) != null) { s = s.append(sResponse); } System.out.println(Response: + s); Log.d(Image up load, Response + s); bm.recycle(); } catch (Exception e) { // handle exception here Log.e(e.getClass().getName(), e.getMessage()); } } } Please any one help me . i am un able to find the errror. -- 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