Open ActionBarActivity from fragment

user3383415

I have a novice question. How can I open an ActionBarActivity that is a FragmentActivity from Fragment. I have tryed like this but FragmentActivity is not an activity so not works. Thanks!

Intent intent = new Intent(getActivity(), FichaFragment.class);
                startActivity(intent);
José Barbosa

Try with:

getActivity().startActivity(intent);

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Hiding ActionBar from ActionBarActivity after a Splash Fragment

From Dev

Go back to a Fragment from a ActionBarActivity with the app icon as an up button?

From Dev

Go back to a Fragment from a ActionBarActivity with the app icon as an up button?

From Dev

Open Fragment from fragment error

From Dev

Change Fragment in ActionBarActivity

From Dev

Open Fragment From Activity

From Dev

Open fragment from activity?

From Dev

Difference between ActionBarActivity and Fragment Activity

From Dev

Trying to launch fragment inside actionBarActivity

From Dev

Open fragment from another fragment- Error

From Dev

Open fragment from Fragment on button click

From Dev

Open new Fragment from FragmentActivity

From Dev

Open a fragment from another fragment always keeps the previous fragment title

From Dev

update listView from ActionBarActivity

From Dev

Custom menu in fragment of ActionBarActivity can't be set

From Dev

android : open chrome custom tab from fragment

From Dev

Open fragment from notification when the app in background

From Dev

Open a new activity with a button from a static fragment?

From Dev

How to open a new fragment from the navigation drawer?

From Dev

How to open or launch a Fragment from another Activity?

From Dev

Android how to open fragment from listview element

From Dev

open fragment from activity and inflate the view

From Dev

Trying to open an Activity from an AlertDialog in a Fragment

From Dev

open specific url passed from activity to fragment

From Dev

Open Second fragment of a tabFragment from the Activity

From Java

How do I open a new fragment from another fragment?

From Dev

How to open a Fragment on button click from a fragment in Android

From Dev

Sending values from ActionBarActivity to ListFragment

From Dev

Android equivalent of getActivity() from/in ActionBarActivity

Related Related

  1. 1

    Hiding ActionBar from ActionBarActivity after a Splash Fragment

  2. 2

    Go back to a Fragment from a ActionBarActivity with the app icon as an up button?

  3. 3

    Go back to a Fragment from a ActionBarActivity with the app icon as an up button?

  4. 4

    Open Fragment from fragment error

  5. 5

    Change Fragment in ActionBarActivity

  6. 6

    Open Fragment From Activity

  7. 7

    Open fragment from activity?

  8. 8

    Difference between ActionBarActivity and Fragment Activity

  9. 9

    Trying to launch fragment inside actionBarActivity

  10. 10

    Open fragment from another fragment- Error

  11. 11

    Open fragment from Fragment on button click

  12. 12

    Open new Fragment from FragmentActivity

  13. 13

    Open a fragment from another fragment always keeps the previous fragment title

  14. 14

    update listView from ActionBarActivity

  15. 15

    Custom menu in fragment of ActionBarActivity can't be set

  16. 16

    android : open chrome custom tab from fragment

  17. 17

    Open fragment from notification when the app in background

  18. 18

    Open a new activity with a button from a static fragment?

  19. 19

    How to open a new fragment from the navigation drawer?

  20. 20

    How to open or launch a Fragment from another Activity?

  21. 21

    Android how to open fragment from listview element

  22. 22

    open fragment from activity and inflate the view

  23. 23

    Trying to open an Activity from an AlertDialog in a Fragment

  24. 24

    open specific url passed from activity to fragment

  25. 25

    Open Second fragment of a tabFragment from the Activity

  26. 26

    How do I open a new fragment from another fragment?

  27. 27

    How to open a Fragment on button click from a fragment in Android

  28. 28

    Sending values from ActionBarActivity to ListFragment

  29. 29

    Android equivalent of getActivity() from/in ActionBarActivity

HotTag

Archive