> I don't know how to get the button object from appwidget(get the ture
> layout copy of home screen).

You can't access the actually-inflated layout from your app because it
exists entirely in another process.


> I know the RemoteView offeres an interface
> RemoteView.setOnClickPendingIntent,but what I need is
> RemoteView.setOnClickListener(R.id.delete,OnClickListener)

You can't setOnClickListener() directly, because the target View lives
in another process.  If this were allowed, the other process would be
executing your code as itself, which is a security hole.


-- 
Jeff Sharkey
[email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to