No, Really Listening To Your Friends
builder
.setTitle("Exception!")
.setMessage(t.toString())
.setPositiveButton("OK", null)
.show();
}
private View.OnClickListener onSend=new View.OnClickListener() {
public void onClick(View v) {
updateStatus();
}
};
private SharedPreferences.OnSharedPreferenceChangeListener prefListener=
new SharedPreferences.OnSharedPreferenceChangeListener() {
public void onSharedPreferenceChanged(SharedPreferences sharedPrefs,
String key) {
if (key.equals("user") || key.equals("password")) {
resetClient();
}
}
};
private IPostListener listener=new IPostListener() {
public void newFriendStatus(final String friend, final String status,
final String createdAt) {
runOnUiThread(new Runnable() {
public void run() {
adapter.insert(new TimelineEntry(friend,
createdAt,
status),
0 );
}
});
}
};
class TimelineEntry {
String friend="";
String createdAt="";
String status="";
TimelineEntry(String friend, String createdAt,
String status) {
this.friend=friend;
this.createdAt=createdAt;
this.status=status;
}
}
class TimelineAdapter extends ArrayAdapter
TimelineAdapter() {
super(Patchy.this, R.layout.row, timeline);
}