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
{ | |
"message": { | |
"token": "fBAkL5yDV-g:APA91bEygM9QYOTTiBz6TPkrB0GLsNvTzzWlIw0smBiae5ZtkwAoleba2NVIq69cg0X7q061o5Z0uq7--4ZTF1TiivJGS_E9fsOhbqE12Z4VP1FsRsv9oEv24b5QNvtJFUrYjrXdlqgp", | |
"data": { | |
"title": "Marcos Test Title (Android & iOS)", | |
"body": "Marcos Test Body (Android & iOS)", | |
"alert_type": "0", | |
"android_channel_id": "catapult_channel" | |
}, | |
"android": { |
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
@Override public Response intercept(Chain chain) throws IOException { | |
Level level = this.level; | |
Request request = chain.request(); | |
if (level == Level.NONE) { | |
return chain.proceed(request); | |
} | |
boolean logBody = level == Level.BODY; | |
boolean logHeaders = logBody || level == Level.HEADERS; |
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
private void storePhotoOnDisk(final Bitmap capturedBitmap) { | |
new Thread(new Runnable() { | |
@Override | |
public void run() { | |
File folder = new File(Environment.getExternalStorageDirectory() + | |
File.separator + "MyFolder"); | |
folder.mkdirs(); |