• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Share int value between two classes in android without new activity

I have two android classes one is for recycler view RecyclerViewAdapter.java and other is my main class so I want to get the int value when data item is click in recyclerview and want to use it in my main class.
I have tried using Intent it works for me but it start new activity I don't want to start new activity there.
Please help
 
Back
Top Bottom