Re: [android-developers] Wierd memory leak
On Thursday, October 7, 2010, DanH danhi...@ieee.org wrote: Yep, substring MAY (or may not) decide to avoid copying the characters and simply keep a reference to the char array in the source String. A smart substring implementation wouldn't do this if the result string were quite short or the source string quite long, but apparently the Android implementation isn't that smart. It's a very reasonable behaviour of String class when we take into account that String is immutable and very often Strings are responsible for big chunks of memory allocation. Behaviour of String.substring() makes therefore sense in some(most?) situations. Any other behaviour could cause equally puzzling results in other situations. Another important thing to take into account is that String behaviour is imposed on JVM level (at least Sun's JVM but Dalvik deriving from Apache Harmony will most likely implement similar strategies). Fault lies in details like these not being communicated well enough in the documentation. The same thing may occur if you do new String(someOtherString). There's probably no guaranteed way to prevent this from happening, unless you somehow use a char array as an intermediate value. On Oct 6, 1:50 pm, Alex a...@appfactory.at wrote: Hi everybody! First of all, sorry for my bad english ;-) After several hours of searching for the cause of a OutOfMemoryError, I found a wierd problem with Strings. To keep it simple, trimmed it down to something like this: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString); } OK, it's not very useful and even though it's a big string, I would expect it to work properly, because only one char is stored in the list. But in fact, heap is growing rapidly and OutOfMemoryError exception will be thrown in 2,3 seconds. And I can't imagin why. AND NOW the interessting part, a little workaround: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString + BUGFIX); } WTF? Why is this now working? The only difference is the concatenated string (someSmallString + BUGFIX)! And as originally expected, with this workaround nearly no memory will be used ... Any ideas? I would appreciate it very much, if someone could give me hint. Maybe I'm missing something basic here? -- 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 -- Daniel Drozdzewski -- 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] Wierd memory leak
On Thursday, October 7, 2010, DanH danhi...@ieee.org wrote: Yep, substring MAY (or may not) decide to avoid copying the characters and simply keep a reference to the char array in the source String. A smart substring implementation wouldn't do this if the result string were quite short or the source string quite long, but apparently the Android implementation isn't that smart. It's a very reasonable behaviour of String class when we take into account that String is immutable and very often Strings are responsible for big chunks of memory allocation. Behaviour of String.substring() makes therefore sense in some(most?) situations. Any other behaviour could cause equally puzzling results in other situations. Another important thing to take into account is that String behaviour is imposed on JVM level (at least Sun's JVM but Dalvik deriving from Apache Harmony will most likely implement similar strategies). Fault lies in details like these not being communicated well enough in the documentation. The same thing may occur if you do new String(someOtherString). There's probably no guaranteed way to prevent this from happening, unless you somehow use a char array as an intermediate value. On Oct 6, 1:50 pm, Alex a...@appfactory.at wrote: Hi everybody! First of all, sorry for my bad english ;-) After several hours of searching for the cause of a OutOfMemoryError, I found a wierd problem with Strings. To keep it simple, trimmed it down to something like this: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString); } OK, it's not very useful and even though it's a big string, I would expect it to work properly, because only one char is stored in the list. But in fact, heap is growing rapidly and OutOfMemoryError exception will be thrown in 2,3 seconds. And I can't imagin why. AND NOW the interessting part, a little workaround: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString + BUGFIX); } WTF? Why is this now working? The only difference is the concatenated string (someSmallString + BUGFIX)! And as originally expected, with this workaround nearly no memory will be used ... Any ideas? I would appreciate it very much, if someone could give me hint. Maybe I'm missing something basic here? -- 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 -- Daniel Drozdzewski -- 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] Wierd memory leak
On Thursday, October 7, 2010, DanH danhi...@ieee.org wrote: Yep, substring MAY (or may not) decide to avoid copying the characters and simply keep a reference to the char array in the source String. A smart substring implementation wouldn't do this if the result string were quite short or the source string quite long, but apparently the Android implementation isn't that smart. It's a very reasonable behaviour of String class when we take into account that String is immutable and very often Strings are responsible for big chunks of memory allocation. Behaviour of String.substring() makes therefore sense in some(most?) situations. Any other behaviour could cause equally puzzling results in other situations. Another important thing to take into account is that String behaviour is imposed on JVM level (at least Sun's JVM but Dalvik deriving from Apache Harmony will most likely implement similar strategies). Fault lies in details like these not being communicated well enough in the documentation. The same thing may occur if you do new String(someOtherString). There's probably no guaranteed way to prevent this from happening, unless you somehow use a char array as an intermediate value. On Oct 6, 1:50 pm, Alex a...@appfactory.at wrote: Hi everybody! First of all, sorry for my bad english ;-) After several hours of searching for the cause of a OutOfMemoryError, I found a wierd problem with Strings. To keep it simple, trimmed it down to something like this: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString); } OK, it's not very useful and even though it's a big string, I would expect it to work properly, because only one char is stored in the list. But in fact, heap is growing rapidly and OutOfMemoryError exception will be thrown in 2,3 seconds. And I can't imagin why. AND NOW the interessting part, a little workaround: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString + BUGFIX); } WTF? Why is this now working? The only difference is the concatenated string (someSmallString + BUGFIX)! And as originally expected, with this workaround nearly no memory will be used ... Any ideas? I would appreciate it very much, if someone could give me hint. Maybe I'm missing something basic here? -- 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 -- Daniel Drozdzewski -- 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] Theme.Dialog - Remove Title Area?
Use: requestWindowFeature(Window.FEATURE_NO_TITLE); On Wed, Oct 6, 2010 at 10:52 PM, Kumar Bibek coomar@gmail.com wrote: Remove the title. As you would have done on an activity. On Wed, Sep 29, 2010 at 7:08 AM, Peake peakeinteract...@gmail.com wrote: I have an activity that is using android:theme=@android:style/ Theme.Dialog, and I want to get rid of the black line (looks to be about 20dp height) where the Dialog title would normally go. I just want the content area of the Dialog. Any ideas? -- 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 -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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: Lost Checked state of check box in ListView while scrolling
When you bind the list item view, you should be populating the checkbox based on your own list of checked items. On Oct 7, 1:34 pm, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, I'm facing problem in scrolling. I've 20-25 items in my List, if i checked first check box, scroll down, then come up, my checked status lost (becomes unchecked), in cursor adaptor. If i use base adaptor problem is resolved but major issue with base adaptor is performance, if my list goes beyond the 100 items. I need help, i'm stuck here since more than 7-8 days -- 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: Android Web Server
What about service providers which don't allow or firewall most if not all incoming ports? Can you still act a server? But yeah, I guess for private networks you could do some interesting stuff. On Wed, Oct 6, 2010 at 8:09 PM, kypriakos demet...@ece.neu.edu wrote: To answer Miguel's question(s): (1) Because I can ;) thanks to iJetty. (2) We are building peer-to-peer composite service middleware for mobile devices. Services such as shared calendars across trusted groups or phone cam etc. I have done this successfully on Nokia Internet Tablets (Java CDC) and the performance was fairly good. Not sure how Android devices will fare on all this but that's the reason of the exercise anyway On Oct 6, 6:11 pm, Bret Foreman bret.fore...@gmail.com wrote: I've been looking at doing the same thing so one of my apps can offer web services. I'll be interested to hear what people think. On Oct 6, 2:59 pm, Miguel Morales therevolti...@gmail.com wrote: You want to run an HTTP server on Android? Why? -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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] scrollbar drawable not appearing properly
Hi All, I tried replacing scrollbar image with another drawable,setting scrollbar to a listview,but scrollbar image is appearing very weird,it is stretched vertically. I am setting to list view as android:scrollbarThumbVertical=@drawable/scrollbar android:scrollbarTrackVertical=@drawable/scrollbar Is there any other attribute i need to set to make image appear properly. Thanks Kavitha -- 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: Android Web Server
as long as you have access to a public server, you could always do a tunnel. I used to send stuff behind nat through ssh On Thu, Oct 7, 2010 at 2:22 AM, Miguel Morales therevolti...@gmail.comwrote: What about service providers which don't allow or firewall most if not all incoming ports? Can you still act a server? But yeah, I guess for private networks you could do some interesting stuff. On Wed, Oct 6, 2010 at 8:09 PM, kypriakos demet...@ece.neu.edu wrote: To answer Miguel's question(s): (1) Because I can ;) thanks to iJetty. (2) We are building peer-to-peer composite service middleware for mobile devices. Services such as shared calendars across trusted groups or phone cam etc. I have done this successfully on Nokia Internet Tablets (Java CDC) and the performance was fairly good. Not sure how Android devices will fare on all this but that's the reason of the exercise anyway On Oct 6, 6:11 pm, Bret Foreman bret.fore...@gmail.com wrote: I've been looking at doing the same thing so one of my apps can offer web services. I'll be interested to hear what people think. On Oct 6, 2:59 pm, Miguel Morales therevolti...@gmail.com wrote: You want to run an HTTP server on Android? Why? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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.comandroid-developers%2bunsubscr...@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 get Android Source code?
I am having trouble with one of the phones. It is using Version 2.1 - update 1. I would like to download the source code to check that. However, I am on Windows platform, so I cannot use GIT. Is there any other way to download/browse the code for this particular release? I could not find this version under android.git.kernel.org. Any pointers? -- 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] Aplicação criação de ar quivo PDF.
Hi, I'm pretty sure the only official language for this group is English. Best regards, Filip Havlicek 2010/10/6 Erick erickbrit...@gmail.com Ola a todos! Estou com uma solicitação de desenvolvimento de uma aplicação que crie um arquivo PDF, tentei usar o IText mas na hora de fazer o PdfWriter.getInstance(doc, os); apresenta erro ERROR/dalvikvm(223): Could not find method java.awt.Color.equals, referenced from method com.lowagie.text.Font.compareTo. Alguém já escreveu algum código para criação de PDF para Android? Att, Érick. -- 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.comandroid-developers%2bunsubscr...@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: Android Web Server
I'd figure that would kill performance. Right? On Wed, Oct 6, 2010 at 11:35 PM, xiaoxiong weng ad...@littlebearz.com wrote: as long as you have access to a public server, you could always do a tunnel. I used to send stuff behind nat through ssh On Thu, Oct 7, 2010 at 2:22 AM, Miguel Morales therevolti...@gmail.com wrote: What about service providers which don't allow or firewall most if not all incoming ports? Can you still act a server? But yeah, I guess for private networks you could do some interesting stuff. On Wed, Oct 6, 2010 at 8:09 PM, kypriakos demet...@ece.neu.edu wrote: To answer Miguel's question(s): (1) Because I can ;) thanks to iJetty. (2) We are building peer-to-peer composite service middleware for mobile devices. Services such as shared calendars across trusted groups or phone cam etc. I have done this successfully on Nokia Internet Tablets (Java CDC) and the performance was fairly good. Not sure how Android devices will fare on all this but that's the reason of the exercise anyway On Oct 6, 6:11 pm, Bret Foreman bret.fore...@gmail.com wrote: I've been looking at doing the same thing so one of my apps can offer web services. I'll be interested to hear what people think. On Oct 6, 2:59 pm, Miguel Morales therevolti...@gmail.com wrote: You want to run an HTTP server on Android? Why? -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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] Lost Checked state of check box in ListView while scrolling
thanks for replay, but how to handle it, please provide the logic or code. --RKJ On Thu, Oct 7, 2010 at 11:06 AM, Kumar Bibek coomar@gmail.com wrote: Since the ListView recylces the convertViews, you will have to keep track of the items which are selected when they go off the screen. This happens when you use convert views for lists and recycle it. On Thu, Oct 7, 2010 at 11:04 AM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, I'm facing problem in scrolling. I've 20-25 items in my List, if i checked first check box, scroll down, then come up, my checked status lost (becomes unchecked), in cursor adaptor. If i use base adaptor problem is resolved but major issue with base adaptor is performance, if my list goes beyond the 100 items. I need help, i'm stuck here since more than 7-8 days -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- 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] Date/time format change broadcast
Hi, yes, you actually are - ACTION_TIME_CHANGED and ACTION_DATE_CHANGED. Best regards, Filip Havlicek 2010/10/7 Zsolt Vasvari zvasv...@gmail.com I am using android.intent.action.LOCALE_CHANGED to detect language changes and update my widgets. Is there something analogous for date and time format changes? I don't see anything, but I could be just blind -- 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.comandroid-developers%2bunsubscr...@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] HELLO I HAVE THIS QUESTION????(ABOUT ANATOMY):
:) thanks for suggestion On Sun, Oct 3, 2010 at 12:15 AM, hugeman gp.ah...@gmail.com wrote: WHY DON'T U DEVELOP ANATOMY APPS AS BEAUTIFUL AS IPHONE I'LL BUY THEM RIGHT AWAY.ALSO MEDICAL APPS IN GENERAL CUZ THERE ARE SOME BUT ALL ARE BAD. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- 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] project help
I'm with TreKing, we r here to solve specific problem not a particular problem, if u want a tutor, you need to pay, if u want consult me On Thu, Oct 7, 2010 at 7:43 AM, TreKing treking...@gmail.com wrote: On Sat, Oct 2, 2010 at 7:25 PM, Mike karl mike.d.k...@gmail.com wrote: i have great ideas Don't we all though? =) what im looking for is someone that would like to guide me. Yeah ... realistically, that's not going to happen. Many people here are happy to help with specific issues but who's really going to stop what they're doing to start guiding a random person? i have a google merch account and all things needed to deploy to the android market. Yeah, but so do the rest of us, along with our own apps and ideas we're working on. and willing to split all earnings in half. Half of almost nothing is enticing, but I think you're going to have to offer up-front payment if you want a personal tutor. OR ... more realistically, pick up a few good books, read over the Android docs, monitor this group for pertinent information, maybe take a class or two, and get to work implementing your splendor of ideas, asking questions as you get stuck. Good luck. - 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- 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: Killi Process with files on SD card
I have found a solution on 2.2 : before receiving the intent ACTION_MEDIA_EJECT, there is a few line in the logcat that indicate the SD card is going to be unmounted. So I just check in the last few logcat lines with Runtime.getRuntime().exec(new String[]{logcat, -d, -t 10, VoldCmdListener:V *:S}); to see if there is the line D/ VoldCmdListener( ): storage users /mnt/sdcard which indicate the SD card is going to be unmounted. It's not great, but it works. On 7 oct, 00:08, mkellner m.kin...@gmail.com wrote: On Aug 28, 3:06 pm, Ken Yang kuas216...@gmail.com wrote: I did it the same way... but it only works on 1.6、2.1 device.. it's doesn't work on 2.2 device, no matter on nexus one or 2.2 emulator... My code was working fine, receiving ACTION_MEDIA_EJECT when the user unmounted the /sdcard. After update to 2.2, I no longer receive this Intent. I went back to a 2.1 device and EJECT works. Does anyone receive a ACTION_MEDIA_EJECT broadcast with 2.2? -- 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 get Android Source code?
You can get GIT for Windows. There are at least two options: MSYSGit http://code.google.com/p/msysgit/ Cygwin GIT http://cygwin.com/packages/git/ On Oct 7, 2:38 am, Indu isadas...@gmail.com wrote: I am having trouble with one of the phones. It is using Version 2.1 - update 1. I would like to download the source code to check that. However, I am on Windows platform, so I cannot use GIT. Is there any other way to download/browse the code for this particular release? I could not find this version under android.git.kernel.org. Any pointers? -- 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: project help
Hi Mike, That's a very long mail just to try to hire an Android developper for half the potential revenue of splendor ideas you don't share anything about :) I think Treking and Rocky are right. May I suggest you go back to West Virginia University and find an under graduate in computer science ? Your deal is more likely to ring a bell there and he'll put time and effort you can't imagine. You can even lure them with the $13k a month success story from the creator of car locator :) Take care and I look forward to see your splendor apps on the market. Keep us posted. Yahel -- 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: Wierd memory leak
Thanks a lot, working with StringBuffer and it's impelemention of substring did the trick! As a C# developer, I'm not used to think of such things ... ;-) Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Video streaming from android mobile phone to a remote computer
Because I was asked by several to share the code I used for capturing from the camera, here is where I got the idea from: http://beta.codeproject.com/script/Articles/ViewDownloads.aspx?aid=107270 On 27 Σεπτ, 17:29, Christina Loop chrisandroul...@gmail.com wrote: Hello everyone, The problem I have is in the implementation of a video streaming application. What I need to do is to stream live what I record with the androids' camera, to a remote computer. I managed to establish a connection between the mobile phone and the computer, but I do not know how to send the video. I searched through forums, and I found out that in order to send a streaming video you have you use the ParcelFileDescriptor. So I created an instance of MediaRecorder with encoding H263 and .mp4 file format, I created a Socket and then I created a new ParcelFileDescriptor connecting it with the socket. If that is correct then the android application that I created is functional. What I don't know now is what to do at the side of the computer in order to receive and view the streaming video. I tried using JMF, but it doesn't support .mp4 video files. What do you suggest me to do? Or where to look in order to find a solution? Thank you in advance, Christina -- 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: Anybody experiencing a boost in sales since opening up to other countries?
I saw an unusual spike on the 3rd and 4th of this month (roughly 30%), and then a substantial dip on the 5th the erased any unusual gains that I saw on the previous days. As far as I can tell, my buyers are not really coming from additional countries. One user from India noted that he saw my app where it was not visible before. Business as usual for me. On Oct 6, 4:54 pm, JonFHancock jonfhanc...@gmail.com wrote: Since the market opened in more countries a few days ago, I've seen a nice boost of about 20-40 sales per day. At first I thought some blog had posted something about my app, but nope. My website traffic is normal too. The only thing I can attribute it to is a broader audience. It has been really nice. Just wondering if anybody else is seeing this. -- 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 ANY BODY HAVE SMALL PROJECTS RELATED TO PIZZA IN ANDROID PLZ SEND ME THE PROJECT -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can I use different row view for selected or unselected list item?
My intent was to use different view defined in xml when an item is clicked. I overwritten getView method in my child class of SimpleCursorAdapter: @Override public View getView(int position, View convertView, ViewGroup parent) { if (position == mSelectedItemPos) { Log.v(_TAG, Highlight position + position); setViewResource(R.layout.expense_his_list_row_hightlighted); } else { Log.v(_TAG, un-highlight position + position); setViewResource(R.layout.expense_his_list_row); } View newView = super.getView(position, convertView, parent); return newView; } But it did not work as expected unless the activity is restarted. Do not know why and there's better choice to load different view for list item dynamically? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: UI troubles with Android 2.2
The second trouble is resolved thanks to another message in this google group ( http://groups.google.com/group/android-developers/browse_thread/thread/4e8ad65d5cc7f103/c0986e9ad4e655e2 ). Nested scrollviews don't work anymore. Does anyone have an idea why several click attempts are necessary to open the context menu by clicking on an ImageView (located inside a ListView)? On 6 oct, 20:30, Thibaut aar...@gmail.com wrote: Hello, I have some strange UI troubles with Android 2.2. First, I set an OnClickListener on an ImageView that should open the context menu. Nothing happens on the first click attempts, but the next ones trigger several context menu openings (the menu opens itself when a menu item is selected) ... Second, if the screen is landscape-oriented, a HorizontalScrollViewer doesn't scroll as expected. It breaks its self movements, giving the feeling to scroll step by step. Its behavior is normal when the screen is portrait-oriented. And everything is normal with Android 2.1. Thanks Thibaut -- 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] How can I use different row view for selected or unselected list item?
View newView = super.getView(position, convertView, parent); Why are you calling the super.getView??? http://android.amberfog.com/?p=296 you will find an example towards the end of this page. On Thu, Oct 7, 2010 at 1:36 PM, Xiongzh zx.zhangxi...@gmail.com wrote: My intent was to use different view defined in xml when an item is clicked. I overwritten getView method in my child class of SimpleCursorAdapter: @Override public View getView(int position, View convertView, ViewGroup parent) { if (position == mSelectedItemPos) { Log.v(_TAG, Highlight position + position); setViewResource(R.layout.expense_his_list_row_hightlighted); } else { Log.v(_TAG, un-highlight position + position); setViewResource(R.layout.expense_his_list_row); } View newView = super.getView(position, convertView, parent); return newView; } But it did not work as expected unless the activity is restarted. Do not know why and there's better choice to load different view for list item dynamically? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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: Lost Checked state of check box in ListView while scrolling
No, won't write the code for you. Just keep the selected item ids in a member SparseArray or something. Add/remove the items as they are clicked on and query it when you are binding the view. On Oct 7, 2:46 pm, Rocky rkjhaw1...@gmail.com wrote: thanks for replay, but how to handle it, please provide the logic or code. --RKJ On Thu, Oct 7, 2010 at 11:06 AM, Kumar Bibek coomar@gmail.com wrote: Since the ListView recylces the convertViews, you will have to keep track of the items which are selected when they go off the screen. This happens when you use convert views for lists and recycle it. On Thu, Oct 7, 2010 at 11:04 AM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, I'm facing problem in scrolling. I've 20-25 items in my List, if i checked first check box, scroll down, then come up, my checked status lost (becomes unchecked), in cursor adaptor. If i use base adaptor problem is resolved but major issue with base adaptor is performance, if my list goes beyond the 100 items. I need help, i'm stuck here since more than 7-8 days -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619- 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: How can I use different row view for selected or unselected list item?
I call super.getView because I don't want to inflate the view and set the value by myself. I want the parent class to do that for me but use different view. On 10月7日, 下午4时17分, Kumar Bibek coomar@gmail.com wrote: View newView = super.getView(position, convertView, parent); Why are you calling the super.getView??? http://android.amberfog.com/?p=296you will find an example towards the end of this page. On Thu, Oct 7, 2010 at 1:36 PM, Xiongzh zx.zhangxi...@gmail.com wrote: My intent was to use different view defined in xml when an item is clicked. I overwritten getView method in my child class of SimpleCursorAdapter: @Override public View getView(int position, View convertView, ViewGroup parent) { if (position == mSelectedItemPos) { Log.v(_TAG, Highlight position + position); setViewResource(R.layout.expense_his_list_row_hightlighted); } else { Log.v(_TAG, un-highlight position + position); setViewResource(R.layout.expense_his_list_row); } View newView = super.getView(position, convertView, parent); return newView; } But it did not work as expected unless the activity is restarted. Do not know why and there's better choice to load different view for list item dynamically? 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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: Date/time format change broadcast
Really? I would have thought those were for when the user sets the date and time, not the format. By format, I mean if they go from 10/01/2010 to 01/10/2010 or something. Will try those, thanks. On Oct 7, 2:46 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi, yes, you actually are - ACTION_TIME_CHANGED and ACTION_DATE_CHANGED. Best regards, Filip Havlicek 2010/10/7 Zsolt Vasvari zvasv...@gmail.com I am using android.intent.action.LOCALE_CHANGED to detect language changes and update my widgets. Is there something analogous for date and time format changes? I don't see anything, but I could be just blind -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- 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] ANDROID_ELASPED_REALTIME_WAKEUP
Hi , When I set screen timeout for 15 seconds the board goes to suspend after 15sec. While going to suspend it is making an ioclt call to set rtc alarm with type ANDROID_ELASPED_REALTIME_WAKEUP. Can any one please let me know why is this happening? THanks Regards Ln -- 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] In-field firmware upgrade mechanism
Hello, I have some basic queries regarding in-field application and firmware upgrade regarding android. 1. Is there a generic mechanism(client side) to upgrade boot-loader and kernel, or the device manufacturers have to implement themselves? 2. Is there a different mechanism(client-side) to upgrade android framework itself , like upgrading a infield device from Android 2.1 to Android 2.2? 3. How is it done for apps, for non Mobile devices? I would be very thankful to get pointers to more information answering these queries. Thanks and regards -Nitin -- 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: Date/time format change broadcast
As I suspected ACTION_DATE_CHANGED is not sent when changing the date format Even the Android 2.2 doesn't handle this properly. Chaning the date format won't change the date displayed in the notification tray. I would have expected to show 7 October, 2010 if I change the format to D/M/Y, but alas, it's still October 7, 2010 On Oct 7, 4:23 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Really? I would have thought those were for when the user sets the date and time, not the format. By format, I mean if they go from 10/01/2010 to 01/10/2010 or something. Will try those, thanks. On Oct 7, 2:46 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi, yes, you actually are - ACTION_TIME_CHANGED and ACTION_DATE_CHANGED. Best regards, Filip Havlicek 2010/10/7 Zsolt Vasvari zvasv...@gmail.com I am using android.intent.action.LOCALE_CHANGED to detect language changes and update my widgets. Is there something analogous for date and time format changes? I don't see anything, but I could be just blind -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-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: bitmap size exceeds VM budget
hi refer this link,it may help u http://stackoverflow.com/questions/477572/android-strange-out-of-memory-issue/823966#823966 On Oct 7, 10:53 am, Kumar Bibek coomar@gmail.com wrote: Managing pictures needs special attention since the max heap area you get is 16MB or more on a few phones. You cannot exceed that budget. On Wed, Sep 29, 2010 at 8:45 AM, Amanda Lee amanda7...@gmail.com wrote: Hi all, I am a amateur for android development. There are some problems which might need your assistance. I intend to process plenty of pictures via SD card. With the attached code, it seems not to work smoothly via SD card. The systme will report bitmap size exceeds VM budget. Is there any solution can help to slove this problem? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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
Re: [android-developers] Re: Wierd memory leak
Sorry guys for sending it 3 times - I have been on the train and was writing from my Android phone and phone kept loosing GRPS/EDGE. Anyway, here is an article that explains few points about String and StringBuffer: http://www.precisejava.com/javaperf/j2se/StringAndStringBuffer.htm Daniel On Thu, Oct 7, 2010 at 8:46 AM, Alex a...@appfactory.at wrote: Thanks a lot, working with StringBuffer and it's impelemention of substring did the trick! As a C# developer, I'm not used to think of such things ... ;-) 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 -- Daniel Drozdzewski -- 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: project help
I'm really interested to your splendor apps idea, let me know, might be i can help you. On Thu, Oct 7, 2010 at 1:05 PM, Yahel kaye...@gmail.com wrote: Hi Mike, That's a very long mail just to try to hire an Android developper for half the potential revenue of splendor ideas you don't share anything about :) I think Treking and Rocky are right. May I suggest you go back to West Virginia University and find an under graduate in computer science ? Your deal is more likely to ring a bell there and he'll put time and effort you can't imagine. You can even lure them with the $13k a month success story from the creator of car locator :) Take care and I look forward to see your splendor apps on the market. Keep us posted. Yahel -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- 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]
hey poonam, you want such a inbuild project or you want idea, about pizza in android On Thu, Oct 7, 2010 at 1:34 PM, poonam sinha sinhapoon...@gmail.com wrote: dOES ANY BODY HAVE SMALL PROJECTS RELATED TO PIZZA IN ANDROID PLZ SEND ME THE PROJECT -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- 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: Anybody experiencing a boost in sales since opening up to other countries?
Had a Danish invasion couple of days ago, which was more pleasant than being invaded by scandanavians usually is. There are still quite a lot of those coming in. Only dribs and drabs of others (e.g. India, Russia) which started yesterday. Pent -- 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 get back the image taken after Intent(MediaStore.ACTION_IMAGE_CAPTURE)
Hi all, how do i get back the image taken from starting the Intent(MediaStore.ACTION_IMAGE_CAPTURE)? I need the image to be display as a thumbnail and also be attached to email. Thanks! bryan -- 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] Key Dispatching Time Out problem
Hi, I am trying to buffer a video stream and play the video from the buffer file, but it seems not to work. I check the logcat, it says something about Key Dispatching Time Out problem. Does anyone know what's wrong? The problem is probably due to CPU consuption because this error appears after I wrong the same programme several times. Here is my code. package com.example.Client2; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import android.app.Activity; import android.os.Bundle; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.MediaPlayer.OnBufferingUpdateListener; import android.media.MediaPlayer.OnCompletionListener; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.webkit.URLUtil; import android.widget.ImageButton; import android.widget.Button; import android.util.Log; import android.view.View; //import android.view.Display; //import android.view.WindowManager; //import android.view.ViewGroup.LayoutParams; //import android.widget.RelativeLayout; //import android.view.Gravity; public class Client2 extends Activity implements OnBufferingUpdateListener, OnCompletionListener, MediaPlayer.OnPreparedListener, SurfaceHolder.Callback{ private static final String TAG=MediaPlayer; private MediaPlayer mMediaPlayer; private SurfaceView mPreview; private SurfaceHolder holder; private String path; private int mVideoWidth; private int mVideoHeight; private static final int LOCAL_VIDEO = 1; private static final int STREAM_VIDEO = 2; //private static final int CENTER = 17; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mPreview=(SurfaceView) findViewById(R.id.surface); holder=mPreview.getHolder(); holder.addCallback(this); //holder.setFixedSize(30, 30); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); ImageButton Play = (ImageButton) findViewById(R.id.play); ImageButton Pause = (ImageButton) findViewById(R.id.pause); Button Stream = (Button) findViewById(R.id.stream); //checkOrientation(); Play.setOnClickListener(new View.OnClickListener(){ public void onClick(View view){ playVideo(LOCAL_VIDEO); } }); Pause.setOnClickListener(new View.OnClickListener(){ public void onClick(View view){ mMediaPlayer.pause(); } }); Stream.setOnClickListener(new View.OnClickListener(){ public void onClick(View view){ playVideo(STREAM_VIDEO); } }); } /* private void checkOrientation() { WindowManager wm = getWindowManager(); Display d = wm.getDefaultDisplay(); Log.d(TAG,ok1); LayoutParams params; Log.d(TAG,ok2); if (d.getWidth() d.getHeight()) { Log.d(TAG,ok3); //---landscape mode--- params = new RelativeLayout.LayoutParams(200,200); Log.d(TAG,ok4); } else { //---portrait mode--- params = new RelativeLayout.LayoutParams(200,200); } Log.d(TAG,ok5); mPreview.setLayoutParams(params); }*/ private void playVideo(Integer Media) { try { switch (Media){ case LOCAL_VIDEO: path=/sdcard/toystory3.3gp; break; case STREAM_VIDEO: Log.d(TAG,check); //path=rtsp://172.17.179.200:5544/stream; path=http://172.17.179.200:8080/stream;; break; } mMediaPlayer=new MediaPlayer(); Log.d(TAG,Here...); //setDataSource(path); mMediaPlayer.setDataSource(path); mMediaPlayer.setDisplay(holder); mMediaPlayer.prepare(); mMediaPlayer.setOnBufferingUpdateListener(this); mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); Log.d(TAG,Debug); mVideoWidth=mMediaPlayer.getVideoWidth(); mVideoHeight=mMediaPlayer.getVideoHeight();
[android-developers] calling .NET webservice using ksoap Android
Hi All, Same question is asked previously in this forum. I am asking it again after referring all question in this forum. Problem :- I am trying call call .NET Web service from Android device. I can call web service without parameter successfully; but when tried to pass parameter it shows null in server side log. Technology/API used : - - KSOAP 2.0 for Android - .NET Framework 3.5 + WCF Web service - Web service type is document literal. Point to be noted over here is same service working fine with normal .NET Web service. Before I post my code here is my trying so far, 1. As suggested in this forum, I have changed server side NAMESPACE to URI not URL. For i.e. - Previously it was http://tempurl.com and now i have changed it to uri:myService 2. I am adding XML header in the request, even tried to by removing it. i.e - httpTransport.setXmlVersionTag(?xml version=\1.0\ encoding= \UTF-8\?); 3. I have enabled the Access data sources across domains IE option in server side/client side. Code looks like below, request = new SoapObject(Util.NAMESPACE, method); request.addProperty(name, value); soapEnvelope = new SoapSerializationEnvelope(SoapSerializationEnvelope.VER11); httpTransport = new HttpTransportSE(Util.URL); soapEnvelope.dotNet = true; soapEnvelope.setOutputSoapObject(request); httpTransport.setXmlVersionTag(?xml version=\1.0\ encoding= \UTF-8\?); httpTransport.call(SOAP_ACTION, soapEnvelope); I have end up spending lots of time in this issue. Help will be 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
[android-developers] sample code in GPL3 release
HI, I used some of the code from the Android sdk examples. Legally I know apache is compatible with GPL3 (license for my code), but what do I do about the copyright notice in the code? Do I keep the Copyright (C) 2009 The Android Open Source Project and apache license and just indicate the content was changed. Has anyone dealt with this? The Legal dept has no clue. Shawn -- 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: Any proposed changes to the Android Market?
Also, app markets have (unfortunately) become a numbers game in the eyes of the public. It's important for Google to be able to say they have 150,000 (or whatever) apps in the Market; clearing the dregs would drop that number considerably, probably by an order of magnitude. Although this would probably be a better situation, for both devs and users, it's a net loss on the mindshare front. And that's not unimportant to the decision makers. String On Oct 7, 3:33 am, Brad Gies rbg...@gmail.com wrote: The market does this by default already They only have roughly 22 categories, and there are 70,000 apps... which means roughly 3,000 apps per category, and they only show 800... If your app is in the bottom half of your category... it's effectively not there :). Not to say the Market works well at all but in this case it's filtering out the worst of the worst by default :). But, as long as the Market is the only game in town, it's probably not possible for Google to filter it because they are effectively a monopoly and not allowing any app would be a PR nightmare. Apple doesn't really have the same problem because they are not even trying to claim any kind of openness. Sincerely, Brad Gies --- Bistro Bot - Bistro Blurbhttp://bgies.comhttp://bistroblurb.comhttp://ihottonight.comhttp://forcethetruth.com --- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 06/10/2010 1:08 PM, Kumar Bibek wrote: Agree, but before removing such an app, Google should atleast intimate the dev the reason, else, it won't be fair for the developer. And for this, someone will definitely have to checkout the app in person, before taking it down. Also, if Google wishes to include such a condition in Terms and Conditions, say for example, if you app has 2000 downloads with avg rating of 1.5 stars, your app will be automatically removed, I am not sure, if all the devs would like this. On Thu, Oct 7, 2010 at 1:33 AM, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Wed, Oct 6, 2010 at 2:49 PM, Kumar Bibek coomar@gmail.com mailto:coomar@gmail.com wrote: Yep, but this might not be a fool proof method. Say, a competitor dev can easily go and mark a new entrant as spam, and leave negative comments. 15-20 such comments and spam flags would obviously be a disadvantage for the new app. Of course, but in my mind it would take a considerable amount of votes to get one ejected - certainly more than 15-20, which still would require a dedicated effort by either a lot of individual competitors or a single company instructing their employees to use such tactics, which one would hope is the exception, not the norm. And of course there would be other criteria. For example, if one developer has 200+ apps, with an average rating of 2 stars and each app has been flagged as spam at least 100 unique times over the course of time, it's fair to assume they're worthless spammers. I'm sure some clever Google Engineer could come up with a fairly reliable algorithm for Market spam detection. A 20% time project, perhaps? --- -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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 -- 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] Re: Possible to check .apk signature?
On Oct 7, 5:11 am, William Ferguson william.ferguson...@gmail.com wrote: The one thing that it seems they will have to do is to change your package name to theirs, otherwise Market (AFAICT) won't allow it a duplicate package name to be published. So is it sufficient to just confirm that the package name is the same? I don't think that helps. The pirates aren't interested in publishing it to the Market; they distribute it on their own sites and through forums. So they're free to keep the package names unchanged. They have to change the signature, though. No getting around that. String -- 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] sample code in GPL3 release
Whenever you publish GPL'ed code, you retain the copyright on the pieces that you've contributed. This is why the GPL is enforcable - you can hit GPL violators by means of a copyright lawsuit. So the correct thing to do (IMHO) is to leave the orginal copyright notice intact, but to put the GPL header on top. That is assuming the Apache License is indeed GPL compatible. -- 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: UI troubles with Android 2.2
On Thu, Oct 7, 2010 at 9:15 AM, Thibaut aar...@gmail.com wrote: The second trouble is resolved thanks to another message in this google group ( http://groups.google.com/group/android-developers/browse_thread/thread/4e8ad65d5cc7f103/c0986e9ad4e655e2 ). Nested scrollviews don't work anymore. Does anyone have an idea why several click attempts are necessary to open the context menu by clicking on an ImageView (located inside a ListView)? Thibaud, Where in your code do you call setOnClickListener() ? Please remember that ListView recycles the views behind each list item. Quick peek at your Adapter.getView() method would help here. Daniel On 6 oct, 20:30, Thibaut aar...@gmail.com wrote: Hello, I have some strange UI troubles with Android 2.2. First, I set an OnClickListener on an ImageView that should open the context menu. Nothing happens on the first click attempts, but the next ones trigger several context menu openings (the menu opens itself when a menu item is selected) ... Second, if the screen is landscape-oriented, a HorizontalScrollViewer doesn't scroll as expected. It breaks its self movements, giving the feeling to scroll step by step. Its behavior is normal when the screen is portrait-oriented. And everything is normal with Android 2.1. Thanks Thibaut -- 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] Can I create a file in /data in android?
Hello to all, I am trying to create a file in /data but i think i don't have the required permission for it: File file = new File(data, myFile.tmp); and i get java.io.FileNotFoundException: /data/mopayUpdateFile.tmp Is it possible to create a file in data, or somewhere else inside an android phone, except sdcard? Thanks Lidia -- 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 I create a file in /data in android?
On Thu, Oct 7, 2010 at 11:07 AM, Lidia lidyp...@yahoo.com wrote: Hello to all, I am trying to create a file in /data but i think i don't have the required permission for it: File file = new File(data, myFile.tmp); and i get java.io.FileNotFoundException: /data/mopayUpdateFile.tmp Is it possible to create a file in data, or somewhere else inside an android phone, except sdcard? Thanks Lidia Lidia, You will find that application files live in /data/data however try avoiding hard coded locations like this. Have a look at Context.getCacheDir(), Context.getFilesDir() and Context.getDir(String name, int mode) 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 -- Daniel Drozdzewski -- 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: Trouble with corrupt contact data
In case anyone else creates this trouble for themselves, my solution was to log out the rows in the DATA table which had a blob in data15 and which did not have the mime type for photos. That revealed a whole bunch of nonsense rows, with mime types that obviously required strings. Once they were deleted the sync problem went away. R. On Oct 5, 6:57 pm, jarkman jark...@gmail.com wrote: After a fight with some code intended to set contact photos in the contacts DB on 2.2, the contacts are now unable to sync - I get: android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string every time the contact provider attempts a sync, and a popup telling me that com.google.process.gapps has died. I think this means that there is duff data in ContactsContract.DATA somewhere. Is there any way to work out which mimetypes correspond to which columns and types in the DATA table, so i can sanitise it ? Thanks, Richard Here's the stack from the crash: 10-05 18:32:31.606: ERROR/DatabaseUtils(216): Writing exception to parcel 10-05 18:32:31.606: ERROR/DatabaseUtils(216): android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at android.database.CursorWindow.getString_native(Native Method) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at android.database.CursorWindow.getString(CursorWindow.java:329) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java: 49) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.ContactsProvider2$DataRowHandler.getAugmentedValues(ContactsProvider2.java: ) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.ContactsProvider2$StructuredNameRowHandler.update(ContactsProvider2.java: 1171) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.ContactsProvider2.updateData(ContactsProvider2.java: 3839) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.ContactsProvider2.updateData(ContactsProvider2.java: 3823) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.ContactsProvider2.updateInTransaction(ContactsProvider2.java: 3509) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.SQLiteContentProvider.update(SQLiteContentProvider.java: 155) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.ContactsProvider2.update(ContactsProvider2.java: 2259) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at android.content.ContentProviderOperation.apply(ContentProviderOperation.java: 225) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.SQLiteContentProvider.applyBatch(SQLiteContentProvider.java: 216) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at com.android.providers.contacts.ContactsProvider2.applyBatch(ContactsProvider2.java: 2272) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at android.content.ContentProvider $Transport.applyBatch(ContentProvider.java:193) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java: 173) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at android.os.Binder.execTransact(Binder.java:288) 10-05 18:32:31.606: ERROR/DatabaseUtils(216): at dalvik.system.NativeStart.run(Native Method) 10-05 18:32:31.626: WARN/dalvikvm(199): threadid=20: thread exiting with uncaught exception (group=0x4001d7f0) 10-05 18:32:31.756: ERROR/AndroidRuntime(199): FATAL EXCEPTION: SyncAdapterThread-1 10-05 18:32:31.756: ERROR/AndroidRuntime(199): android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string 10-05 18:32:31.756: ERROR/AndroidRuntime(199): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java: 158) 10-05 18:32:31.756: ERROR/AndroidRuntime(199): at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java: 137) 10-05 18:32:31.756: ERROR/AndroidRuntime(199): at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java: 449) 10-05 18:32:31.756: ERROR/AndroidRuntime(199): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java: 95) 10-05 18:32:31.756: ERROR/AndroidRuntime(199): at com.google.android.syncadapters.contacts.ContactsSyncAdapter.sendEntityToServer(ContactsSyncAdapter.java: 621) 10-05 18:32:31.756: ERROR/AndroidRuntime(199): at com.google.android.syncadapters.contacts.ContactsSyncAdapter.processLocalChanges(ContactsSyncAdapter.java: 553) 10-05 18:32:31.756: ERROR/AndroidRuntime(199): at com.google.android.syncadapters.contacts.ContactsSyncAdapter.innerPerformSync(ContactsSyncAdapter.java: 248)
[android-developers] Re: On multi-accounts setting, LVL returns NOT_LICENSED.
But the problem is mainly that even having the primary account different from the developers account, it should work if I add it as a Test account because the app is uploaded to the market! On 6 oct, 13:19, Carlos Silva r3...@r3pek.org wrote: This is normal since the Market only uses one account (the main/first account on the device) to associate applications with an account. So even if you have 10 Google accounts on a device, only the main one is associated with the Market. On Wed, Oct 6, 2010 at 12:11, beemer mse...@gmail.com wrote: I'm having the same issue and this causes that I cannot test my own application on my devices. I've done the test below and found that the first account configured in the device is the one used for licensing verification. FIRST TRY: -Configured Google apps account, not develeper neither test. FAIL- NOT_LICENSED -Added The developer account. FAIL- NOT_LICENSED SECOND TRY: -Configured Developer account. OK- As defined in the developer profile OK. -Added apps account, not develeper neither test. OK- As defined in the developer profile OK. THIRD TRY: -Configured Google apps account, not develeper. Tried as test and Not test account. -Configured Developer account. FAIL- NOT_LICENSED FOURTH TRY: -Configured Developer account. -Configured Google apps account, not develeper. Tried as test and Not test account. OK- As defined in the developer profile OK. On 6 oct, 12:50, beemer mse...@gmail.com wrote: I'm having the same issue and this causes that I cannot test my own application on my devices. I've done the test below and found that the first account configured in the device is the one used forlicensingverification. FIRST TRY: -Configured Google apps account, not develeper neither test. FAIL- NOT_LICENSED -Added The developer account. FAIL- NOT_LICENSED SECOND TRY: -Configured Developer account. OK- As defined in the developer profile OK. -Added apps account, not develeper neither test. OK- As defined in the developer profile OK. THIRD TRY: -Configured Google apps account, not develeper. Tried as test and Not test account. -Configured Developer account. FAIL- NOT_LICENSED FOURTH TRY: -Configured Developer account. -Configured Google apps account, not develeper. Tried as test and Not test account. OK- As defined in the developer profile OK. On 11 ago, 01:46, magpad takashi.murama...@gmail.com wrote: Hi I was cheking my app implemented LVL to publish market. But I had some concern below before publishing. - APP_FOO * paid application * LVL implemented * uploaded to Amdroid Market * installed from local apk(This apk is same as uploaded on Market.) - ACCOUNT_1 * bought APP_FOO - ACCOUNT_2 * did NOT bought APP_FOO Then, On emulator API Level8 with Google APIs(I don't have Froyo device...) - Case 1 I added ACCOUNT_1 and then checked APP_FOO license. == server returned LICENSED Case 2. I added ACCOUNT_2 and then checked APP_FOO license. == server returned NOT_LICENSED Case 3. I added ACCOUNT_1 first, next added ACCOUNT_2 and then checked APP_FOO license. == server returned LICENSED Case 4. I added ACCOUNT_2 first, next added ACCOUNT_1 and then checked APP_FOO license. == server returned NOT_LICENSED In Case1 to 3, server responses are expected. And in Case 4, I had expected LICENSED, but server returned NOT_LICENSED. Does anyone know this response is valid or invalid? Is LICENSED response can be gotten from first account added on Manageaccountssettings? 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.comandroid-developers%2Bunsubs cr...@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] uses-feature (again)
So my app uses light and proximity sensors now, hence I fully expect it to disappear when I update on the market. Since the app doesn't actually require those features, my plan is to put: uses-feature android:name=android.hardware.sensor.proximity android:required=false Because that's how I managed to get the camera working. However, the docs say about the 'required' attribute: Indicates whether the feature is required by the application. This is true by default. You should NOT USE THIS ATTRIBUTE FOR MOST CASES. The only situation in which you should set this attribute false is when your application requests the CAMERA permission, but will degrade gracefully... (emphasis mine) After reading the doc 3 times, it's unclear to me whether uses-feature should/must be included for information even if it's not required by the app. Pent -- 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] sample code in GPL3 release
So the correct thing to do (IMHO) is to leave the orginal copyright notice intact, but to put the GPL header on top. That is assuming the Apache License is indeed GPL compatible. Apache 2.0 and GPL3 are. I'll take Apache at their word. http://www.apache.org/licenses/GPL-compatibility.html [Note: it seems though that putting GPL code under an Apache License is not ok] Shawn -- 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] Layout displacement with android:windowSoftInputMode = adjustPan
Hi, I need some suggestions in making an EditText view which is placed at the bottom of the screen fully visible. I am using adjustPan windowSoftInputMode for an activity which contains following in the given layout order. 1) Text View 2) Image View 3) EditTextView When I click on EditTextView, the soft keyboard comes out. However the keyboard is hiding 40% of the edit text box. Rest of the behavior is prefect, the entire layout is pushed up as expected. How do I make sure the entire edit box is visible? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Video buffer issue
Hi all, Recently I am doing a video streaming control stuff, which means I use VLC to stream video into Android client. But I meet some trouble in pause the streaming and resume it at some time later. Can anyone offer some ideas how to realize this goal? I try to use tempary file to store the video stream and play from it (like a buffer), but fails. Someone please help on this. Thanks in advance Charlie -- 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] Create Image from String
Hi, I am trying to depict on the screen the image I receive from my neighbour via a text message. I mean, the other node sends me a message where an image is encode (I can read the PNG header, ...) and now I want to show it on the screen, but it doesn't appear nothing. I must be doing something wrong ¬¬. Here is my code: ImageView img = (ImageView) this.findViewById(R.id.DTNApps_DTNReceive_ImageView); byte[] bytes = input.getBytes(US-ASCII); InputStream in = new BufferedInputStream(new ByteArrayInputStream(bytes)); Drawable drw = Drawable.createFromStream(in, src); img.setImageDrawable(drw); As I said, nothing appears on the screen. The img hsa a correct value since I try img.setImageDrawable(getResources().getDrawable(R.drawable.sample_0)); and shows the picture. Can anyone help me?? Bye and thanks for your time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Build
In this case better android-building .. as their is already a thread related to clearsilver and support from the build guru Ying Wang Questions regarding building the source should go on the porting or platform group. ----- 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: USB and Android
A great answer (IMHO) can you find here : http://stackoverflow.com/questions/3434107/android-communicating-with-a-usb-device-which-acts-as-host On 6 Okt., 19:08, Andrew Whalen the.awh...@gmail.com wrote: Is there any way to allow communication between a program on a PC and an app on the Android through USB? I've notied some apps can sync through USB so I figure there must be a way. -- 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: Print documents from an Android device
IMHO your application only needs to send the right Action Intent .. Look how this is done in the 3d gallery app i.e. in the share menu. I think soon you will also find devices, which have usb pictbridge support and allow direct printing via usb. Good luck ! Frank On 4 Okt., 12:49, Gober herrsky...@gmail.com wrote: I am developing an application for the Norwegian Food Control. They want to register a control using an Android device, and when they are done print out a certificate to give to the business directly. Is there any way to do this from Android? I have seen Bluetooth enabled printers, but is there a way for my application to use these? The only thing I could find on the web was an app called Print Share, but this only sent items to print to a network-connected stationary printer. Printers with built in support for Android also just prints photos. I want to print for instance a PDF directly from my phone. -- 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: Launching my application from the Settings menu
IMHO it is not so complicated, as you only need to add a additional menu and send the right intent for your own app . But the Settings-App is a core app signed with platform key, so you have to make at the end a system image and flush the device. Good luck ! Frank On 7 Okt., 07:45, Kumar Bibek coomar@gmail.com wrote: Nope, you cannot do that. If you want this, you might have to change the SettingsActivity itself, which would require you to download the source code and work on that first. On Sun, Oct 3, 2010 at 7:10 PM, Boris Farber boris.far...@gmail.com wrote: Dear Sir/Madam I am looking for a way to launch my application(few Activities, Services, Receivers) from the Setting menu. In other words I am interested to know: 1. I this a trivial task ? 2. Did someone has done such task before ? 3. What APIs and application's code should I learn Thank you Boris Farber -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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] Simulating USB connection
Hi, Our app seem to misbehave sometimes when user plug USB cable to the device. Is there any way to simulate this event using Android simulator? Since it does not matter what type of USB connection is set (SD card access or just charging) I may just need the OS to think the USB cable has been connected and do what it does on the device. Can I achieve this in any sane way? -- 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: Any proposed changes to the Android Market?
But that's just down to how the Google/Apple marketing departments put the spin on it. If it was 15,000 apps that really deliver vs a horde of apps of dubious quality, then a good marketing department should be able to run hard with that. It could be pitched as an accelerated Darwinian environment. Only the *great* survive here. I can picture the images that would ship with it now. An army of variagated Android Apps on one side surrounded by the dismembered remains of the unfit, and on the other side a horde of insipid apps jammed shoulder to shoulder. Go with the strength. Gee maybe I should have pursued marketting instead of development. Yep - I'm definitely coming down with a fever. On Oct 7, 7:30 pm, String sterling.ud...@googlemail.com wrote: Also, app markets have (unfortunately) become a numbers game in the eyes of the public. It's important for Google to be able to say they have 150,000 (or whatever) apps in the Market; clearing the dregs would drop that number considerably, probably by an order of magnitude. Although this would probably be a better situation, for both devs and users, it's a net loss on the mindshare front. And that's not unimportant to the decision makers. String On Oct 7, 3:33 am, Brad Gies rbg...@gmail.com wrote: The market does this by default already They only have roughly 22 categories, and there are 70,000 apps... which means roughly 3,000 apps per category, and they only show 800... If your app is in the bottom half of your category... it's effectively not there :). Not to say the Market works well at all but in this case it's filtering out the worst of the worst by default :). But, as long as the Market is the only game in town, it's probably not possible for Google to filter it because they are effectively a monopoly and not allowing any app would be a PR nightmare. Apple doesn't really have the same problem because they are not even trying to claim any kind of openness. Sincerely, Brad Gies --- Bistro Bot - Bistro Blurbhttp://bgies.comhttp://bistroblurb.comhttp://ihottonight.comhttp://fo... --- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 06/10/2010 1:08 PM, Kumar Bibek wrote: Agree, but before removing such an app, Google should atleast intimate the dev the reason, else, it won't be fair for the developer. And for this, someone will definitely have to checkout the app in person, before taking it down. Also, if Google wishes to include such a condition in Terms and Conditions, say for example, if you app has 2000 downloads with avg rating of 1.5 stars, your app will be automatically removed, I am not sure, if all the devs would like this. On Thu, Oct 7, 2010 at 1:33 AM, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Wed, Oct 6, 2010 at 2:49 PM, Kumar Bibek coomar@gmail.com mailto:coomar@gmail.com wrote: Yep, but this might not be a fool proof method. Say, a competitor dev can easily go and mark a new entrant as spam, and leave negative comments. 15-20 such comments and spam flags would obviously be a disadvantage for the new app. Of course, but in my mind it would take a considerable amount of votes to get one ejected - certainly more than 15-20, which still would require a dedicated effort by either a lot of individual competitors or a single company instructing their employees to use such tactics, which one would hope is the exception, not the norm. And of course there would be other criteria. For example, if one developer has 200+ apps, with an average rating of 2 stars and each app has been flagged as spam at least 100 unique times over the course of time, it's fair to assume they're worthless spammers. I'm sure some clever Google Engineer could come up with a fairly reliable algorithm for Market spam detection. A 20% time project, perhaps? --- -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com
[android-developers] What's on earth the SAX Parser changes between 2.1 and 2.2
I have wrote a ContentHandler for SAX parser to retrieve data from and xml file, but it does't work on 2.1-update1, but works fine on 2.2, What is on earth is the changes, anyone knows? the problem I encountered is exactly the same as stated at: http://code.google.com/p/android/issues/detail?id=11223 *Reported by m.de.kwant, Sep 14, 2010* My application uses a urlconnection to retrieve a soap response. This XML is run through the default saxparser available in the java/android lib. In android version 2.1 the XML is not parsed correctly. I fact there seems to be no parsing at all, while the raw input is available. In android version 2.2 the input XML is parsed and the return result from my handlers is correct. In short. SaxParser on 2.1 does nothing (no result, no error, no parsing), Saxparser on 2.2 works like it supposed to work. Are there any work arounds for this problem ? *Comment 1 by project member e...@google.com, Sep 14, 2010* you can have a look at the differences between 2.1 and 2.2 yourself. Status: Declined Owner: e...@google.com Labels: Component-Dalvik Delete comment Comment 2 by jiangjun.jking, Today (95 minutes ago) I have the same issue, could you please explain more clear about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Any proposed changes to the Android Market?
On Wed, Oct 6, 2010 at 9:33 PM, Brad Gies rbg...@gmail.com wrote: If your app is in the bottom half of your category... it's effectively not there :). Unless you have 200+ apps and update a set of them every day in a weekly rotation to continuously hog the Just-In list. Then you're ALWAYS there, regardless of how low you're actually rated or ranked. - 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] Gestures in custom view?
hi friends, I am trying to handle fling event in my custom view using gesture detector but onFling() method is not calling .code snippet for handling fling follows public class CustomView extends View { private GestureDetector gestureDetector; public CustomView6(Context context, AttributeSet ats, int defaultStyle) { super(context, ats, defaultStyle); gestureDetector = new GestureDetector(new MyGestureDetector()); } @Override public boolean onTouchEvent(MotionEvent e) { Log.e(,ontouch); if (gestureDetector.onTouchEvent(e)) { return true; } return false; } class MyGestureDetector extends SimpleOnGestureListener { @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { Log.e(,onFling); return true; } } } Am missing something? please help me... 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: Any proposed changes to the Android Market?
I have a slightly different take on this than the original poster. Currently Google is treating apps like web pages, and using ranking algorithms to highlight the successful apps. The poor apps don't need to be expelled because they are in the rankings basement where nobody sees them. The only place this breaks down is when you browse the new releases and see a bunch of spammy apps that crowd out the real apps that represent a significant amount of work. Here I would like to see a change, but again it does not have to involve moderating apps out. Instead, the publishers who churn out these spammy apps should be marked as high volume publishers and lose the privilege of having their updates featured in the regular new releases section; maybe there could be a single, separate section for high volume new releases and anybody who really wants to look there can do so. The list of legitimate publishers who would be marked high volume by some simple automated algorithm would be short and they could request an exception. That would solve the problem I am seeing without much work. --SJ On Thu, Oct 7, 2010 at 7:31 AM, William Ferguson william.ferguson...@gmail.com wrote: But that's just down to how the Google/Apple marketing departments put the spin on it. If it was 15,000 apps that really deliver vs a horde of apps of dubious quality, then a good marketing department should be able to run hard with that. It could be pitched as an accelerated Darwinian environment. Only the *great* survive here. I can picture the images that would ship with it now. An army of variagated Android Apps on one side surrounded by the dismembered remains of the unfit, and on the other side a horde of insipid apps jammed shoulder to shoulder. Go with the strength. Gee maybe I should have pursued marketting instead of development. Yep - I'm definitely coming down with a fever. On Oct 7, 7:30 pm, String sterling.ud...@googlemail.com wrote: Also, app markets have (unfortunately) become a numbers game in the eyes of the public. It's important for Google to be able to say they have 150,000 (or whatever) apps in the Market; clearing the dregs would drop that number considerably, probably by an order of magnitude. Although this would probably be a better situation, for both devs and users, it's a net loss on the mindshare front. And that's not unimportant to the decision makers. String On Oct 7, 3:33 am, Brad Gies rbg...@gmail.com wrote: The market does this by default already They only have roughly 22 categories, and there are 70,000 apps... which means roughly 3,000 apps per category, and they only show 800... If your app is in the bottom half of your category... it's effectively not there :). Not to say the Market works well at all but in this case it's filtering out the worst of the worst by default :). But, as long as the Market is the only game in town, it's probably not possible for Google to filter it because they are effectively a monopoly and not allowing any app would be a PR nightmare. Apple doesn't really have the same problem because they are not even trying to claim any kind of openness. Sincerely, Brad Gies --- Bistro Bot - Bistro Blurbhttp://bgies.comhttp://bistroblurb.comhttp://ihottonight.comhttp://fo... --- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead On 06/10/2010 1:08 PM, Kumar Bibek wrote: Agree, but before removing such an app, Google should atleast intimate the dev the reason, else, it won't be fair for the developer. And for this, someone will definitely have to checkout the app in person, before taking it down. Also, if Google wishes to include such a condition in Terms and Conditions, say for example, if you app has 2000 downloads with avg rating of 1.5 stars, your app will be automatically removed, I am not sure, if all the devs would like this. On Thu, Oct 7, 2010 at 1:33 AM, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Wed, Oct 6, 2010 at 2:49 PM, Kumar Bibek coomar@gmail.com mailto:coomar@gmail.com wrote: Yep, but this might not be a fool proof method. Say, a competitor dev can easily go and mark a new entrant as spam, and leave negative comments. 15-20 such comments and spam flags would obviously be a disadvantage for the new app. Of course, but in my mind it would take a considerable amount of votes to get one ejected - certainly more than 15-20, which still would require a dedicated effort by either a lot of individual competitors or a single company instructing their
Re: [android-developers] Security issue: Market fail to list all permissions granted to applications.
I'm going to go out on a limb and guess that the problem is with the Android Market servers, either in how they extract the permissions to display, or how they deliver that data to devices. That's because androlib.com has the same missing permission: http://www.androlib.com/android.application.com-deckeleven-windsofsteeldemo-CtpA.aspx and I suspect that they just get the permission data by pirating the Android Market feed. The good news, relatively speaking, is that a fix to the servers would fix the problem without having to distribute an update to the Android Market client app. Thanks for pointing this out! On Thu, Oct 7, 2010 at 6:39 AM, repDetect() n6mba50...@gmail.com wrote: When installing applications from android market some permissions are not listed to the user, but are granted to the application upon installation, including the notorious Phone calls permission. When installing locally through Package installer the full set of permissions is listed. That behavior may be observed with many applications one of which is 'net.jimblackler.newswidget' (no offense Jim - I hope it's true there's no bad publicity). This bug was reported as issue #9365 [0] back in Jun 27, 2010 but has gone so far unnoticed, perhaps because android market is not part of AOSP, which is why I post here. I consider this a serious problem as it is misleading for users and reflects badly on application developers and the whole android echo system. Hopefully this will get the needed attention and treatment, especially after all the recent noise around applications security and privacy breaches. [0] http://code.google.com/p/android/issues/detail?id=9365 -- 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...At Your Office: http://commonsware.com/training -- 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] second column list view not properly aligned
On Wed, Oct 6, 2010 at 11:16 PM, Varun Khanduja varunkhand...@gmail.comwrote: I have been getting opinions that I should have gone for table layout Probably, if alignment of each column was important. could someone please save me from doing the work from scratch. I really dont want to do everything again. You may have to bite the bullet and just redo it correctly. Anything you do from here is going to be mostly a hack. If you insist, two things that come to mind are to either a) figure out which two of those columns are going to be a fixed width and set them all to be that width, letting the third take up the rest, or b) programmatically calculating the width(s) and applying them uniformly to all items in the list, which begins to get complicated. Thanks and sorry for the posts. Trust me this problem is different than last one. Thanks Didn't mean to give you crap in your last post - just sometimes it seems people don't listen (or read, as the case may be). =) - 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: Wierd memory leak
The UNconditional behavior of referencing the original String's array is UNreasonable when you take into account the storage effects. Situations like the OP's are rare, but the technique also negatively impacts cache locality, garbage collection, etc. Modifying the technique can significantly improve performance on Spec JBB benchmarks. This is especially true when a modification is made to allocate the String object and char array as one piece. On Oct 7, 1:01 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thursday, October 7, 2010, DanH danhi...@ieee.org wrote: Yep, substring MAY (or may not) decide to avoid copying the characters and simply keep a reference to the char array in the source String. A smart substring implementation wouldn't do this if the result string were quite short or the source string quite long, but apparently the Android implementation isn't that smart. It's a very reasonable behaviour of String class when we take into account that String is immutable and very often Strings are responsible for big chunks of memory allocation. Behaviour of String.substring() makes therefore sense in some(most?) situations. Any other behaviour could cause equally puzzling results in other situations. Another important thing to take into account is that String behaviour is imposed on JVM level (at least Sun's JVM but Dalvik deriving from Apache Harmony will most likely implement similar strategies). Fault lies in details like these not being communicated well enough in the documentation. The same thing may occur if you do new String(someOtherString). There's probably no guaranteed way to prevent this from happening, unless you somehow use a char array as an intermediate value. On Oct 6, 1:50 pm, Alex a...@appfactory.at wrote: Hi everybody! First of all, sorry for my bad english ;-) After several hours of searching for the cause of a OutOfMemoryError, I found a wierd problem with Strings. To keep it simple, trimmed it down to something like this: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString); } OK, it's not very useful and even though it's a big string, I would expect it to work properly, because only one char is stored in the list. But in fact, heap is growing rapidly and OutOfMemoryError exception will be thrown in 2,3 seconds. And I can't imagin why. AND NOW the interessting part, a little workaround: ArrayListString someStringList = new ArrayListString(1000); for (int i=0; i1000; i++) { String someBigString = new String(new char[10]); String someSmallString = someBigString.substring(0,1); someStringList.add(someSmallString + BUGFIX); } WTF? Why is this now working? The only difference is the concatenated string (someSmallString + BUGFIX)! And as originally expected, with this workaround nearly no memory will be used ... Any ideas? I would appreciate it very much, if someone could give me hint. Maybe I'm missing something basic here? -- 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 -- Daniel Drozdzewski -- 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: Wierd memory leak
You just need to get rid of that lousy Android and get an iPhone. ;) (Then you wouldn't have connectivity in the first place, and hence no problem.) On Oct 7, 4:00 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Sorry guys for sending it 3 times - I have been on the train and was writing from my Android phone and phone kept loosing GRPS/EDGE. Anyway, here is an article that explains few points about String and StringBuffer:http://www.precisejava.com/javaperf/j2se/StringAndStringBuffer.htm Daniel On Thu, Oct 7, 2010 at 8:46 AM, Alex a...@appfactory.at wrote: Thanks a lot, working with StringBuffer and it's impelemention of substring did the trick! As a C# developer, I'm not used to think of such things ... ;-) 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 -- Daniel Drozdzewski -- 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] How to creating Excel like sheet in Android with ListView / Tablelayout
On Thu, Oct 7, 2010 at 12:17 AM, Android Shail androidsh...@gmail.comwrote: I have no Idea how can I achieve Excel row/column arrangement with Android ListView which can provide Excel like properties to every cell of sheet. Probably don't use a ListView. Try TableLayout. - 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: Simulating USB connection
You sure the problem doesn't only occur when the USB is attached in SD sharing mode? Do you get the same failure with just a charger? Are you accessing files on the SD chip? On Oct 7, 6:28 am, { Devdroid } webnet.andr...@gmail.com wrote: Hi, Our app seem to misbehave sometimes when user plug USB cable to the device. Is there any way to simulate this event using Android simulator? Since it does not matter what type of USB connection is set (SD card access or just charging) I may just need the OS to think the USB cable has been connected and do what it does on the device. Can I achieve this in any sane way? -- 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] Smack xmpp / Handler question
Have anybody tried it? I am doing some experiments, and I saw that: - connect / login are executed in the same thread of the caller, then are blocking - The packetlistener callbacks are called from smack receiver thread - The sendpacket enqueues the message to a queue Now my question: when I receive a message, I need to propagate it. I can use an handler, but it only gets the runnable object. How can I pass the data to the runnable called by the handler? I can't use a local variabile, because if I receive a lot of messages it will be overridden and I will loose some of them. Is it ok to use a queue to feed the runnable? Are there other techniques? Thanks and regards, Federico -- 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] Print documents from an Android device
Also the paid PrinterShare version does say it will use wifi printers, so you might want to check that. I have only used the free version so don't know for sure. On Oct 6, 2010 7:30 PM, Gober herrsky...@gmail.com wrote: -- 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: Simulating USB connection
Sometimes the charger can be seen by a phone as a computer connection. My Galaxy S sometimes does this - I guess it depends on the angle at which the usb cable is inserted. -- Kostya 07.10.2010 16:26, DanH пишет: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? Do you get the same failure with just a charger? Are you accessing files on the SD chip? On Oct 7, 6:28 am, { Devdroid }webnet.andr...@gmail.com wrote: Hi, Our app seem to misbehave sometimes when user plug USB cable to the device. Is there any way to simulate this event using Android simulator? Since it does not matter what type of USB connection is set (SD card access or just charging) I may just need the OS to think the USB cable has been connected and do what it does on the device. Can I achieve this in any sane way? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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
Re: [android-developers] Smack xmpp / Handler question
Put the data into the instance of Runnable subclass you pass to handler. Something like this: private static class WorkerRunnable implements Runnable { ToastRunnable(data goes here) { mData1 = data1; mData2 = data2; ... } @Override public void run() { mData1, mData2 are accessible here } private Object mData1; private Object mData2; } And then: mHandler.post(new WorkerRunnable (data1, data2, )); -- Kostya 07.10.2010 16:27, Federico Paolinelli пишет: Have anybody tried it? I am doing some experiments, and I saw that: - connect / login are executed in the same thread of the caller, then are blocking - The packetlistener callbacks are called from smack receiver thread - The sendpacket enqueues the message to a queue Now my question: when I receive a message, I need to propagate it. I can use an handler, but it only gets the runnable object. How can I pass the data to the runnable called by the handler? I can't use a local variabile, because if I receive a lot of messages it will be overridden and I will loose some of them. Is it ok to use a queue to feed the runnable? Are there other techniques? Thanks and regards, Federico -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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
Re: [android-developers] Smack xmpp / Handler question
Thanks a lot. Federico On Thu, Oct 7, 2010 at 2:36 PM, Kostya Vasilyev kmans...@gmail.com wrote: Put the data into the instance of Runnable subclass you pass to handler. Something like this: private static class WorkerRunnable implements Runnable { ToastRunnable(data goes here) { mData1 = data1; mData2 = data2; ... } @Override public void run() { mData1, mData2 are accessible here } private Object mData1; private Object mData2; } And then: mHandler.post(new WorkerRunnable (data1, data2, )); -- Kostya 07.10.2010 16:27, Federico Paolinelli пишет: Have anybody tried it? I am doing some experiments, and I saw that: - connect / login are executed in the same thread of the caller, then are blocking - The packetlistener callbacks are called from smack receiver thread - The sendpacket enqueues the message to a queue Now my question: when I receive a message, I need to propagate it. I can use an handler, but it only gets the runnable object. How can I pass the data to the runnable called by the handler? I can't use a local variabile, because if I receive a lot of messages it will be overridden and I will loose some of them. Is it ok to use a queue to feed the runnable? Are there other techniques? Thanks and regards, Federico -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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 -- Federico -- 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: Date/time format change broadcast
Oh, you are actually right, overlooked the format, my bad. I looked into the documentation and it seems there are almost no broadcast for a wide variety of settings user might change, which is weird, I would expect at least some ACTION_SETTINGS_CHANGED broadcast for all the changes, but didn't see it. Best regards, Filip Havlicek 2010/10/7 Zsolt Vasvari zvasv...@gmail.com As I suspected ACTION_DATE_CHANGED is not sent when changing the date format Even the Android 2.2 doesn't handle this properly. Chaning the date format won't change the date displayed in the notification tray. I would have expected to show 7 October, 2010 if I change the format to D/M/Y, but alas, it's still October 7, 2010 On Oct 7, 4:23 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Really? I would have thought those were for when the user sets the date and time, not the format. By format, I mean if they go from 10/01/2010 to 01/10/2010 or something. Will try those, thanks. On Oct 7, 2:46 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi, yes, you actually are - ACTION_TIME_CHANGED and ACTION_DATE_CHANGED. Best regards, Filip Havlicek 2010/10/7 Zsolt Vasvari zvasv...@gmail.com I am using android.intent.action.LOCALE_CHANGED to detect language changes and update my widgets. Is there something analogous for date and time format changes? I don't see anything, but I could be just blind -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-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.comandroid-developers%2bunsubscr...@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] scrollbar drawable not appearing properly
On Thu, Oct 7, 2010 at 1:29 AM, kavitha b kkavith...@gmail.com wrote: Is there any other attribute i need to set to make image appear properly. Not sure, but I would look at the default image used by the system (it should be somewhere in the SDK along with the other default images) and see if that does anything special. Maybe it's a PNG.9 stretchy image or something. - 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] Aplicação criação de ar quivo PDF.
2010/10/7 Filip Havlicek havlicek.fi...@gmail.com I'm pretty sure the only official language for this group is English. Google Translate says: Hello everyone! I am with a request to develop an application that creates a PDF file, but tried to use iText's time to make the PdfWriter.getInstance (doc,) has an error ERROR / dalvikvm (223): Could not find method java.awt.Color.equals, referenced from method com.lowagie.text.Font.compareTo. Has anyone written any code for creating PDF for Android? Which is actually clearer than most of the posts that come through here =P - 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: Simulating USB connection
On 7 October 2010 14:26, DanH danhi...@ieee.org wrote: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? No. Plug the cable - boom :) That's why I wonder how can I debug this w/o doing extensive logging and hoping it got written to the log. Unfortunately, for obvious reason I can't debug it on device ;) Do you get the same failure with just a charger? Are you accessing files on the SD chip? Not at all. Not even setting sd card access perm. In fact I suspect it got something to do with pull down notification area as once you plug OS adds own icon there and I got custom view there. Some users also reported my app conflict with some 3rd party apps but this is very rare (I never seen that here anyway) I do not know these apps so not sure if do something similar OS does. Anyway, the cable crash happens each time. Once I disable my custom view it's gone. -- 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] Key dispatching time out?
I repeated get the warning from logcat. What does this annoying message mean? -- 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: UI troubles with Android 2.2
Thank you for your answer, I call setOnClickListener() in the Activity while I create the list of views. Then i give this list to the adapter. The Adapter::getView() method just returns the view _list.get(position). See below for code sample. But I would like to say that the onclick behavior is very very strange on that list (although everything works with Android 2.1). The last item reacts correctly, but the previous ones seem to stack the call and execute the whole stack as a batch when any action finally succeeds. In the Activity: _listView = new ListView(this); [ ... ] PeriodListAdapter adapter = new PeriodListAdapter(); OnClickListener openMenu = new OnClickListener() { @Override public void onClick(View v) { PeriodActivity.this.openContextMenu(v); } }; PeriodDescription therapyP = new PeriodDescription(this); therapyP.setPeriod(p); therapyP.setOnClickMenu(openMenu); adapter.addPeriodDescription(therapyP); [ ... ] _listView.setAdapter(adapter); Thanks for your interest Thibaut, a poor disappointed developer... On 7 oct, 11:46, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Oct 7, 2010 at 9:15 AM, Thibaut aar...@gmail.com wrote: The second trouble is resolved thanks to another message in this google group (http://groups.google.com/group/android-developers/browse_thread/threa... ). Nested scrollviews don't work anymore. Does anyone have an idea why several click attempts are necessary to open the context menu by clicking on an ImageView (located inside a ListView)? Thibaud, Where in your code do you call setOnClickListener() ? Please remember that ListView recycles the views behind each list item. Quick peek at your Adapter.getView() method would help here. Daniel On 6 oct, 20:30, Thibaut aar...@gmail.com wrote: Hello, I have some strange UI troubles with Android 2.2. First, I set an OnClickListener on an ImageView that should open the context menu. Nothing happens on the first click attempts, but the next ones trigger several context menu openings (the menu opens itself when a menu item is selected) ... Second, if the screen is landscape-oriented, a HorizontalScrollViewer doesn't scroll as expected. It breaks its self movements, giving the feeling to scroll step by step. Its behavior is normal when the screen is portrait-oriented. And everything is normal with Android 2.1. Thanks Thibaut -- 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] Can't Connect to a remote host from Emulator !!!
hi, I am trying to setup a simple client/server connection, the server is running on a remote host (Normal Java) and the client is running on my computer on the emulator, it works fine when I try to connect from my machine, but I can't connect over a normal wi-fi internet connection to the remote host, what could be the problem ??? 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
[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?
I noticed my high score board Top Countries list double in size (http://headtoheadracing.appspot.com/highscores.html). However, I haven't really noticed an increase in sales. Maybe 10%. I think I need to get a weeks worth of data before I can safely make a call. On Oct 7, 4:08 am, Pent tas...@dinglisch.net wrote: Had a Danish invasion couple of days ago, which was more pleasant than being invaded by scandanavians usually is. There are still quite a lot of those coming in. Only dribs and drabs of others (e.g. India, Russia) which started yesterday. Pent -- 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] how to get back the image taken after Intent(MediaStore.ACTION_IMAGE_CAPTURE)
On Thu, Oct 7, 2010 at 4:14 AM, dadada ytbr...@gmail.com wrote: how do i get back the image taken from starting the Intent(MediaStore.ACTION_IMAGE_CAPTURE)? Did you read the documentation for that Action? - 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: Can I create a file in /data in android?
As i see, the lines above create new directories inside my application folders. This is not exactly what i need, but thank you anyway for you advice 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
[android-developers] onPause not being followed by onStop and onDestroy...
I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- 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: UI troubles with Android 2.2
On Thu, Oct 7, 2010 at 2:14 PM, Thibaut aar...@gmail.com wrote: Thank you for your answer, I call setOnClickListener() in the Activity while I create the list of views. Then i give this list to the adapter. The Adapter::getView() method just returns the view _list.get(position). See below for code sample. I think you have to work harder on your Adapter.getView(). Have a look at these and then fix your Adapter: http://www.youtube.com/watch?v=wDBM6wVEO70 http://commonsware.com/Android/excerpt.pdf Daniel But I would like to say that the onclick behavior is very very strange on that list (although everything works with Android 2.1). The last item reacts correctly, but the previous ones seem to stack the call and execute the whole stack as a batch when any action finally succeeds. In the Activity: _listView = new ListView(this); [ ... ] PeriodListAdapter adapter = new PeriodListAdapter(); OnClickListener openMenu = new OnClickListener() { �...@override public void onClick(View v) { PeriodActivity.this.openContextMenu(v); } }; PeriodDescription therapyP = new PeriodDescription(this); therapyP.setPeriod(p); therapyP.setOnClickMenu(openMenu); adapter.addPeriodDescription(therapyP); [ ... ] _listView.setAdapter(adapter); Thanks for your interest Thibaut, a poor disappointed developer... On 7 oct, 11:46, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Oct 7, 2010 at 9:15 AM, Thibaut aar...@gmail.com wrote: The second trouble is resolved thanks to another message in this google group (http://groups.google.com/group/android-developers/browse_thread/threa... ). Nested scrollviews don't work anymore. Does anyone have an idea why several click attempts are necessary to open the context menu by clicking on an ImageView (located inside a ListView)? Thibaud, Where in your code do you call setOnClickListener() ? Please remember that ListView recycles the views behind each list item. Quick peek at your Adapter.getView() method would help here. Daniel On 6 oct, 20:30, Thibaut aar...@gmail.com wrote: Hello, I have some strange UI troubles with Android 2.2. First, I set an OnClickListener on an ImageView that should open the context menu. Nothing happens on the first click attempts, but the next ones trigger several context menu openings (the menu opens itself when a menu item is selected) ... Second, if the screen is landscape-oriented, a HorizontalScrollViewer doesn't scroll as expected. It breaks its self movements, giving the feeling to scroll step by step. Its behavior is normal when the screen is portrait-oriented. And everything is normal with Android 2.1. Thanks Thibaut -- 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 -- Daniel Drozdzewski -- 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] onPause not being followed by onStop and onDestroy...
It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default behavior. This way if the user goes back to your app, thru the home key press or from launchpad, the onResume will be called and it will all be much faster than doing an onCreate which would otherwise have been required. On Thu, Oct 7, 2010 at 10:06 AM, sdphil phil.pellouch...@gmail.com wrote: I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- 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.comandroid-developers%2bunsubscr...@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: XML encryption
You're right I missed the part where he wanted to decrypt on the phone also... On Oct 6, 11:02 am, DanH danhi...@ieee.org wrote: Using asymmetric keys won't fix the problem -- you'd still have to embed the decryption key somewhere in the code. Best you can do is obfuscate the key generation somehow. On Oct 6, 8:18 am, gcstang gcst...@gmail.com wrote: If you encrypt on the phone side with a known pass (assuming your using symmetric keys) then all the hacker has to do is find your password ( and salt if you use one) you used to create it and decrypt it. I would if possible use asymmetric keys. (public/private) I've not used them on Android so you would have to figure out if it's possible, I'm guessing it is since LVL uses that. On Oct 5, 12:34 pm, Dimitris dnkou...@gmail.com wrote: Yes, look for CipherOutputStream and CipherInputStream for writing and reading the file safely. I would use a symmetric encryption algorithm such as AES unless the XML is coming from a web service. On Oct 5, 9:18 am, Kostya Vasilyev kmans...@gmail.com wrote: 05.10.2010 19:59, DanH пишет: If you encrypt the entire XML file you won't be able to use Android's compiled' XML access tools, and you'll expose the unencrypted file on the phone. If you encrypt individual entries then you have a complicated build process and, due to the shorter elements being encrypted, a more complicated decryption process and (technically) less secure encryption. It's possible to use CipherInputStream to do on-the-fly decryption while reading data from a file or from the network. Per-application data files located in phone storage are private, and could be used to cache decrypted data. Unless, of course, the user roots their phone, but that's not commonplace. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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 Web Server
I'd be interested in hearing about the results as well. On Oct 7, 1:38 am, Miguel Morales therevolti...@gmail.com wrote: I'd figure that would kill performance. Right? On Wed, Oct 6, 2010 at 11:35 PM, xiaoxiong weng ad...@littlebearz.com wrote: as long as you have access to a public server, you could always do a tunnel. I used to send stuff behind nat through ssh On Thu, Oct 7, 2010 at 2:22 AM, Miguel Morales therevolti...@gmail.com wrote: What about service providers which don't allow or firewall most if not all incoming ports? Can you still act a server? But yeah, I guess for private networks you could do some interesting stuff. On Wed, Oct 6, 2010 at 8:09 PM, kypriakos demet...@ece.neu.edu wrote: To answer Miguel's question(s): (1) Because I can ;) thanks to iJetty. (2) We are building peer-to-peer composite service middleware for mobile devices. Services such as shared calendars across trusted groups or phone cam etc. I have done this successfully on Nokia Internet Tablets (Java CDC) and the performance was fairly good. Not sure how Android devices will fare on all this but that's the reason of the exercise anyway On Oct 6, 6:11 pm, Bret Foreman bret.fore...@gmail.com wrote: I've been looking at doing the same thing so one of my apps can offer web services. I'll be interested to hear what people think. On Oct 6, 2:59 pm, Miguel Morales therevolti...@gmail.com wrote: You want to run an HTTP server on Android? Why? -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://developingthedream.blogspot.com/,http://diastrofunk.com,http://www.youtube.com/user/revoltingx -- 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] Goo Market Frustration(s) -- a request to experienced app developers
HI, I have several applications available for d/l. They involve complicated use of the OS's facilities (GPS, SMS TXT, display manipulations, etc.) I have them tested on a Motorola DROID, and an LG ALLY, as well as a few others through family and friends (otherwise known as beta testers ;) I was going to say, So if I can't test on EVERY device... but perhaps that's my first question... {a} Was I absent the day they told us in Android SDK class that any actual DEVICE may react differently from some other? I understand that if the device does not support somthing then, of course, it can't comply to my app's request. Example: I have 100's of downloads for an app... then I get a 1-STAR with the comment: Does not work on HERO. So I can imagine that he may be right OR he might be a twit and many others with HEROs had no problem. I find the communications facilities between the DEVELOPER and his AUDIENCE via the GOO Market to be quite unsophisticated. So... {b} Is there some mechanism that I am not aware of that allows me to 'confront' my downloaders directly (i.e. an email address or something?) so that I can help them or at least discover what the heck someone means by It don't work ?? At the moment I am planning on adding an entire new layout to all of my apps which would beg them to get in touch with me if they have *any* problem at all ... is this my only means to accomplish this? thanks, tob -- 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: An external library needs org.apache.commons.httpclient instead of org.apache.commons.http.client
Of course! Create a wrapper class that has the same FQN and interface. It'll get picked up as if the library was there. Likely that single class is no the only one that you will need to wrap. - Brill On Sep 28, 10:11 am, SteveG st...@stevegibson.com wrote: I'm trying to use the Amazon Web Services java sdk jar but it has references to org.apache.commons.httpclient. All I seem to have in my Android sdk is org.apache.commons.http.client, which is a different namespace and obviously causes the build to fail. I'm new to Java and Android dev... is there a way to map one to the other or create some sort of symbolic link? If not, does that mean I have to import a standard org.apache.commons library? Thanks, -Steve -- 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: Problem with interecepting outgoing calls on HTC Desire
I got to borrow a HTC desire 2.2 today and I tested my application on that device for first time. I obviously found the same problem. I can confirm that setting the priority to 0, 1 or removing it doesn't effect the outcome for me. Current solution fix I have in place is the one Billias wrote. Just cancel the broadcast and launch a new Intent. This however doesn't feel right and could likely screw some other applications over that also react to outgoing calls. If this indeed is HTC's fault, I guess there will be no fix done to it for a very long time, if ever. A flag to enable the cancel broadcast+starting new Intent might be the only way to go in this case On Oct 1, 4:10 am, Denis Souza denis.so...@gmail.com wrote: Anyone had any progress or ideas with this? It's a bit hard to test it when you don't have the device. Anyway, I got two reports from Motorola users with the same problem... but the interesting thing is they only started having any problems after upgrading to my app's latest version. It occurred to me that the phone might have a limit to the time it waits for a response from the app (since my latest version does a few extra things before dialing) but I wrote a special super fast test version for one of the users and it still didn't work. Also I tried it on my HTC Hero making the phone wait 10 seconds but it worked fine, which means that's probably not the problem. Nicholas, you said you had the Desire with 2.2. Have you tried playing with the intent filter's priority values? Maybe using 1 or 0 or even removing the priority parameter altogether? That would be my next hunch. On Aug 27, 11:28 am, Denis Souza denis.so...@gmail.com wrote: Just had a report a few days ago from a user on HTCDesire(2.2) that says a previous version of my app worked fine. This is confirmed since I sent him a previous version and it worked. It might be just this one case since I've had another user say it didn't work with the same previous version. I'm trying to find out exactly which change made the difference (both versions do essentially the same thing with subtle differences) so I sent him a changed version to test it. If I find out anything I'll post it here, but don't hold your breath.. he's not very responsive. The workaround placing a new Intent seems reasonable in these cases. I think I'll add an option in my app for people having this issue though it's awful that I even have to think about doing that. One would think a company like HTC would test the whole API before releasing a new ROM (after all they sure take their time to do it). On Aug 27, 5:48 am, billas tobias.bil...@gmail.com wrote: As it seems the HTCDesire(2.2) responds to setResultData(null) wich will stop the out dial. Then you can place a new intent (Action.CALL) to call the new number. Not so nice workaround, but as a user you hardly notice it. On 26 Aug, 14:42, billas tobias.bil...@gmail.com wrote: Here to. Exact same problem. Tested onHTCDesire2.2 (not working). It seems like it ignoring the resultData from the broadcastreceiver. Earlier tested onHTCHero build 2.73.405.x (android 1.5) where the Dialer application doesn't even send a broadcast!! Current build onHTCHero (android 2.1) works perfectly. I'm getting a bit desperate for a good workaround ./tobias On 18 Aug, 21:31, Denis Souza denis.so...@gmail.com wrote: I'm getting the exact same problem. I have an app that changes the number being dialed. It works on everything except theHTCDesirewith Android2.2. Works withDesireon 2.1 and with any other device I tested with2.2. There are reports from several of my users using2.2devices and it works on all of them except for theHTCDesire. I'm think it might be a bug introduced byHTC. If you find a workaround let me know.. I'm still looking... Denis Souza On Aug 18, 10:20 am, Nicolas Zerr nicolas.z...@gmail.com wrote: Hello, I'm having troubles with intercepting outgoing calls. In fact, it works perfectly on emulator 2.1 and2.2, and was running also perfectly on myHTCDesirewhen i was in 2.1 version. Here is some source code : package com.testcallcatch.test; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class OutgoingCallReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d(LOOK HERE, - + getResultData()); setResultData(0123456789); Log.d(LOOK HERE, Setting to 0123456789); } } And the manifest : ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.testcallcatch.test android:versionCode=1
[android-developers] Re: Goo Market Frustration(s) -- a request to experienced app developers
On Oct 7, 7:27 am, tony obrien tobsourcecode...@gmail.com wrote: I was going to say, So if I can't test on EVERY device... but perhaps that's my first question... {a} Was I absent the day they told us in Android SDK class that any actual DEVICE may react differently from some other? I understand that if the device does not support somthing then, of course, it can't comply to my app's request. Example: I have 100's of downloads for an app... then I get a 1-STAR with the comment: Does not work on HERO. So I can imagine that he may be right OR he might be a twit and many others with HEROs had no problem. Yep. I find the communications facilities between the DEVELOPER and his AUDIENCE via the GOO Market to be quite unsophisticated. Yep So... {b} Is there some mechanism that I am not aware of that allows me to 'confront' my downloaders directly (i.e. an email address or something?) so that I can help them or at least discover what the heck someone means by It don't work ?? No. The one star person is unlikely to come back or help you anyway. At the moment I am planning on adding an entire new layout to all of my apps which would beg them to get in touch with me if they have *any* problem at all ... is this my only means to accomplish this? Yes, that is probably your best option. Loading up the app with admonitions is what works best. Get them subscribed to your newsletter, give them handy error report buttons, walk them through every step they have to take avoid errors. Even then, you won't completely prevent comments like you've seen. Many don't spend more than seven seconds on an app, and not everyone wants to help improve or fix an app. The app can be working fine, but not work the way *they* expect, and you will still get that comment. Nathan -- 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: onPause not being followed by onStop and onDestroy...
it should at least call onStop -- because the activity is no longer visible. On Oct 7, 7:10 am, Prakash Iyer thei...@gmail.com wrote: It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default behavior. This way if the user goes back to your app, thru the home key press or from launchpad, the onResume will be called and it will all be much faster than doing an onCreate which would otherwise have been required. On Thu, Oct 7, 2010 at 10:06 AM, sdphil phil.pellouch...@gmail.com wrote: I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- 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.comandroid-developers%2bunsubscr...@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: onPause not being followed by onStop and onDestroy...
See here: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle onPause is guaranteed to be called, but onStop/onDestroy is not. If Android needs memory after your activity has been paused, it may kill your process. This happens without invoking any callbacks. -- Kostya 07.10.2010 18:51, sdphil пишет: it should at least call onStop -- because the activity is no longer visible. On Oct 7, 7:10 am, Prakash Iyerthei...@gmail.com wrote: It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default behavior. This way if the user goes back to your app, thru the home key press or from launchpad, the onResume will be called and it will all be much faster than doing an onCreate which would otherwise have been required. On Thu, Oct 7, 2010 at 10:06 AM, sdphilphil.pellouch...@gmail.com wrote: I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] List of task killers
Hi, The so called task killers are sort of pain in my *** as users keep using it w/o understanding it, so I decided to check installed apps to find out if TK is installed and if so, warn the user about the potential consequences. Anyone got by any chance list of such apps (or packages) to share? -- 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: Simulating USB connection
I managed to narow down the problem and it seems some combinations of Table Layout can hurt when using with RemoteViews? Did not yet found the exact culprit -- 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] List of task killers
On Thu, Oct 7, 2010 at 10:02 AM, { Devdroid } webnet.andr...@gmail.comwrote: Anyone got by any chance list of such apps (or packages) to share? What's the point of some pre-populated list? As more get published your list will quickly be outdated. A quick check shows these apps require the kill background process permission. Perhaps there is a way to get a list of all apps installed that have this permission using the package manager? Barring that, a large popup that says Don't be stupid and kill my app if you want it to work right might work too. - 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: onPause not being followed by onStop and onDestroy...
okay, if the system decides to kill your activity, it won't call it. but what i'm seeing is really weird. I have an activity stack A, B (with B being on top / visible). When I hit back on B, i get to activity A, but onStop is never called. Now, when I hit back on A, I go back to the home screen, and then B's onStop (and then onDestroy) is called. The other strange thing is that if from activity A, i do a startActivity on activity B, it won't start it; i think my activity B is in some wonked out state. On Oct 7, 7:55 am, Kostya Vasilyev kmans...@gmail.com wrote: See here: http://developer.android.com/reference/android/app/Activity.html#Acti... onPause is guaranteed to be called, but onStop/onDestroy is not. If Android needs memory after your activity has been paused, it may kill your process. This happens without invoking any callbacks. -- Kostya 07.10.2010 18:51, sdphil пишет: it should at least call onStop -- because the activity is no longer visible. On Oct 7, 7:10 am, Prakash Iyerthei...@gmail.com wrote: It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default behavior. This way if the user goes back to your app, thru the home key press or from launchpad, the onResume will be called and it will all be much faster than doing an onCreate which would otherwise have been required. On Thu, Oct 7, 2010 at 10:06 AM, sdphilphil.pellouch...@gmail.com wrote: I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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
Re: [android-developers] Re: Simulating USB connection
RemoteViews are used by home screen widgets. The guide on creating those has this warning: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout A RemoteViews object (and, consequently, an App Widget) can support the following layout classes: FrameLayout LinearLayout RelativeLayout And the following widget classes: AnalogClock Button Chronometer ImageButton ImageView ProgressBar TextView Descendants of these classes are not supported. I don't know if you are creating a home screen widget, but even if not, I'd certain take the above into consideration. -- Kostya 07.10.2010 19:05, { Devdroid } ?: I managed to narow down the problem and it seems some combinations of Table Layout can hurt when using with RemoteViews? Did not yet found the exact culprit -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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