PhoneGap html5 app for Android 4.0 with a long press

Hi, I have an Android app built using PhoneGap. Thus, the user interface is built like an HTML5 page. It worked fine until I tested it on Android 4.0, now that I have been clicking for a long time, android gives me the opportunity to select text in the user interface, and also gives me options on top for publishing bookmarks, etc. Can someone help me disable this?

+4
source share
1 answer

update your application class with

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; } }); }} 
+7
source

All Articles