Note that there are some explanatory texts on larger screens.

plurals
  1. POMaximum Refresh Rate of A Widget
    text
    copied!<p>I know that the default is 30 minutes, however I am looking at making a game in a widget</p> <p>This would require millisecond responses.... has anyone messed with the AlarmClock Timing that is described to use instead to achieve this? does it work well? </p> <p>I haven't finished the Software Arc for the project yet because I see a lot of complaints about this on the net, so need to know if this is feasable before I go for the adventure... but the game would consist of a large widget size of one screen... many areas to click on and interact with and multiple textured animations</p> <p>Looks like I can draw to a canvas and then pop it up to the bitmap to do this... but that still confuses me a bit, so if anyone knows of some good tutorials I would greatly appreciate it</p> <p>this is what I was told works:</p> <p>Code: Paint p = new Paint(); p.setAntiAlias(true); p.setStyle(Style.STROKE); p.setStrokeWidth(8); p.setColor(0xFFFF0000);</p> <pre><code> Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); canvas.drawArc(new RectF(10, 10, 90, 90), 0, 270, false, p); // RemoteViews views = new RemoteViews(updateService.getPackageName(), R.layout.main); RemoteViews updateViews = null; updateViews.setImageViewBitmap(R.id.canvas, bitmap); ComponentName componentName = new ComponentName(updateService, DashboardAppWidgetProvider.class); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(updateService); appWidgetManager.updateAppWidget(componentName, views); </code></pre> <p>but I am struggling with the concepts of this code having an ID for the canvas and how to use that so I have not been able to test this code</p> <p>(I am a experienced c/c++/c#/dx/opengl coder first time with android and java)</p> <p>Thank you!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload