public static void closeAppOnPebble ( final Context context , final UUID watchappUuid ) throws IllegalArgumentException { if ( watchappUuid == null ) { throw new IllegalArgumentException ( "uuid cannot be null" ) ; } final Intent stopAppIntent = new Intent ( INTENT_APP_STOP ) ; stopAppIntent . putExtra ( APP_UUID , watchappUuid ) ; context . sendBroadcast ( stopAppIntent ) ; }
Send a message to the connected Pebble to close an application identified by a UUID . If this application is not currently running the message is ignored .