Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Implementing Designs for Android Adding Push Notifications from Parse.com Adding a Custom Notification Icon

Saleban Olow
PLUS
Saleban Olow
Courses Plus Student 141 Points

How 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

Are 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 or ArrayAdapter?

Saleban Olow
Saleban Olow
Courses Plus Student 141 Points

I 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
PLUS
Saleban Olow
Courses Plus Student 141 Points

I have the source code of the apps. The rabbit and the my messaging app,

In 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);