Closed GoogleCodeExporter closed 9 years ago
btw: I also now tested the 1.2.1 lib, but with the same result.
Original comment by mathias....@gmail.com
on 24 May 2010 at 9:29
The first line in your Google Docs spreadsheet is a "sample" line included in
the
.csv.
I will do some tests to see if it is mandatory or not to allow the automatic
creation
of the Form. If it is not, I will remove it because other testers thought this
line
was reported by their app.
The Error while retrieving crash data is strange because it looks like ACRA did
not
manage to retrieve your application's crash info.
Could you please give more details on where you put your intentional
NullPointerException so that I might try to reproduce ? Without this, all I can
fix
is to test the case where PackageInfo is null and send the stack trace without
your
application version and package names.
Original comment by kevin.gaudin
on 24 May 2010 at 12:34
Original comment by kevin.gaudin
on 24 May 2010 at 12:34
I added the nullpointer in one of my activities (not the main activity but one
that I
reach later when clicking on a button somewhere in another activity), in the
onCreate
method:
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
txtQuestion.setText("asd");
...
where txtQuestion is definitely null there since it hasn't been read.
Original comment by mathias....@gmail.com
on 24 May 2010 at 12:38
btw: the class that extends org.acra.CrashReportingApplication and holds the
getFormId is in my package under: com.myappname.android.MyAppName
Is that right or doesn it need to be at the very root? Like on the same level
of com ?
Original comment by mathias....@gmail.com
on 24 May 2010 at 12:41
You can extend CrashReportingApplication in any package. All you have to do is
rerefence the class name in the <application> tag of your AndroidManifest.xml.
If the
Application class package is different from the package declared as the root of
your
manifest (<manifest package="com.myappname.android"), you might just have to
reference your application object name with its full package included
(<application
name="com.different.package.MyApplication">).
Please try again with the version of ACRA attached to this comment.
It retrieves application data a safer way and should anyway send the report. In
your
case (I still don't understand why), you might not get your application version
name
in the report. This is still to be investigated, the application version is an
important data to debug crash reports.
Could you send me by mail your application manifest ?
Original comment by kevin.gaudin
on 24 May 2010 at 1:12
Attachments:
Alright, some new hints:
1)
I tried some crashes with my NexusOne via Wifi at home and with my vpn on and
off.
Since I'm in China and Google spreadsheet is sometimes blocked by the
GreatFireWall
(getting 'connection resets'), that seems to be the reason why the reports
didn't get
posted in the spreadsheet. Actually with vpn turned off on my NexusOne but on
on my
PC though (which connects to the Nexus One in debug mode), it works ok and the
crash
reports get posted.
2)
Nevertheless, even with the successful posting of the crash report now, the
logcat
still logs the NullPointerException
ERROR/ACRA(7398): Error while retrieving crash data
java.lang.NullPointerException
a few lines above.
Original comment by mathias....@gmail.com
on 24 May 2010 at 1:17
Reproduced and fixed. This happens if not using the android:versionName
attribute of
the manifest tag.
Version 2.0.2 now available with the fix.
Original comment by kevin.gaudin
on 24 May 2010 at 2:03
Original issue reported on code.google.com by
mathias....@gmail.com
on 24 May 2010 at 9:10