I am looking for a way to send text from EditText, to a friend with the app installed, so that the friend recieves the "message" inside the app, and not on the actual facebook. In the edittext when you have written X amount of characters, you are redirected to a ListView which fetches friends from facebook, so how could i bring the text from EditText to the next activity, and then eventually send it to the facebook friend?
Any tips on how i should go from here would be appreciated :)
Here is the listview i have:
// populate list
List<String> values = new ArrayList<String>();
for (Profile profile : friends) {
//profile.getInstalled();
values.add(profile.getName());
}
ArrayAdapter<String> friendsListAdapter = new ArrayAdapter<String>(getApplicationContext(), R.layout.list_items2, values);
friendsListAdapter.sort(new Comparator<String>() {
@Override
public int compare(String lhs, String rhs) {
return lhs.compareTo(rhs);
}
});