Call stopFlipping and startFlipping from RemoteViews
there is a way to call a function stopFlipping
from AppWidgetProvider
using an object RemoteViews
.
As I saw the function in RemoteViews
ie setInt , setString
, etc., but they all have a third parameter that needs to be filled with some value.
where there is no way to call the function type arguments stopFlipping
or startFlipping
not.
source to share
startFlipping()
and stopFlipping()
certainly not accessible via RemoteViews
, as these methods are not coded using @android.view.RemotableViewMethod
in the source code.
One workaround you can try is to use setInt()
to change flipInterval
, setting it to the normal value that you usually use startFlipping()
and set it to something very long (like a year) where you usually use stopFlipping()
.
source to share