android - Sending text from EditText to friend with app installed -
i looking way send text edittext, friend app installed, friend recieves "message" inside app, , not on actual facebook. in edittext when have written x amount of characters, redirected listview fetches friends facebook, how bring text edittext next activity, , send facebook friend?
any tips on how should go here appreciated :)
here listview have:
// populate list list<string> values = new arraylist<string>(); (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); } });
to text edittext use
string message = youredit.gettext().tostring();
to send message activity use bundle, included in intent
intent intent = new intent(this, targetactivity.class); intent.putextra("key_to_identify_message", message); startactivity(intent);
in targetactivity.class
call getintent()
intent intent = getintent(); string message = intent.getstringextra("key_to_identify_message");
to send message friend have connect facebookapi
Comments
Post a Comment