Posted on



How to Open Activity from Fragment in Android – Navigation Drawer. You know that it is easy to create a navigation drawer from a set of template of Android Studio but then you would be surprised to encounter a lot of coding problem along the way. One of the problem is you don’t know how to launch an activity from a fragment in Android. You will learn exactly this.

If you want to see cool videos like this, please follow me at:
For English version:

To get all the latest update video tutorials, I encourage to subscribe to this channel, and don’t forget to share this video to your friends on your social networks. If you have any question, please comment below and I will try to answer as many as I can.

Thank you very much,

Oum Saokosal

The Creator of Channel Oum Saokosal

Credit Music:

Nguồn: https://hdwallpaperslovely.com

Xem thêm bài viết khác: https://hdwallpaperslovely.com/cong-nghe/

39 Replies to “How to Open Activity from Fragment in Android – Navigation Drawer”

  1. Very good, But one question. Your navigation drawer disappear when you open SubActivity page. What changes I have to made if I want to view this navigation drawer in SubActivity page. Please let me know

  2. after seeing hundreds of tutorials this was the only one that helped me, easy fast and without many complications, a thousand thanks, Like if it works for you in 2020

  3. Thank you so much for this!! you have no idea how badly i was looking for this.
    keep creating more such videos!!

  4. hey all was good, but i don't understand here, at receiving intent in your subActivity.java you are using bundle to receive, why you do so, you don't you use the Intent intent = getIntent();
    what bundle does ?

  5. When i press the back button from Subactivity.I want to avoid recreating Gallery Fragment.Can we get the previous state of Gallery Fragment?
    Please sir reply??

  6. what if my navigation drawer is created using a fragment, and i wanna once i click one of the items in the drawer to take me to an activity?

  7. It works!!!! thank you so much, but i have a problem now, in the second Activity, my Drawer is gone!! how can i fix that? thank you

  8. Hello, can u make a tutorial how to add more button on same fragment to new activity? Thank u so much😁😁

  9. thank you very much for the tutorial I galair and I thought that no one had said how to do but if you are a genius and sorry for my English I am French

  10. thank you very much for the tutorial I galair and I thought that no one had said how to do but if you are a genius and sorry for my English I am French

  11. sir, how can i intent activity to fragment??
    my activity name is Activity_First
    and fragment name is Fragment_First.
    i want intent activity to fragment… plz help me……

  12. Hello sir , How about multiple activtity (button) from a fragment ?? I triend copying your code to extend and hoping to function yet its not fetching the second activity in fact the one that is fetching is still the 1st activity.

    Thank you sir . By the way this is so helpful !!

  13. Pleas help me sir ,how to do open multiple activity with multiple button from a fragment ? I can not set onClickListener multiple button which open different activity in from fragment

Leave a Reply

Your email address will not be published. Required fields are marked *