package fr.free.nrw.commons.auth;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;

import fr.free.nrw.commons.R;

public class SignupActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_signup);
        Log.d("SignupActivity", "Signup Activity started");
        WebView myWebView = (WebView) findViewById(R.id.webview);
        //myWebView.loadUrl("https://commons.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page");

        //Mobile page, looks better than the above
        myWebView.loadUrl("https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes");

        //After Create Account button is pressed within WebView, it brings user to https://commons.wikimedia.org/wiki/Main_Page. So can we just override that URL?
        //Do we NEED to enable JS? Validation seems to work fine here
    }

}

@@ -338,58 +338,8 @@
 e);%0A
-        setContentView(R.layout.activity_signup);%0A
     
@@ -394,16 +394,17 @@
 rted%22);%0A
+%0A
         
@@ -411,19 +411,17 @@
 WebView 
-myW
+w
 ebView =
@@ -425,40 +425,54 @@
 w = 
-(
+new 
 WebView
-) findViewById(R.id.webv
+(this);%0A        setContentView(webV
 iew)
@@ -654,19 +654,17 @@
         
-myW
+w
 ebView.l

Modify code according to dev tutorial