android - How to make Parse's "done" callback to be called immediately when network is unavailable -


the title says all.

i have table on parse server, fill manually, in app want count query this:

mcurrentparsequery = parsequery.getquery(favoritetable.name); mcurrentparsequery.setcachepolicy(parsequery.cachepolicy.network_else_cache); mcurrentparsequery.countinbackground(new countcallback() {     @override     public void done(int count, parseexception e) {     } }); 

as have tested, seems parse listens on event when network become available starts query, when network unavailable (either wifi or data connection) done callback never gets called.

my question how make parse call done callback when network unavailable, parseexception.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -