[android-developers] Re: ProgressBar in Webview
Yes, this is what I was trying to achieve. The problem is that its almost like the webview comes up from below the progressbar when the page loads. On Sat, Jan 17, 2009 at 9:02 AM, Fred Grott(shareme) fred.gr...@gmail.comwrote: Do you mean load progress rotating image and once the page loads it disappears? On Jan 16, 4:29 pm, Chris Chiappone chiapp...@gmail.com wrote: Is there an easy way to show a indeterminate progressBar ontop of a webview. I can create a progress bar but the webview shows up below it. Thanks -- ~chris --~--~-~--~~~---~--~~ 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] ProgressBar in Webview
Is there an easy way to show a indeterminate progressBar ontop of a webview. I can create a progress bar but the webview shows up below it. 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: Android T-Mobile Hotspot (WiFi) Calling Support
Some one should be able to write it. On Sun, Oct 12, 2008 at 12:16 AM, Robert H [EMAIL PROTECTED] wrote: Currently T-Mobile offers WiFi calling through a limited number of phones (including Blackberry Curve) for around $10 a month. This is a great feature and really allows customers to save big on their cellular phone bill. Why isn't this a capability for the T-Mobile (HTC) G1? Google, come on, make it possible! -Robert H. -- ~chris --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: polite request for better error messages
Wrap the issue in a try catch block and log the exception. You'll get much more detailed info. On Wed, Oct 8, 2008 at 4:32 PM, Jason Proctor [EMAIL PROTECTED] wrote: dear google, any chance of better error messages from the android classes? usually, the java frameworks have nice developer-friendly (as opposed to user-friendly) messages in exceptions when things go wrong. but it seems that with the android.* packages, errors are unexpected and the message is invariably some variation on -- error code -1: unknown error -- which isn't very helpful. that's the actual error message when an application tries to open a socket and doesn't have internet permission. this led to numerous list threads etc which could have been avoided if the piece of code discovering the problem and throwing the exception had included a better message. then the solution would have been obvious. i'm running into another one at the moment. if MediaPlayer doesn't like the data it's presented with, it will throw during prepare(). the error message i'm looking at is -- error: Prepare failed: status=0x -- which is, you guessed it, error code -1 again. there are numerous possible error cases here, and the code which threw the exception knew what the problem was, so why didn't it tell us? i'm going to have to start another list thread on streaming http, because i can't tell what the problem is. i *know* prepare() failed, how about telling me WHY?? thanks in advance. j -- ~chris --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to load html file from sdcard to WebVeiw
Yeah that should be relatively simple. List the contents of the SDCard and find your file. Then create a WebView and use the loadData() method to load the data as a string. ~chris On Wed, Oct 1, 2008 at 3:08 PM, Billsen [EMAIL PROTECTED] wrote: Hi, Is it possible to load html file into WebView? If yes, how? Thanks, Senhsan --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: changing path r.java
I was trying to think of a way to solve this also. Basically if you extend R.java somewhere else then just reference your new subR.java class and it would work. But you would still need to have the super class in the the main packaged declared in the manifest. ~chris On Wed, Oct 1, 2008 at 3:34 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote: The R.java class is always created in the package declared in manifest. The only option you have is changing the package. Xav On Tue, Sep 30, 2008 at 8:42 AM, alan [EMAIL PROTECTED] wrote: Is it possible to change the path of r.java? My application has shared source folders with a J2ME app, r.java is automatically placed in the first folder in the project which is one of the shared folders, i would like it to be in one of the android specific folders -- ~chris --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: ADT 0.8.0 Eclipse plugin download taking FOREVER
Yeah im having the same issue, actually seems to be frozen up. On Wed, Sep 24, 2008 at 2:16 PM, blindfold [EMAIL PROTECTED] wrote: The ADT plugin can be downloaded and handled manually via http://code.google.com/android/adt_download.html but apart from ADT, yes, Ganymede is for me too going through a lengthy update session, currently about halfway through. On Sep 24, 9:40 pm, kingkung [EMAIL PROTECTED] wrote: Anyone else having this problem??? After hitting Install for the ADT and Editor through the Software Updates screen, I get a progress dialog that says Resolving Dependencies, and it's taking FOREVER. I have Eclipse 3.4 Ganymede on 32-bit Windows XP. The progress bar below shows it's (really, really slowly) downloading a bunch of jar files, stuff like http://download.eclipse.org/eclipse/updates/3.4/features/org.eclipse and it's just taking an indescribable amount of time... judging from the progress bar it looks like it may take hours to download this. Is anyone else having trouble downloading the ADT plugin? -- ~chris --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: WebView
I wondering the same thing. 2008/9/7 dai [EMAIL PROTECTED]: Hi...somebody knows the way to keep web surfing on WebView component..? Does WebView allow to show web page at first so far? Thanks in advnace On 9月7日, 午後5:53, Dai Odahara [EMAIL PROTECTED] wrote: hi I mean that I do nt open new window. Is it possible not to open web window from web view comp? On 9/7/08, dai [EMAIL PROTECTED] wrote: I'm trying to display web page (html / javascript) on WebView component. You know, it's ok to show the page on the WebView comp initially but after clicking a link (like weather, finance), the web-browser embedded on Android originally. Does someone know how to keep showing web page on the WebView componenet?? Thank you very much -- ~chris --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Using the ItemizedOverlay and OverlayItem
I had to manually draw those inside the onTap method. On Thu, Sep 4, 2008 at 3:51 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: OK overlay items are drawn with the setBounds trick. But overlay title or snippet is never drawn even if we tap on it. How to use these overlay items fields ? On Sep 3, 12:09 pm, Peter Stevenson [EMAIL PROTECTED] wrote: Chris Chiappone wrote: Marcel, Thanks for that seems to work as you described. The only thing that doesn't seem right is the way the map draws the markers shadow. Any idea on how to correct that. Thanks. On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 [EMAIL PROTECTED] wrote: Hi everyone, I finally got this thing working. Just set the bounds of the marker to be drawn and that's it! Sample: Drawable defaultMarker = getResources().getDrawable(R.drawable.map_marker_red); defaultMarker.setBounds(0, 0, defaultMarker.getIntrinsicWidth(), defaultMarker.getIntrinsicHeight()); mMapView.getOverlays().add(new DemoOverlay(defaultMarker)); // DemoOverlay is of course an ItemizedOverlay I made a small demo showing one OverlayItem and how to handle tap- events. If someone is interested: http://www.marcelp.info/2008/09/01/android-itemizedoverlay-demo/ Regards, Marcel try changing private GeoPoint mRandomPoint = new GeoPoint(5309691, 8851933); to some thing like this currentPoint = new GeoPoint((int) (-43.2973 * 100), (int) (172.5929 * 100)); the map is draw much faster peter -- ~chris --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Using the ItemizedOverlay and OverlayItem
Marcel, Thanks for that seems to work as you described. The only thing that doesn't seem right is the way the map draws the markers shadow. Any idea on how to correct that. Thanks. On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 [EMAIL PROTECTED] wrote: Hi everyone, I finally got this thing working. Just set the bounds of the marker to be drawn and that's it! Sample: Drawable defaultMarker = getResources().getDrawable(R.drawable.map_marker_red); defaultMarker.setBounds(0, 0, defaultMarker.getIntrinsicWidth(), defaultMarker.getIntrinsicHeight()); mMapView.getOverlays().add(new DemoOverlay(defaultMarker)); // DemoOverlay is of course an ItemizedOverlay I made a small demo showing one OverlayItem and how to handle tap- events. If someone is interested: http://www.marcelp.info/2008/09/01/android-itemizedoverlay-demo/ Regards, Marcel -- ~chris --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Using the ItemizedOverlay and OverlayItem
); } On 27 août, 20:49, Chris Chiappone [EMAIL PROTECTED] wrote: Same problem here, i converted code normal overlay code that worked in order to use the recommended ItemizedOverlay. Can anyone confirm that this is a bug or are we just doing something wrong. Thanks. On Tue, Aug 26, 2008 at 9:52 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: Hi, I have the same problem. The draw function is called, I tried to override it, I even added a bitmap in the top left corner for test purposes, I see my dummy bitmap but no items... On 26 août, 07:50, marcel-182 [EMAIL PROTECTED] wrote: Hi, Same problem here. I added two items and I found out that even the draw() method from ItemizedOverlay is called but there is nothing on my map view. My code is quite equal to yours. On 25 Aug., 18:29, Reto [EMAIL PROTECTED] wrote: I've been trying to use the ItemizedOverlay and OverlayItem classes in the 0.9 Beta to simulate map markers but have been having some problems getting it to display on the map. Once I've implemented my own ItemizedOverlay (and overriden createItem), creating a new instance of my class seems to work (I can extract OverlayItems from it) but adding it to the overlay list for one of my maps doesn't seem to do anything. I've included the code for adding the ItemizedOverlay to the map, and the ItemizedOverlay implementation itself is also included. Have I done something wrong or is this functionality not yet available? // Add the ItemizedOverlay to the Map private void addItemizedOverlay() { Resources r = getResources(); mapView = (MapView)findViewById(R.id.map_view); ListOverlay overlays = mapView.getOverlays(); MyItemizedOverlay markers = new MyItemizedOverlay(r.getDrawable(R.drawable.icon)); overlays.add(markers); OverlayItem oi = markers.getItem(0); markers.setFocus(oi); mapView.postInvalidate(); } Where MyItemizedOverlay is defined as: public class MyItemizedOverlay extends ItemizedOverlayOverlayItem { public MyItemizedOverlay(Drawable defaultMarker) { super(defaultMarker); populate(); } @Override protected OverlayItem createItem(int index) { Double lat = (index+37.422006)*1E6; Double lng = -122.084095*1E6; GeoPoint point = new GeoPoint(lat.intValue(), lng.intValue()); OverlayItem oi = new OverlayItem(point, Marker, Marker Text); return oi; } @Override public int size() { return 5; } } -- ~chris -- ~chris --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: Using the ItemizedOverlay and OverlayItem
Same problem here, i converted code normal overlay code that worked in order to use the recommended ItemizedOverlay. Can anyone confirm that this is a bug or are we just doing something wrong. Thanks. On Tue, Aug 26, 2008 at 9:52 AM, Guillaume Perrot [EMAIL PROTECTED] wrote: Hi, I have the same problem. The draw function is called, I tried to override it, I even added a bitmap in the top left corner for test purposes, I see my dummy bitmap but no items... On 26 août, 07:50, marcel-182 [EMAIL PROTECTED] wrote: Hi, Same problem here. I added two items and I found out that even the draw() method from ItemizedOverlay is called but there is nothing on my map view. My code is quite equal to yours. On 25 Aug., 18:29, Reto [EMAIL PROTECTED] wrote: I've been trying to use the ItemizedOverlay and OverlayItem classes in the 0.9 Beta to simulate map markers but have been having some problems getting it to display on the map. Once I've implemented my own ItemizedOverlay (and overriden createItem), creating a new instance of my class seems to work (I can extract OverlayItems from it) but adding it to the overlay list for one of my maps doesn't seem to do anything. I've included the code for adding the ItemizedOverlay to the map, and the ItemizedOverlay implementation itself is also included. Have I done something wrong or is this functionality not yet available? // Add the ItemizedOverlay to the Map private void addItemizedOverlay() { Resources r = getResources(); mapView = (MapView)findViewById(R.id.map_view); ListOverlay overlays = mapView.getOverlays(); MyItemizedOverlay markers = new MyItemizedOverlay(r.getDrawable(R.drawable.icon)); overlays.add(markers); OverlayItem oi = markers.getItem(0); markers.setFocus(oi); mapView.postInvalidate(); } Where MyItemizedOverlay is defined as: public class MyItemizedOverlay extends ItemizedOverlayOverlayItem { public MyItemizedOverlay(Drawable defaultMarker) { super(defaultMarker); populate(); } @Override protected OverlayItem createItem(int index) { Double lat = (index+37.422006)*1E6; Double lng = -122.084095*1E6; GeoPoint point = new GeoPoint(lat.intValue(), lng.intValue()); OverlayItem oi = new OverlayItem(point, Marker, Marker Text); return oi; } @Override public int size() { return 5; } } -- ~chris --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---