[android-developers] Re: Ajax cross domain requests
On Nov 8, 8:32 pm, Frank Weiss fewe...@gmail.com wrote: Not sure if you're just complainig about the error handling. I suppose you know that JSONP does cross-domain and is supported by jQuery.ajax. Yep, the error handling is wrong and dangerous since the browser actually sends the request while it shouldn't (it becomes possible to use it for distributed dos attacks). And while jsonp is just an hack, CORS is the standard solutions implemented by all modern browsers... Bye, ff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Ajax cross domain requests
Hi, the behavior of XMLHttpRequests in Android is very odd when doing cross domain requests. The browser should either fail with an error and not perform the request, or it should follow CORS (http:// www.w3.org/TR/access-control/) and start with an OPTIONS request to the remote domain. The Android browser (2.1 and 2.2) instead performs the request, which is received by the remote server (and this is the dangerous part both for data leaking and remote attacks), but the response is not set in the javascript (status of 0 and responseText null) bye -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: XMLHttpRequest on Android 2.1 repeats itself after 14 seconds
On Sep 16, 3:12 pm, Chaitanya Gupta m...@chaitanyagupta.com wrote: Hi, There is a weird behaviour withXMLHttpRequestthat I have noticed in the default browser on Android 2.1: if the server takes a long time to respond to an AJAX request (more than 14 seconds), then the browser sends another request to the server (which looks identical to the original one). I only know that two requests have been sent when I observe incoming requests on the server. Meanwhile, the output of adb logcat gives me this line: 09-13 20:59:43.912 W/browser (22847): Console: Error: NETWORK_ERR:XMLHttpRequestException 101 I'm seeing the same behavior in both galaxy tab (froyo) and on an upgraded htc hero (eclair). The only difference is that non froyo the error happens after 12s and on eclair after about a minute. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] RTSP streaming - how to do redirects
Hi, Android developers! I've recently tried to make some kind of load balancer for RTSP streaming. It worked with Quicktime player, however didn't work with android (2.2). My load balancer is quite simple - when it receives something like this: OPTIONS rtsp://ip.ip.ip.ip/vod/path/file.mp4 RTSP/1.0 CSeq: 0 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.2) ClientChallenge: 9e26d33f2984236010ef6253fb1887f7 PlayerStarttime: [28/03/2003:22:50:23 00:00] CompanyID: KnKV4M4I/B2FjJ1TToLycw== GUID: ---- DESCRIBE rtsp://ip.ip.ip.ip/vod/path/file.mp4 RTSP/1.0 CSeq: 1 User-Agent: PVPlayer CORE/6.506.4.1 OpenCORE/2.02 (Linux;Android 2.2) Accept: application/sdp Accept-Encoding: And my program responds: RTSP/1.0 302 Found Server: QTSS/5.5.5 (Build/489.16; Platform/MacOSX; Release/Darwin; state/beta; ) Cseq: 1 Connection: Close Location: rtsp://ip2.ip2.ip2.ip2:1915/vod/path/file2.mp4 However, that works with Quicktime and does not work with Android. Can you suggest me the right way to do redirects? 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
[android-developers] DOMStorage and application upgrade
Hi I'm saving data in the DOMStorage of a WebView, but it seems that after any application upgrade the storage is deleted. Is there a way to make it persistent? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Custom component rare exception: Parser is not a BridgeXmlBlockParser!
Oh, I see, when I use new Button(getContext(), attrs), where attrs are got from one of the overloaded constructors, then everything is all right.. What makes it impossible to create button simply with new Button (getContext()) ? On 16 авг, 18:04, ff rshme...@gmail.com wrote: Hi! I've created custom compound component and observe very strange exception (google says nothing about it). It is very simple: public class MyTabber extends LinearLayout { .. public MyTabber(Context context) { super(context); Init(context);} ..+2 overloads Button x = null; public void Init(Context context) { x = new Button(getContext()); addView(x); // exception seems to be here } The layout where I use the component is also simple and has the following occurense: com.roma.second.MyTabber xmlns:android=http://schemas.android.com/ apk/res/android id=@+id/yes android:layout_width=fill_parent android:layout_height=fill_parent / When I try to edit layout (in visual representation) - I get: [2009-08-16 17:59:48 - main.xml] Parser is not a BridgeXmlBlockParser! java.lang.NullPointerException at android.view.ViewGroup.addView(ViewGroup.java:1661) at android.view.ViewGroup.addView(ViewGroup.java:1648) at com.roma.second.MyTabber.Init(MyTabber.java:49) at com.roma.second.MyTabber.init(MyTabber.java:31) Please advice... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Custom component rare exception: Parser is not a BridgeXmlBlockParser!
Hi! I've created custom compound component and observe very strange exception (google says nothing about it). It is very simple: public class MyTabber extends LinearLayout { .. public MyTabber(Context context) { super(context); Init(context); } ..+2 overloads Button x = null; public void Init(Context context) { x = new Button(getContext()); addView(x); // exception seems to be here } The layout where I use the component is also simple and has the following occurense: com.roma.second.MyTabber xmlns:android=http://schemas.android.com/ apk/res/android id=@+id/yes android:layout_width=fill_parent android:layout_height=fill_parent / When I try to edit layout (in visual representation) - I get: [2009-08-16 17:59:48 - main.xml] Parser is not a BridgeXmlBlockParser! java.lang.NullPointerException at android.view.ViewGroup.addView(ViewGroup.java:1661) at android.view.ViewGroup.addView(ViewGroup.java:1648) at com.roma.second.MyTabber.Init(MyTabber.java:49) at com.roma.second.MyTabber.init(MyTabber.java:31) Please advice... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: felix OSGi Container and Android
Thx for your Help I try to start an Activity in my OSGi Bundle... So i need to customize my bootclasspath... And now, i have an error because i have no Looper.prepare, no looper.loop, no message handler... I try to find a standard (default) handler but for instance I fail... Does anybody knows where to find the default implementation ? Franck On 18 fév, 22:54, Karl Pauls karlpa...@gmail.com wrote: You need to edit the property: org.osgi.framework.system.packages in the following file, conf/config.properties Just add the package add the end of the list like: ... javax.net.ssl; \ android.content.res; \ ${dalvik-1.0.0-m3-r22a} This will make the package available via the system bundle and your bundle should be able to resolve. Feel free to ask felix related questions on the felix mailinglist as well :-) regards, Karl On Wed, Feb 18, 2009 at 3:37 PM, ff franck.rou...@gmail.com wrote: Hi, I try felixOSGion android it works fine... until i try to embed an activity. now some package are missing: Unresolved constraint in bundle 4: package; (package=android.content.res)) i'm unable to find where is this package... I think i must customize bootclasspath but how ? I launch felix with this command (found on felix web site): /system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar - classpath bin/felix.jar org.apache.felix.main.Main. Any idea ! Franck -- Karl Pauls karlpa...@gmail.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] felix OSGi Container and Android
Hi, I try felix OSGi on android it works fine... until i try to embed an activity. now some package are missing: Unresolved constraint in bundle 4: package; (package=android.content.res)) i'm unable to find where is this package... I think i must customize bootclasspath but how ? I launch felix with this command (found on felix web site): /system/bin/dalvikvm -Xbootclasspath:/system/framework/core.jar - classpath bin/felix.jar org.apache.felix.main.Main. Any idea ! Franck --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Defining Themes in Android
Hi! I'm trying to study Themes and found the following poor piece of code: style name=ThemeNew item name=windowFrame@drawable/screen_frame/item item name=windowBackground@drawable/screen_background_white/ item item name=panelForegroundColor#FF00/item item name=panelBackgroundColor#/item item name=panelTextColor?panelForegroundColor/item item name=panelTextSize14/item item name=menuItemTextColor?panelTextColor/item item name=menuItemTextSize?panelTextSize/item /style This is all about defining custom themes!! what item names can I use? where is the list and description of them? 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 -~--~~~~--~~--~--~---