Friday, October 7, 2011

[android-developers] AppWidgetHostView handle touch event problem

i am adding installed AppWidgetViews to my application as
AppWidgetHostView. The problem is they don't handle any touch events
as they were added to home screen. Here is part of my code;

----------------------------------------------------------------

AppWidgetHost host = new AppWidgetHost(getContext(), HOST_ID);
AppWidgetManager manager = AppWidgetManager.getInstance(getContext());

int id = host.allocateAppWidgetId();
AppWidgetHostView view = host.createView(getContext(), id, info);

-----------------------------------------------------------------

Lets say AppWidgetProviderInfo object "info" belongs to
"com.android.alarmclock.AnalogAppWidgetProvider", which is the default
analog clock widget of android. This view has to launch clock setting
when a click performed on it as it performed on home screen, still i
have no response from it. Is there a way to solve this problem? Thanks
in advance...

Same question is avaible @StackOverflow...
http://stackoverflow.com/questions/7514009/appwidgetprovider-handle-touch-event-problem

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment