Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSaleban Olow
Courses Plus Student 141 PointsHow can I add a messaging section...
Please help me, I have finished this app and I am working on other messaging app. My question is that I am trying to implement my messaging section on ribbit inbox. I have the code ready but don't where pieces goes where. @benjakuben
Saleban Olow
Courses Plus Student 141 PointsI am trying to make friendsFragment intent, for example, when I tap one of my friend on friendsfragment I want to open new activity.
Any help please, I have the two projects on source file, email me [olow304atgmail.com]: Danial Goodwin
2 Answers
Saleban Olow
Courses Plus Student 141 PointsI have the source code of the apps. The rabbit and the my messaging app,
Danial Goodwin
13,247 PointsIn a Fragment
class, you can open a new Activity
pretty much the same way as done elsewhere in the course. startActivity(Intent)
is a method/function that is located in the Activity
class. So, here's some example code that you can put in a Fragment
class.
Intent intent = new Intent(getActivity(), MyNewActivity.class);
getActivity().startActivity(intent);
Danial Goodwin
13,247 PointsDanial Goodwin
13,247 PointsAre you trying to create a more customized version of the
InboxFragment
and don't know how to get that to show, or are you working on the "camera send" menu option and aren't sure how to always show the menu option?Any more specifics about the question, like an issue with the
ListView
orArrayAdapter
?