Last active
August 29, 2015 14:13
-
-
Save charroch/08fcb434074e51757a6c to your computer and use it in GitHub Desktop.
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
class NewUserActivity { | |
void onClick(TextView view) { | |
ContentValues values = new ContentValues(1); | |
String name = view.getText().toString(); | |
Context context = getContext(); | |
ContentResolver resolver = context.getContentResolver(); | |
Uri uri = Uri.parse("content://myuser/"); | |
resolver.insert(uri, values); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment