This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <uses-permission android:name="android.permission.INTERNET"></uses-permission> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <string name="email_address">Email Address</string> | |
| <string name="button_submit">Submit</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private class CallAPI extends AsyncTask<String, String, String> { | |
| @Override | |
| protected String doInBackground(String... params) { | |
| return ""; | |
| } | |
| protected void onPostExecute(String result) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| protected String doInBackground(String... params) { | |
| String urlString=params[0]; // URL to call | |
| String resultToDisplay = ""; | |
| InputStream in = null; | |
| // HTTP Get |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public final static String strikeIronUserName = "[email protected]"; | |
| public final static String strikeIronPassword = "strikeironpassword"; | |
| public final static String apiURL = "http://ws.strikeiron.com/StrikeIron/EMV6Hygiene/VerifyEmail?"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void verifyEmail(View view) { | |
| EditText emailEditText = (EditText) findViewById(R.id.email_address); | |
| String email = emailEditText.getText().toString(); | |
| if( email != null && !email.isEmpty()) { | |
| String urlString = apiURL + "LicenseInfo.RegisteredUser.UserID=" + strikeIronUserName + "&LicenseInfo.RegisteredUser.Password=" + strikeIronPassword + "&VerifyEmail.Email=" + email + "&VerifyEmail.Timeout=30"; | |
| new CallAPI().execute(urlString); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private class emailVerificationResult { | |
| public String statusNbr; | |
| public String hygieneResult; | |
| } | |
OlderNewer