I recently added a feature to my app that allows the user to send a
report via a message chooser (all have chosen gmail) that helps
mitigate the fact that I don't have all the physical phones to test
on. Execution worked as expected on my G1 and the emulator, however,
to my horror as users began sending them in most of them were
incomplete!
Pseudo-code of what I am doing is as follows:
private class SendReport extends AsyncTask<Void, Void, Void> {
private String email = "";
protected void doInBackground( ) {
email += "Text1\n\n";
List<PackageInfo> list = mContext.getPackageManager
().getInstalledPackages(flags);
int size = list.size();
for(int i=0; i<size; i++){
email+="package name at i\n";
}
return null;
}
protected void onPostExecute( ) {
send email giving user chooser choice.
}
}
On my phone and the emulator, all of the packages are inserted into
the email. However, most of the emails I get, even from the same exact
phone model/carrier/OS version, only contain "Text1". Users that have
automatic signature insertions even have that at the bottom, so it's
not that the email is being cut off somehow, it's that size is
apparently 0. That is the only thing I can think of. Every once and a
while I will get a full email though.
This frightens me because what other APIs run fine in my testing but
not user phones? What's going on here?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en