javascript - How to disable copy paste,spellcheck,autocomplete in Cordova Android application -


how disable copy paste,spellcheck,autocomplete in cordova android application? @ time text typed user gets autocompleted.

what @tasos says in comment valid, if want all user selection disabled in app can use answer question: disabling text selection in phonegap

i looked on over this. worked me.

public class mainactivity extends droidgap {      @override     public void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);          super.loadurl("file:///android_asset/www/index.html");          super.appview.setonlongclicklistener(new view.onlongclicklistener() {              public boolean onlongclick(view v) {                 return true;             }         });     } } 

the setonclicklistener magic. make sure put after call super.loadurl.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -