This is a simple example how to Call fragment's method from Activity.
You can check this post: Send data from activity to fragment on android II
Also visit my blog: The developer world is yours
- Android Studio - Gradle
- Install Android Studio: https://developer.android.com/sdk/installing/index.html - Install gradle: http://gradle.org/docs/current/userguide/installation.html
Compile with Android Studio and gradle
Feel free to contribute, and contact me for any issues.