getPosition()
getWidth()
getHeight()
getId()
getEulerY()
getEulerZ()
getLandmarks()
List
getIsLeftEyeOpenProbability()
getIsRighteyeOpenProbability()
getIsSmilingProbability()
Context.getCacheDir()
Context.getCodeCacheDir()
Context.getNoBackupFilesDir()
Context.getExternalFilesDir()
res/xml
<application android:fullBackupContent="@xml/mybackupscheme">
<include/>
<exclude/>
android:backupAgent
android:fullBackupOnly="true"
<application/>
onBackup/onRestore
onCreate(), onFullBackup()
onRestoreFinished()
super.onFullBackup()
bmgr run
bmgr fullbackup <packagename>
bmgr restore <packagename>
fullbackup
function addNewUserToFirebase() { var dbUrl = "https://test-apps-script.firebaseio.com"; var secret = PropertiesService.getScriptProperties().getProperty("fb-secret"); var path = "/users/"; var userData = { romainvialard:{ firstName:"Romain", lastName:"Vialard", registrationDate: new Date() } }; var params = { method: "PUT", payload : JSON.stringify(userData) } UrlFetchApp.fetch(dbUrl + path + ".json?auth=" + secret, params); }
var fb = new Firebase("https://test-apps-script.firebaseio.com"); var ref = fb.child('users/' + UID + '/nbOfEmailsSent'); ref.on("value", function(data) { if (data.val()) { document.getElementById("nbOfEmailsSent").innerHTML = data.val(); } });
function getFrenchContacts() { var firebaseUrl = "https://script-examples.firebaseio.com/"; var base = FirebaseApp.getDatabaseByUrl(firebaseUrl); var queryParameters = {orderBy:"country", equalTo: "France"}; var data = base.getData("", queryParameters); for(var i in data) { Logger.log(data[i].firstName + ' ' + data[i].lastName + ' - ' + data[i].country); } }