How does a RemoteView get drawn

by » Wed, 29 Apr 2009 01:07:53 GMT

Sponsored Links

" * A class that describes a view hierarchy that can be displayed in
another process."

But unlike View class, RemoteView does not have a 'draw(Canvas
canvas)' method.
Can you please tell me which method of RemoteView causing its layout
to be drawn on screen?

Thank you.


How does a RemoteView get drawn

by Romain Guy » Wed, 29 Apr 2009 01:11:55 GMT

 RemoteViews are still drawn like regular views (they are in fact
regular views.) You just cannot create custom RemoteViews or override
their draw/layout methods.

On Mon, Apr 27, 2009 at 10:33 PM,

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


Sponsored Links

Other Threads

1. onContextItemSelected is never called

I set up by calling registerForContextMenu() on an EditText.  I then
override onCreateContextMenu(), onContextItemSelected(), and
onContextMenuClosed().  I added a few items to the menu in Create and
they appeared just fine in the resulting context menu.  I put
breakpoints at the top of all three of the overridden functions.
Create and Closed are called and ItemSelected is not.

What could possibly explain this?  It *seems* really simple to me.
I'm confused why it didn't work.  I even overrode onMenuItemSelected()
and also put a breakpoint in onOptionsItemSelected(), just to be
sure.  Neither of those functions is catching the item selection

Thanks for any help.

2. I broke my project

Im not sure what i did but now every line of code that specifies a
resource in the res folder is underlined in red. I tried to manually
add the raw directory under res and ithe compiler could not resolve
any of the items in the raw folder. i took one of eclipses suggestions
to fix the problem(can't remember which option i chose) and then
everything broke. Any suggestions?

3. How can i get my location?? use GPS? And a new txt reader test!

4. receive permissions for xmpp client

5. How to bring a exist activity to foreground

6. sim needed for accessing market?

7. How to scan for WiFi networks?