Skip to content

Instantly share code, notes, and snippets.

@Override
protected String doInBackground(String... params) {
String urlString=params[0]; // URL to call
String resultToDisplay = "";
InputStream in = null;
// HTTP Get
private class CallAPI extends AsyncTask<String, String, String> {
@Override
protected String doInBackground(String... params) {
return "";
}
protected void onPostExecute(String result) {
http://ws.strikeiron.com/StrikeIron/EMV6Hygiene/VerifyEmail?LicenseInfo.RegisteredUser.UserID=<StrikeIron User ID>&LicenseInfo.RegisteredUser.Password=<StrikeIron Password>&VerifyEmail.Email=<Email Address To Verify>&VerifyEmail.Timeout=<Time Out>&VerifyEmail.OptionalSourceId=<optional ID tag that is passed through>
// This is the method that is called when the submit button is clicked
public void verifyEmail(View view) {
EditText emailEditText = (EditText) findViewById(R.id.email_address);
String email = emailEditText.getText().toString();
// TODO, create the task to call the REST API
}
<string name="email_address">Email Address</string>
<string name="button_submit">Submit</string>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
<uses-permission android:name="android.permission.INTERNET"></uses-permission>