@Override
public
void
onCreate(Bundle savedInstanceState) {
super
.onCreate(savedInstanceState);
setContentView(R.layout.dining_together_adjustment3);
get_intent_value = getIntent();
cursor = managedQuery(Phone.CONTENT_URI,
new
String[] { Phone._ID,
Phone.DISPLAY_NAME, Phone.NUMBER },
null
,
null
,
Phone.DISPLAY_NAME +
" asc"
);
if
(cursor.moveToFirst() ==
false
) {
return
;
}
mArrayList.add(
" "
+ cursor.getString(
1
) +
" - "
+ cursor.getString(
2
));
while
(cursor.moveToNext()) {
mArrayList.add(cursor.getString(
1
) +
" - "
+ cursor.getString(
2
));
}
this
.isCheckedConfrim =
new
boolean
[mArrayList.size()];
startManagingCursor(cursor);
cols =
new
String[] { Phone.DISPLAY_NAME, Phone.NUMBER };
names =
new
int
[] { R.id.row_tv_name, R.id.row_tv_number };
adapter =
new
SimpleCursorAdapter(
this
,
R.layout.contact_muit_check_list_item, cursor, cols, names);
this
.setListAdapter(adapter);
listView = getListView();
listView.setItemsCanFocus(
false
);
listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
Button Borrow_money_the_former_button_ok = (Button) findViewById(R.id.Borrow_money_the_former_button_ok);
Borrow_money_the_former_button_ok
.setOnClickListener(
new
OnClickListener() {
@Override
public
void
onClick(View v) {
}
});
}