Really useful for debugging JSON data.
http://json.parser.online.fr/
https://jsonformatter.curiousconcept.com/
Really useful for debugging JSON data.
http://json.parser.online.fr/
https://jsonformatter.curiousconcept.com/
http://www.jsonschema2pojo.org/
Very useful tool when you need to fetch data from REST API with Retrofit library.
Great example how it used with RxJava: https://youtu.be/JCLZ55M2gVo?t=35m53s
RxJava – a library for composing asynchronous and event-based programs by using observable sequences.
After watching “Speed app your app” I tried to use the LeakCanary lib and I was surprised:
SuperSonic that I was using in my current project, caused an activity leak.
Real examples for performance issues, and how to identify them with the available tools.
http://blog.udinic.com/2015/09/15/speed-up-your-app
Add soft keyboard listener:
final View activityRootView = getWindow().getDecorView().findViewById(android.R.id.content);
activityRootView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
int heightDiff = activityRootView.getRootView().getHeight() - activityRootView.getHeight();
if (heightDiff > 100) { // 99% of the time the height diff will be due to a keyboard.
if (!isSoftKeyboardOpen) {
MyLogger.log(TAG, "Soft keyboard is visible");
isSoftKeyboardOpen = true;
}
isSoftKeyboardOpen = true;
} else if (isSoftKeyboardOpen) {
MyLogger.log(TAG, "Soft keyboard invisible");
isSoftKeyboardOpen = false;
removeFocusAndSaveToDB();
}
}
});
Opens soft keyboard when alert dialog shown:
alertDialog.getWindow()
.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
Useful information about this exam:
And this is how the Java SE 7 Programmer I certification looks like:

An example that I used for tests.
define( 'API_ACCESS_KEY', 'fill_here_your_api_access_key' );
$registrationIds = array("fill_here_registered_id_of_your _device");
$msg = array (
'parameter1' =>; 'Some data that you want to send',
'parameter2' =>; 'Some additional data...',
);
$fields = array
(
'registration_ids' =>; $registrationIds,
'data' =>; $msg
);
$headers = array
(
'Authorization: key=' . API_ACCESS_KEY,
'Content-Type: application/json'
);
$ch = curl_init();
curl_setopt( $ch,CURLOPT_URL, 'https://android.googleapis.com/gcm/send' );
curl_setopt( $ch,CURLOPT_POST, true );
curl_setopt( $ch,CURLOPT_HTTPHEADER, $headers );
curl_setopt( $ch,CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch,CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ) );
$result = curl_exec($ch );
curl_close( $ch );
echo $result;