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");
        myWebView.loadUrl("https://commons.m.wikimedia.org/w/index.php?title=Special:CreateAccount&returnto=Main+Page&returntoquery=welcome%3Dyes");
        //Problem: display not good on large screen. Use mobile page?
        //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?
    }

}

@@ -1013,16 +1013,86 @@
 at URL?%0A
+        //Do we NEED to enable JS? Validation seems to work fine here%0A
     %7D%0A%0A%7D

Add comment