B
Barill
Neues Mitglied
- 0
HEy ihr,
ich hab wieder mal ein Probelm ;-).
Und zwar starte ich aus einer Activity heraus in einer Methode nen Intent das Telefonnbuch zu öffnen.
Die erste Acitivity sollte warten bis ein kontakt aus dem Telefonbuch ausgewählt worden is, da es danach den Namen braucht.
Jedoch wartet es nicht. woran liegt das?
So schaut das in etwa zamgefasst aus:
private void methode(boolean option)
if(options){
openBook();
Log.v("Create","nachBooK");
int x=0;
while(name==null);
a.setWhattodo(name);
a.setWhattodoDetailed(zusatz);
}
private void openBook() {
Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);
startActivityForResult(intent, REQUEST_PHONEBOOK);
}
}
Und er spuckt mir gleich den Log aus, wartet also nicht bis das PhoneBook wieder zu ist.
ich hab wieder mal ein Probelm ;-).
Und zwar starte ich aus einer Activity heraus in einer Methode nen Intent das Telefonnbuch zu öffnen.
Die erste Acitivity sollte warten bis ein kontakt aus dem Telefonbuch ausgewählt worden is, da es danach den Namen braucht.
Jedoch wartet es nicht. woran liegt das?
So schaut das in etwa zamgefasst aus:
private void methode(boolean option)
if(options){
openBook();
Log.v("Create","nachBooK");
int x=0;
while(name==null);
a.setWhattodo(name);
a.setWhattodoDetailed(zusatz);
}
private void openBook() {
Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);
startActivityForResult(intent, REQUEST_PHONEBOOK);
}
}
Und er spuckt mir gleich den Log aus, wartet also nicht bis das PhoneBook wieder zu ist.