c# - ContactPicker's pickContactAsync is not working properly -


i'developing application has feature select contact contacts list.

problem is, when run application in "debug" mode , debug contactpicker code, picker runs quite thouroughly.

but when run application in device without debugging delpoying , choose option "select contact list" app crashes , "start screen" appears directly.

anyone know problem?

here's snippet of code::

private async task selectcontacts() {   try   {        contactpicker contactpicker = new contactpicker();        contactpicker.desiredfieldswithcontactfieldtype.append(contactfieldtype.phonenumber);         contact contact = await contactpicker.pickcontactasync();      if (contact != null)     {         account acc = new account();         ...         ...         ...         //my next implementation     }    }    catch (exception)    {       throw;    } } 

i had same problem few days ago , couldn't figure out problem was. though found solution situation, can't guarantee work you.

so, if don't have code written besides contact picker, suggest recreating project, or creating new one, , adding contact picker code first, before else. did, , added rest of code , worked. there no exception thrown in app, contact picker crashed app after half second inactivity or simple scrolling in contact list. so, contact picker appeared , crashed.

hope helps.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -