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
// Find the View that shows the numbers category | |
TextView numbers = (TextView) findViewById(R.id.numbers); | |
// Set a click listener on that View | |
numbers.setOnClickListener(new View.OnClickListener() { | |
// The code in this method will be executed when the numbers View is clicked on. | |
@Override | |
public void onClick(View view) { | |
Intent numbersIntent = new Intent(MainActivity.this, NumbersActivity.class); | |
startActivity(numbersIntent); |
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
{ | |
"acknowledge" : { | |
"merges" : { | |
"accepted" : { | |
"898dac5d-f99d-463a-b82a-54abd5784447" : "google:106385094246122969144" | |
}, | |
"proposed" : { | |
"898dac5d-f99d-463a-b82a-54abd5784447" : "google:106385094246122969144" | |
} | |
}, |
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
var ref = new Firebase('https://yours.firebaseio.com/acknowledge'); | |
var users = []; | |
function $(selector) { | |
var result = document.querySelectorAll(selector); | |
return (result.length > 1) ? Array.prototype.slice.call(result) : result[0]; | |
} | |
function handleAuthResult(error, authData) { | |
if (error) { |
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
/** NOTE: This is just an example file for what Bolt code looks like. The rules.json file does not | |
mirror the output of this file **/ | |
// Objects for ShoppingList++ | |
type User { | |
name : String, | |
email : EncodedEmail, | |
timestampJoined : Timestamp, | |
hasLoggedInWithPassword : Boolean | |
} |
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
{ | |
"rules": { | |
".read" : "true", | |
".write" : "true", | |
"userFriends": { | |
"$userEncodedEmail": { | |
"$friendEncodedEmail": { | |
".validate": "newData.hasChildren(['name', 'email', 'timestampJoined', 'hasLoggedInWithPassword'])", | |
"name": { |
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
{ | |
"users" : { | |
"americanguyw1521@gmail,com" : { | |
"email" : "americanguyw1521@gmail,com", | |
"hasLoggedInWithPassword" : true, | |
"name" : "Walter Latimer", | |
"timestampJoined" : { | |
"timestamp" : 1447801255394 | |
} | |
}, |
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
{ | |
"users" : { | |
"americanguyw1521@gmail,com" : { | |
"email" : "americanguyw1521@gmail,com", | |
"hasLoggedInWithPassword" : true, | |
"name" : "Walter Latimer", | |
"timestampJoined" : { | |
"timestamp" : 1447801255394 | |
}, | |
"userLists" : { |
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
{ | |
"users" : { | |
"americanguyw1521@gmail,com" : { | |
"email" : "americanguyw1521@gmail,com", | |
"hasLoggedInWithPassword" : true, | |
"name" : "Walter Latimer", | |
"timestampJoined" : { | |
"timestamp" : 1447801255394 | |
} | |
}, |
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
{ | |
"users" : { | |
"americanguyw1521@gmail,com" : { | |
"email" : "americanguyw1521@gmail,com", | |
"hasLoggedInWithPassword" : true, | |
"name" : "Walter Latimer", | |
"timestampJoined" : { | |
"timestamp" : 1447801255394 | |
} | |
}, |
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
{ | |
"users" : { | |
"americanguyw1521@gmail,com" : { | |
"email" : "americanguyw1521@gmail,com", | |
"hasLoggedInWithPassword" : true, | |
"name" : "Walter Latimer", | |
"timestampJoined" : { | |
"timestamp" : 1447801255394 | |
}, | |
"userLists" : { |