-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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 file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
import com.clevertap.android.sdk.exceptions.CleverTapMetaDataNotFoundException; | ||
import com.clevertap.android.sdk.exceptions.CleverTapPermissionsNotSatisfied; | ||
|
||
import java.util.Date; | ||
import java.util.HashMap; | ||
|
||
import org.json.JSONObject; | ||
|
||
public class MainActivity extends Activity implements SyncListener { | ||
|
@@ -58,8 +61,7 @@ protected void onCreate(Bundle savedInstanceState) { | |
profileUpdate.put("Name", "Jack Montana"); // String | ||
profileUpdate.put("Identity", "6541182"); // String or number | ||
profileUpdate.put("Email", "[email protected]"); // Email address of the user | ||
profileUpdate.put("Phone", 4155551234); // Phone(without the country | ||
code) | ||
profileUpdate.put("Phone", "4155551234"); // Phone(without the countrycode) | ||
profileUpdate.put("Gender", "M"); // Can be either M or F | ||
profileUpdate.put("Employed", "Y"); // Can be either Y or N | ||
profileUpdate.put("DOB", new Date()); // set the Date object to the appropriate value first | ||
|
@@ -70,12 +72,20 @@ protected void onCreate(Bundle savedInstanceState) { | |
ct.profile.push(profileUpdate); | ||
*/ | ||
|
||
|
||
// create CleverTap event for a User Action | ||
//ct.event.push("Video played"); | ||
|
||
//String email = (String ) ct.profile.getProperty("Email"); | ||
//Log.d("EMAIL", email); | ||
} | ||
|
||
// SyncListener | ||
public void profileDataUpdated(JSONObject updates) { | ||
Log.d("PR_UPDATES", updates.toString()); | ||
} | ||
|
||
public void profileDidInitialize(String cleverTapID) { | ||
Log.d("CLEVERTAP_ID", cleverTapID); | ||
} | ||
} |
This file contains 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