I\'m with a big error here. I\'m trying to change the actionbar menus with the supportInvalidateOptionsMenu(); but when the function is executed, the application closes, wit
This is most likely a threading issue. You should be seeing logged errors about UI access outside of main thread. Perhaps you're filtering them out? Look at the full log, not just the log for your package.
From the Building Web Apps in Webview:
Note: The object that is bound to your JavaScript runs in another thread and not in the thread in which it was constructed.
Try:
mActivity.runOnUiThread(new Runnable(){
@Override
public void run(){
mActivity.supportInvalidateOptionsMenu();
}
});