GSON to Fetch/Parse JSON in Android

This tutorial will cover how to fetch JSON from assets folder and parse it. We will use GSON, a JSON parsing library developed by Google, to quickly parse the JSON into Java objects with very minimal work required.

Reflection to Extract Annotation Details

In my this tutorial, I am going to demonstrate how to extract method details with Annotation details with Reflection mechanism.  Have a look on complete details and let me know if I you need some more details.   Below interface is @Retention.RUNTIME Annotation enabled.     



Interface and its usage Interface is a 100% abstract class. It means its method should not have its body part. Signatures below: User version

Some key points for above demo: 1)  Keyword “interface” used here for declaring it. 2) No method body. No curly braces like {…}. ……………