I have two classes. First is activity, second is a fragment where I have some EditText. In activity I have a subclass with ...
-
May 11, 2022
- 0 Comments
I recently discovered that onActivityResult is deprecated. What should we do to handle it? Any alternative introduced for that? 26 Answers 26
This question already has answers here: How to implement onBackPressed() in Fragments? (56 answers) Closed 5 years ago. I have some fragments in ...
-
May 11, 2022
- 0 Comments
Trying to call a method in my activity from a fragment. I want the fragment to give the method data and to get ...
-
May 10, 2022
- 0 Comments
What are the differences between onCreate(), onCreateView(), and onActivityCreated() in fragments and what would they each be used for? 3 Answers 3
What is the difference between FragmentPagerAdapter and FragmentStatePagerAdapter? About FragmentPagerAdapter Google’s guide says: This version of the pager is best for use when ...
-
May 8, 2022
- 0 Comments
I’ve created a small test app which represents my problem. I’m using ActionBarSherlock to implement tabs with (Sherlock)Fragments. My code: TestActivity.java public class ...
-
May 7, 2022
- 0 Comments
I am trying to add an item to the options menu from a group of fragments. I have created a new MenuFragment class ...
-
May 6, 2022
- 0 Comments