Search code examples
androidandroid-activityandroid-fragmentsandroid-youtube-api

How to call fragment from activity without using fragmentactivity?


In my project i am using fragments and activities. in one of activity i used youtube video api, now i want to call fragment from that activity but they are not allowing without fragmentactivity and i extended youtubebaseactivity in that activity.so please help me


Solution

  • extend yourclass with ActionBarActivity and you can Access both functionality.

    Thats it...