hi, does anyone know how to avoid an IllegalArgumentException? When accessing to a web server with URL class on android platform, this error occurs. According to an error message, the "|" is invalid. Here is a sample code.
/** sample code */ String host = "chart.apis.google.com"; String path = "chart?cht=p3&chd=t: 60,40&chs=250x100&chl=Hello|World"; URL url = new URL("http", host, 80, "/" + path); HttpURLConnection urlcon = (HttpURLConnection) url.openConnection(); InputStream fileIS = urlcon.getInputStream(); But you can see it work well on strandard jdk platfrom (I dont know right way to say standard platform). For example, with JDK 1.6.xx.xx, you can access to google api server without an IllegalArgumentException. Does anybody have an idea to access to the google api chart server? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---