I put this code in my program for my app in android.
public class StudentModule extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_student_module);
WebView ourBrow = (WebView) findViewById(R.id.wvStudent);
ourBrow.loadUrl("http://sample.com/");
The problem is this… I can’t log-in to that website even my password and username is correct.. 🙁 please help me.
I think the website uses JavaScript, try enabling it before loading the url:
ourBrow.getSettings().setJavaScriptEnabled(true);