Ok. I was wrong in my first post about the error not being displayed. The
appwidget did indeed just default to the initial value.
I solved the issue (I think) by doing the following:
public static class orientationDetectionService extends Service {
@Override public void onStart( Intent intent, int startID ) {
}
@Override void onConfigurationChanged( Configuration newConfig ) {
Intent intent = new Intent( this, widget.class );
intent.setAction( widget.FORCE_WIDGET_REDRAW );
sendBroadcast( intent );
}
@Override public IBinder onBind( Intent arg0 ) {
return null;
}
}
I context.startService'd in the onCreate of the widget, and put the service
into the manifest too.
Is this a heavy solution to the problem? It might be a naive question, but
will this solution eat away battery?
--
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