Hi Paul

Had the same problem sometime while ago.

Gave up on trying to convince ACRA to work and reimplemented most of the
functionality in C#.

Error value collection is mostly one on one map with a couple of exceptions
re reflection and such.

If you are only interested in submitting data to Google Docs you can use the
following snippet.

public static bool SubmitToGoogleDoc(string formKey,
IEnumerable<Tuple&lt;int, string>> values)
{
    using (var wc = new WebClient())
    {
        var keyval = new NameValueCollection
                            {{"pageNumber", "0"}, {"backupCache", ""},
{"submit", "Envoyer"}};
        foreach (var kvp in values)
            keyval.Add(string.Format("entry.{0}.single", kvp.Item1),
kvp.Item2);

        wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
        wc.Headers.Add("Origin", "https://spreadsheets0.google.com";);
        wc.Headers.Add("User-Agent", "Android");
        wc.Headers.Add("Accept",
"text/html,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5");

        var uri =
string.Format("https://spreadsheets0.google.com/formResponse?formkey={0}&ifq";,
formKey);

        var result = wc.UploadValues(new Uri(uri), "POST", keyval);
        var str = Encoding.UTF8.GetString(result);
        return str.Contains("Your response has been recorded.");
    }
}

Hope it helps.

Cheers,
Greg



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Automatic-crash-reporting-tp5710823p5711024.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to