[android-developers] Re: Using StaticLayout with a canvas to draw text.

2011-07-09 Thread lilbyrdie
The translate() method is, indeed, the easiest. For instance, canvas.save(); canvas.translate(25.0f, 15.0f); layout.draw(canvas); canvas.restore(); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: Handling Network Unavailability

2009-10-07 Thread lilbyrdie
I think the question you're asking is simple: When network is lost, the SDK doesn't detect this and thinks it's valid still. Thus, it still tries to use it. But, since it's not there, nothing happens. How can this be resolved? If that's your question, I share that question. On Sep 16, 11:38 am

[android-developers] Re: ScreenDensity for WVGA in Donut Emulator

2009-09-16 Thread lilbyrdie
Hi, WVGA should be 800x480 pixel resolution. I would hope that the emulators would all draw pixel-to-pixel on whatever screen you're running on. That means they would all technically get the same pixel density -- the host machines. However, the idea is the simulate hardware that is of a variety

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread lilbyrdie
I think it's best to think of WebView as little more than a rendering engine. If you want to implement a Web Browser, you have to do that yourself. WebView isn't intended to be a little micro-embedded web browser. On Sep 14, 8:22 am, Photics wrote: > Heh... wow... this is complicated. In regular

[android-developers] Re: App Widget and Orientation Changes

2009-09-14 Thread lilbyrdie
not possible. > > > The standard G1's home screen rotates when you slide out the keyboard. > > Right, thanks. > > lilbyrdie, I can confirm that my caching solution also works when > the screen is rotated. > > Lee --~--~-~--~~~---~--~

[android-developers] Re: App Widget and Orientation Changes

2009-09-06 Thread lilbyrdie
Thanks for the info, Lee. That's quite a work around. I'm also a bit surprised that using a file directly is more reliable than using a file from within the package. More curiously, though, is why the file size is being reported incorrectly at boot time. I wonder if it's also being reported inco

[android-developers] Re: Junk AppWidgets after App Uninstall

2009-09-06 Thread lilbyrdie
Is there a definitive list of currently known App Widget defects & limitations? I know of a few simply because they've been confirmed on this forum (and have seen them for myself) but it's hard to distinguish between expected, but limited, behavior, true defects, and possible unexpected or misuse

[android-developers] Re: Bug report: widget does not load if the orientation changes during the configuration

2009-09-02 Thread lilbyrdie
I'm curious; what's in your widget? Is it a simple layout or a complex layout? A couple of us are seeing parts of our widgets become phantom on orientation changes (see here: http://groups.google.com/group/android-developers/browse_thread/thread/292892b7888bdfc5). On Aug 3, 4:03 pm, Derek wrote:

[android-developers] Re: Can't get my widget to show up?

2009-09-02 Thread lilbyrdie
Right away I see two things: I notice that you're setting the minimum SDK to v1.1 when App Widgets require v1.5. e.g. you have: but you probably want Second, your blocks are not within the block. Chances are, this is preventing the system from noticing that your application wants to be a

[android-developers] Re: App Widget and Orientation Changes

2009-09-02 Thread lilbyrdie
I'm using setImageViewResource. I find it odd that it persists when an Alarm is set, but not when an Alarm isn't set. Are you saying that for your widget your aren't configuring an update at all (e.g. just a static widget) via the widget configuration or manually? On Sep 1, 2:07 pm, Lee wrote

[android-developers] Re: App Widget and Orientation Changes

2009-09-02 Thread lilbyrdie
Also, I don't think this is related to the configuration issue reported (and confirmed) here: http://groups.google.com/group/android-developers/browse_thread/thread/869afdb312fc1e76/cb49f5e728430e75 But, if it is, that would be nice to know. On Sep 1, 2:07 pm, Lee wrote: > Hello, > > > After an

[android-developers] App Widget and Orientation Changes

2009-09-01 Thread lilbyrdie
Hello, I've built an app widget -- a fairly simple one -- that draws an image inside a frame. (If that sounds familiar, that's because it's very similar to the built-in one, but it's a start to something else.) The RemoteView consists of little more than a FrameView and an ImageView. I have a se

[android-developers] Re: Resolution

2009-08-19 Thread lilbyrdie
In addition what what Mark said, you can use the emulator to test with the QVGA skins, too (320x240 and 240x320). Those resolutions should help quickly reveal any obvious layout problems. On Aug 19, 6:06 am, Sukitha Udugamasooriya wrote: > Hi > > I have created an application and I want to mak

[android-developers] Re: why would a javascript "alert" doesn't show on a locally loaded html file through webkit?

2009-08-19 Thread lilbyrdie
Have you looked at WebChromeClient? http://developer.android.com/reference/android/webkit/WebChromeClient.html You'll likely need to override onJsAlert(). You'd then need to add it to your WebView via setWebChromeClient(). On Aug 18, 11:45 pm, Satya Komatineni wrote: > If an html file is local

[android-developers] Re: Render OpenGL to regular View (not GLSurfaceView)

2009-08-19 Thread lilbyrdie
That would depend on your definition of regular View, I suppose. For my uses, I can use a GLSurfaceView as a "regular" view as for as layout goes. What did you need it to do that you can't do? On Aug 19, 6:49 am, Deren wrote: > I've noticed that OpenGLContext is removed from 1.5. Everybody say

[android-developers] Re: SDK 1.5: unable to send SMS to another emulator

2009-05-13 Thread lilbyrdie
I couldn't find an open issue for this, so I opened a new one: http://code.google.com/p/android/issues/detail?id=2660 On May 12, 6:33 pm, lilbyrdie wrote: > I also have the same issue where twoemulatorinstances can't call orSMSeach > other like they could before (and simulat

[android-developers] Re: Gallery usage without using styleable

2009-05-13 Thread lilbyrdie
); I hope this helps someone. On May 12, 12:43 pm, lilbyrdie wrote: > Hello, > > I'm trying to find the "correct" new way to do image Gallery items, > previously (as also documented > here:http://developer.android.com/guide/tutorials/views/hello-gallery.html > and

[android-developers] Re: SDK 1.5: unable to send SMS to another emulator

2009-05-12 Thread lilbyrdie
I also have the same issue where two emulator instances can't call or SMS each other like they could before (and simulated SMS or calls to them do work -- it's as if the problem is just an outbound one?). Has anyone made any progress on this? The documentation implies that it should still work, bu

[android-developers] Gallery usage without using styleable

2009-05-12 Thread lilbyrdie
Hello, I'm trying to find the "correct" new way to do image Gallery items, previously (as also documented here: http://developer.android.com/guide/tutorials/views/hello-gallery.html and here http://developer.android.com/reference/android/widget/Gallery.html) the correct way was to apply android.R