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
// A cloud Code function that is called from iOS, Android and web | |
// each time an athlete logs into the app | |
// Updates the athlete and creates an entry in the "TB_Login" class | |
// NOTE: isDefined is a utility function defined elsewhere | |
Parse.Cloud.define("athleteDidLogin", function(request, response) { | |
// req'd params | |
var athId = request.params.athId; |
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
import android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.ResolveInfo; | |
import android.content.res.AssetFileDescriptor; | |
import android.database.Cursor; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Matrix; | |
import android.media.ExifInterface; |