This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class PathFileObserver extends FileObserver{ | |
static final String TAG="FILEOBSERVER"; | |
/** | |
* should be end with File.separator | |
*/ | |
String rootPath; | |
static final int mask = (FileObserver.CREATE | | |
FileObserver.DELETE | | |
FileObserver.DELETE_SELF | | |
FileObserver.MODIFY | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function callAPI(url, callback) { | |
var request = new URL(); | |
request.callback = callback; | |
request.location = url; | |
KONtx.utility.WaitIndicator.up(); | |
request.fetchAsync(function (u) { | |
KONtx.utility.WaitIndicator.down(); | |
if (u.response == 200){ | |
KONtx.application.setNetworkRequestFailed(false); | |
u.callback(u.result); |
NewerOlder