Hi list,

I have one question about security of appwidget.

I found that any app on the device can get RemoteViews
of my appwidget on the Home app, and can change my
RemoteViews object, like below.

----
// get RemoteViews of AppWidget
RemoteViews rv = new RemoteViews(somePackageName, someLayoutId);

// change text
rv.setTextViewContent(someTextViewId, "foobar");

// change onclick behavior
rv.setOnclickPendingIntent(someButtonViewId, somePendingIntent);
----

My question is, how can I protect from rogue apps to
change my appwidget?

-- 
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