[android-developers] Re: HttpURLConnection headers
Hello Lucas, Have you been able to solve this problem. I have tried to use the apache httpclient classes to get my networking going and that does not seem to help either. I am interested in the x-up-subno header that ATT adds. I looked thro the source of the WebView, WebViewCore, BrowserFrame classes from the android src and noticed that the loading is happening via a native method - public void loadData(String baseUrl, String data, String mimeType, String encoding, String failUrl) { mLoadInitFromJava = true; if (failUrl == null) { failUrl = ; } if (data == null) { data = ; } // Setup defaults for missing values. These defaults where taken from // WebKit's WebFrame.mm if (baseUrl == null || baseUrl.length() == 0) { baseUrl = about:blank; } if (mimeType == null || mimeType.length() == 0) { mimeType = text/html; } nativeLoadData(baseUrl, data, mimeType, encoding, failUrl); mLoadInitFromJava = false; } -- thanks, kiran On Sep 16, 12:23 pm, Lucas roll...@gmail.com wrote: That is not an option. Because also i need some more headers that are not being added and that i can't add by hand. Indeed once of the headers i need is added by the operator APN, and for some reason when connecting by code it is not being added. Below there is more info about this: Here are the headers i get when connecting though browser:http://bannergame.googlecode.com/files/device_browser.png And here the ones i get when connecting through code:http://bannergame.googlecode.com/files/device_code.png The header i need besides the User-Agent is the **x-up-subno*** which is a special header that ATT adds and identify the GSM seem card that the device is using. Do you know why this is not added? How can i force the connection though the APN wap setting? Or how can i mimic Webkit connection from code? Thanks, Lucas On Sep 15, 7:37 pm, Mark Murphy mmur...@commonsware.com wrote: rollbak wrote: Does anyone know we i get different behaviors? Because WebKit does not useHttpURLConnection. How i can i connect in the same way the browser does? Set your own User-Agent header via methods onHttpURLConnection. http://stackoverflow.com/questions/480153/how-to-modify-the-header-of... -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 1.5 SDK now available
Can you post a link to ROM you downloaded for the 1.5 cupcake update for the G1 Developer phone. On May 6, 1:32 pm, DJMoran danmo...@blueyonder.co.uk wrote: Never mind I've got it from HTC.com now On May 6, 9:30 pm, DJMoran danmo...@blueyonder.co.uk wrote: I've got a dev phone but I ahven't received the firmware update, nor is it available through the system update option On May 5, 6:04 pm, Sonert soner...@gmail.com wrote: Any idea when the update is going to be pushed to all android phone not just Dev models? On Apr 27, 11:12 am, Xavier Ducrohet x...@android.com wrote: Hello developers, The Android 1.5 SDK, and the 1.5 images for ADP1 are now available for download. More information athttp://android-developers.blogspot.com/2009/04/android-15-is-here.html Xav -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Maps with custom tiles
AFAIK, The Android MapView only supports satellite and map view tiles. I did come across a thread on this forum earlier some one asking for custom tiles, and also noted that a feature request was going to put in. Not sure if that ever happened ?!! But I came across this project on google code that is a full/free replacement for the MapView class. http://code.google.com/p/osmdroid/ Look at the code and this may help u get ideas on how to implement your own tiles as well. - Kiran On Jun 8, 8:21 am, CF chrisfurt...@gmail.com wrote: I have a custom map created using Google My Maps, but am not able to replicate the same on Android. Any suggestions? On Jun 8, 10:35 am, Saurav Mukherjee to.saurav.mukher...@gmail.com wrote: do u already have map tiles of ur own?? On Mon, Jun 8, 2009 at 7:59 PM, CF chrisfurt...@gmail.com wrote: I'm struggling with the same problem. Any pointers or ideas? On May 20, 5:20 am, khose marcos.hdez@gmail.com wrote: C'mon there must be a solution:) On 14 mayo, 09:52, khose marcos.hdez@gmail.com wrote: Hi! I've been searching hardly the past two days, looking for a way to implement a map view with custom map tiles. I mean; i have to use maps tiles different than the ones provided by Google Maps. Someone said here that there is a way, but he didn't tell the way to do that. I know that you can do that with Google Maps API for Web, but i've studied Android's API and i can't find a method to load your map tiles. I would appreciate any help and/or example to do this. I'm really stucked and the client need this feature in the application. 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 -~--~~~~--~~--~--~---