Re: [android-developers] Loading Images Using HttpURLConnection Concurrently
Hi, Is it possible for you to share an example of an image URL you're using? -- H On Apr 6, 2013, at 5:59 AM, Alex Fu alex.fu...@gmail.com wrote: I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Advanced Touch Control: passing touch event from one view to another
Why can't you just declare an Application variable and pass it back and forth that 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Access web service over SSL with client certificate (KSOAP)
Dear developers... I need to access a very secure web service that requires authentication with server *AND client certificates*. The big problem (to me) is *how to define client certificate in the SSL packet*. I use o Ksoap but don't found documentation about SSL and certificates. Any idea? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Access web service over SSL with client certificate (KSOAP)
try these http://blog.callistaenterprise.se/2011/11/24/creating-self-signed- certificates-for-uhttp://blog.callistaenterprise.se/2011/11/24/creating-self-signed-certificates-for-use-on-android/ se-on-android/http://blog.callistaenterprise.se/2011/11/24/creating-self-signed-certificates-for-use-on-android/ http://blog.callistaenterprise.se/2011/11/24/android -tlsssl-mutual-authentication/ Thanks Regards, Renuka On Sat, Apr 6, 2013 at 5:48 PM, mbarbiero marco.barbi...@gmail.com wrote: Dear developers... I need to access a very secure web service that requires authentication with server *AND client certificates*. The big problem (to me) is *how to define client certificate in the SSL packet*. I use o Ksoap but don't found documentation about SSL and certificates. Any idea? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Loading Images Using HttpURLConnection Concurrently
If possible, I would rather not. I'm using my own server to serve up data so for the HTTPS bit, I used a self signed certificate. Not sure if that's something that would cause the 400 error. On Sat, Apr 6, 2013 at 2:55 AM, Harri Smått har...@gmail.com wrote: Hi, Is it possible for you to share an example of an image URL you're using? -- H On Apr 6, 2013, at 5:59 AM, Alex Fu alex.fu...@gmail.com wrote: I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Alex Fu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers]regarding bluetooth auto-pairing urgernt
can anyone tell me is auto pairing possible using bluetooth android i mean to say no user interrupt is required. * * -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Strange memory consumption switching between activities
I'm running an app in a 4.2 Nexus 7 device. It has 64 mb app memory. I have 2 activities - and a button to toggle between them. When I start activity A, then B, then A, B, A, B, etc. After a while I get an out of memory error. I investigated this problem with a heap dump and the memory analysis tools. I found that, basically, the problem is, that the main view - instances of these activities, are kept in memory- and instantiated again and again every time I start this activity! Concretly: - In activity A I have a coverflow instance, which is basically a Gallery with some 3d effect. - In activity B I have a gridview If I switch let's say 8 times between A and B, the heap analysis shows me that 8 instances of coverflow, and 8 instances of gridview are in memory! Each occupying ~1.4 mb BTW: I'm using images, but these are managed by universal image loader library, which I have used frequently now and doesn't seem to cause problems / leaks. Also, the bitmap - occupied space shown by the memory analysis is small. The big issue are these instances of coverflow and gridview. I'm not retaining these instances in static variables or anything. I don't know why they are kept in memory. I also added System.gc calls and method to clear the memory cache of the image loader library - but this doesn't help. Since the main problem seem to be that these instances are retained (although I don't know how/where), I understand that gc doesn't help. So, after the users switch screens a while, they get an out of memory. How can I solve this? I went through many option of the memory analysis but didn't find anything that tells me, where/how/when these instances are retained. 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android 4.2 introduced SELinux enabled by default on kernel. am I right?
4 Questions and 4 LMGTFY as answers. Classic. Thank you! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Zooming with Google Maps Android API v2
Change mMap.getUiSettings().setZoomControlsEnabled(false); to mMap.getUiSettings().setZoomControlsEnabled(true); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] String.replaceAll with regular expression
Hello, I want to replace parts of a string but get an error :-( The code: String reSiezedURL = foo; reSiezedURL = reSiezedURL.replaceAll((?w=[0-9]+), String.format(?w=%d, this.reqWidth)); reSiezedURL = reSiezedURL.replaceAll((w=[0-9]+), String.format(w=%d, this.reqWidth)); reSiezedURL = reSiezedURL.replaceAll((?h=[0-9]+), String.format(?h=%d, this.reqHeight)); reSiezedURL = reSiezedURL.replaceAll((h=[0-9]+), String.format(h=%d, this.reqHeight)); The error: Caused by: java.util.regex.PatternSyntaxException: Invalid value for match mode flags near index 4: (?w=[0-9]+) ^ at java.util.regex.Pattern.compileImpl(Native Method) java.util.regex.Pattern.compile(Pattern.java:407) at java.util.regex.Pattern.init(Pattern.java:390) at java.util.regex.Pattern.compile(Pattern.java:381) at java.lang.String.replaceAll(String.java:1774) The question: What is wrong with my regular expression? Regards, Ralph -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Strange memory consumption switching between activities
You need to do is : A - start B - AB - finish B - A - start B - AB - finish B - A What you are doing (if you have explained correctly is): A - start B - B - start A - ABA - start B - ABA - start B - ABAB etc On Saturday, April 6, 2013 5:56:39 PM UTC+1, user123 wrote: I'm running an app in a 4.2 Nexus 7 device. It has 64 mb app memory. I have 2 activities - and a button to toggle between them. When I start activity A, then B, then A, B, A, B, etc. After a while I get an out of memory error. I investigated this problem with a heap dump and the memory analysis tools. I found that, basically, the problem is, that the main view - instances of these activities, are kept in memory- and instantiated again and again every time I start this activity! Concretly: - In activity A I have a coverflow instance, which is basically a Gallery with some 3d effect. - In activity B I have a gridview If I switch let's say 8 times between A and B, the heap analysis shows me that 8 instances of coverflow, and 8 instances of gridview are in memory! Each occupying ~1.4 mb BTW: I'm using images, but these are managed by universal image loader library, which I have used frequently now and doesn't seem to cause problems / leaks. Also, the bitmap - occupied space shown by the memory analysis is small. The big issue are these instances of coverflow and gridview. I'm not retaining these instances in static variables or anything. I don't know why they are kept in memory. I also added System.gc calls and method to clear the memory cache of the image loader library - but this doesn't help. Since the main problem seem to be that these instances are retained (although I don't know how/where), I understand that gc doesn't help. So, after the users switch screens a while, they get an out of memory. How can I solve this? I went through many option of the memory analysis but didn't find anything that tells me, where/how/when these instances are retained. 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Strange memory consumption switching between activities
Ah. Right. I'm an idiot :) I have a side navigation menu and there user can keep tapping item A, item B, item A, item B, etc. And everything is kept in the navigation stack. Now I'm calling finish on the current activity after starting a new one. The problem seems to be fixed. Thanks! Am Samstag, 6. April 2013 22:48:01 UTC+2 schrieb RichardC: You need to do is : A - start B - AB - finish B - A - start B - AB - finish B - A What you are doing (if you have explained correctly is): A - start B - B - start A - ABA - start B - ABA - start B - ABAB etc On Saturday, April 6, 2013 5:56:39 PM UTC+1, user123 wrote: I'm running an app in a 4.2 Nexus 7 device. It has 64 mb app memory. I have 2 activities - and a button to toggle between them. When I start activity A, then B, then A, B, A, B, etc. After a while I get an out of memory error. I investigated this problem with a heap dump and the memory analysis tools. I found that, basically, the problem is, that the main view - instances of these activities, are kept in memory- and instantiated again and again every time I start this activity! Concretly: - In activity A I have a coverflow instance, which is basically a Gallery with some 3d effect. - In activity B I have a gridview If I switch let's say 8 times between A and B, the heap analysis shows me that 8 instances of coverflow, and 8 instances of gridview are in memory! Each occupying ~1.4 mb BTW: I'm using images, but these are managed by universal image loader library, which I have used frequently now and doesn't seem to cause problems / leaks. Also, the bitmap - occupied space shown by the memory analysis is small. The big issue are these instances of coverflow and gridview. I'm not retaining these instances in static variables or anything. I don't know why they are kept in memory. I also added System.gc calls and method to clear the memory cache of the image loader library - but this doesn't help. Since the main problem seem to be that these instances are retained (although I don't know how/where), I understand that gc doesn't help. So, after the users switch screens a while, they get an out of memory. How can I solve this? I went through many option of the memory analysis but didn't find anything that tells me, where/how/when these instances are retained. 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Reduce line spacing
Hi, in designer, or by any means, is it possible in AppInventor to decrease line spacing? I have 5 textbox' in a vertical arrangement. I want them to have less spacing in between these textbox'. Any suggestions? Thanks :) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.