Hi.. I have a question with Implementing ACRA.. I try implementing acra in my android app but when run the app shows me this message error.
LogCat:
E/ACRA (13090): ACRA caught a IllegalStateException exception for com.divux.android.educatablet.timetable. Building report.
D/ACRA (13090): Retrieve application default SharedPreferences.
I/NotificationService( 580): enqueueToast pkg=com.divux.android.educatablet.timetable callback=android.app.ITransientNotification$Stub$Proxy@40848ec0 duration=1
D/NotificationService( 580): Show pkg=com.divux.android.educatablet.timetable callback=android.app.ITransientNotification$Stub$Proxy@40848ec0
V/WindowManager( 580): Resizing window Window{4088a9d0 Toast paused=false} to Rect(136, 663 - 464, 728)
V/WindowManager( 580): Reporting new frame to Window{4088a9d0 Toast paused=false}: Rect(136, 663 - 464, 728)
V/WindowManager( 580): finishDrawingLocked: Surface(name=Toast, identity=226)
I/WindowManager( 580): SURFACE 4088a9d0: SHOW (performShowLocked) / Toast
I/ACRA (13090): READ_LOGS granted! ACRA can include LogCat and DropBox data.
D/ACRA (13090): Retrieving logcat output...
D/dalvikvm(13090): GC_CONCURRENT freed 485K, 49% free 3301K/6407K, external 1461K/1961K, paused 3ms+16ms
D/ACRA (13090): Retrieving logcat output...
D/ACRA (13090): Retrieving logcat output...
D/dalvikvm(13090): GC_CONCURRENT freed 757K, 52% free 3258K/6663K, external 1461K/1961K, paused 2ms+2ms
W/ApplicationContext(13090): Unable to create files directory
E/ACRA (13090): Error while retrieving crash data
E/ACRA (13090): java.lang.RuntimeException: java.io.FileNotFoundException: /ACRA-INSTALLATION (Permission denied)
E/ACRA (13090): at org.acra.util.Installation.id(Installation.java:38)
E/ACRA (13090): at org.acra.ErrorReporter.retrieveCrashData(ErrorReporter.java:464)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:722)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:773)
E/ACRA (13090): at org.acra.ErrorReporter.uncaughtException(ErrorReporter.java:622)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/ACRA (13090): at dalvik.system.NativeStart.main(Native Method)
E/ACRA (13090): Caused by: java.io.FileNotFoundException: /ACRA-INSTALLATION (Permission denied)
E/ACRA (13090): at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
E/ACRA (13090): at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
E/ACRA (13090): at java.io.FileOutputStream.(FileOutputStream.java:94)
E/ACRA (13090): at java.io.FileOutputStream.(FileOutputStream.java:66)
E/ACRA (13090): at org.acra.util.Installation.writeInstallationFile(Installation.java:56)
E/ACRA (13090): at org.acra.util.Installation.id(Installation.java:35)
E/ACRA (13090): ... 7 more
D/ACRA (13090): Writing crash report file.
W/ApplicationContext(13090): Unable to create files directory
E/ACRA (13090): An error occured while writing the report file...
E/ACRA (13090): java.lang.NullPointerException
E/ACRA (13090): at android.app.ContextImpl.openFileOutput(ContextImpl.java:417)
E/ACRA (13090): at android.content.ContextWrapper.openFileOutput(ContextWrapper.java:158)
E/ACRA (13090): at org.acra.ErrorReporter.saveCrashReportFile(ErrorReporter.java:889)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:740)
E/ACRA (13090): at org.acra.ErrorReporter.handleException(ErrorReporter.java:773)
E/ACRA (13090): at org.acra.ErrorReporter.uncaughtException(ErrorReporter.java:622)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
E/ACRA (13090): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
E/ACRA (13090): at dalvik.system.NativeStart.main(Native Method)
D/ACRA (13090): Mark all pending reports as approved.
W/ApplicationContext(13090): Unable to create files directory
W/ACRA (13090): Application files directory does not exist! The application may not be installed correctly. Please try reinstalling.
V/ACRA (13090): About to start ReportSenderWorker from #handleException
D/ACRA (13090): Add user comment to null
D/ACRA (13090): #checkAndSendReports - start
W/ApplicationContext(13090): Unable to create files directory
W/ACRA (13090): Application files directory does not exist! The application may not be installed correctly. Please try reinstalling.
D/ACRA (13090): #checkAndSendReports - finish
D/dalvikvm( 656): GC_EXPLICIT freed 13K, 51% free 2802K/5703K, external 2763K/3415K, paused 23msAny idea... I hope we can help me.... Thanks.
Best Regards.
Josue Hernandez
What's your device?
Can you send us your application class code?
Hi.. Thanks... I try but doesn't work.any other idea...???
Thanks for all.
Hi...In LogCat show that message:Couldn't create directory for SharedPreferences file /data/data/com.divux.android.educatablet.timetable/shared_prefs/timetable_preferences.xml
Any idea, for this.Thanks for all.
On Mon, Jan 7, 2013 at 9:03 AM, Josue Hernandez <jgh...@gmail.com> wrote:
Hi...My device is a Pandigital.OS Version: 2.3.1
Class Code:import org.acra.*;import org.acra.annotation.*;import com.divux.android.educatablet.timetable.R;
import android.app.Application;import android.util.Log;@ReportsCrashes(formKey = "0AkLbs9GI7e2cdDZ0eGxtcklxWVlQaHY2QWVXYXAyVHc",mode = ReportingInteractionMode.TOAST,resToastText = R.string.crash)public class CrashReport extends Application{private static final String LOG_TAG = CrashReport.class.getName();@Overridepublic void onCreate(){super.onCreate();Log.v(LOG_TAG,"Execute");ACRA.init(this);}}
I hope we can help me.!Thanks.