dashclock

How do I publish an update to Dashclock when my application receives an Intent?

馋奶兔 提交于 2019-11-29 12:47:04
I have added a location proximity later using Android's addProximityAlert method in the LocationManager class. When the user's phone is a particular area, the LocationManager sends an Intent to my application's BroadcastReciver and here is the class that handles the intent: public class ProximityTrigger extends BroadcastReceiver { @Override public void onReceive(Context ctxContext, Intent ittIntent) { System.out.println(ittIntent.getIntExtra(WidgetService.KEY_STOP_IDENTIFIER, -1)); } } I'd like to use the DashClock API to show an update when this happens. DashClock has a publishUpdate method

How do I publish an update to Dashclock when my application receives an Intent?

对着背影说爱祢 提交于 2019-11-28 06:48:24
问题 I have added a location proximity later using Android's addProximityAlert method in the LocationManager class. When the user's phone is a particular area, the LocationManager sends an Intent to my application's BroadcastReciver and here is the class that handles the intent: public class ProximityTrigger extends BroadcastReceiver { @Override public void onReceive(Context ctxContext, Intent ittIntent) { System.out.println(ittIntent.getIntExtra(WidgetService.KEY_STOP_IDENTIFIER, -1)); } } I'd