Rifluxyss / acra

Automatically exported from code.google.com/p/acra
0 stars 0 forks source link

User Interaction not working for me #119

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have set up my ACRA.java file as so:

package com.skipmorrow.phca;

import org.acra.annotation.*;
import org.acra.ReportingInteractionMode;

import android.app.Application;

@ReportsCrashes(formKey = "dFdSM--hidden--E6MQ",
mode = ReportingInteractionMode.NOTIFICATION,
resNotifTickerText = R.string.crash_notif_ticker_text,
resNotifTitle = R.string.crash_notif_title,
resNotifText = R.string.crash_notif_text,
resNotifIcon = android.R.drawable.stat_notify_error, // optional. default is a 
warning sign
resDialogText = R.string.crash_dialog_text,
resDialogIcon = android.R.drawable.ic_dialog_info, //optional. default is a 
warning sign
resDialogTitle = R.string.crash_dialog_title, // optional. default is your 
application name
resDialogCommentPrompt = R.string.crash_dialog_comment_prompt, // optional. 
when defined, adds a user text field input with this text resource as a label
resDialogOkToast = R.string.crash_dialog_ok_toast // optional. displays a Toast 
message when the user accepts to send a report.
)

public class ACRA extends Application {
    @Override
    public void onCreate() {
        // The following line triggers the initialization of ACRA
        org.acra.ACRA.init(this);
        super.onCreate();
    }   
}

I have edited the strings resource and the code compiles and runs.

My AndroidManifest.xml has the following sections
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <!-- android.permission.READ_LOGS required for ACRA crash reporting -->
    <uses-permission android:name="android.permission.READ_LOGS"></uses-permission>

    <application android:icon="@drawable/icon" android:label="@string/APP_NAME" android:name="ACRA">
<activity android:name="org.acra.CrashReportDialog"
        android:theme="@android:style/Theme.Dialog"
        android:launchMode="singleInstance"
        android:excludeFromRecents="true"
        android:finishOnTaskLaunch="true" />

What is the expected output? What do you see instead?
I added a line to my code that should cause a nullpointerexception. If I have 
ReportingInteractionMode.NOTIFICATION set (as above), when the crash occurs, 
the phone slows down, the screen goes black, and nothing happens for a minute 
or two. The buttons and screen are unresponsive. No crash report is sent and no 
user dialog appears.

But if I set ReportingInteractionMode.NONE, the crash report is sent right away 
as designed. ReportingInteractionMode.TOAST works the same as 
ReportingInteractionMode.NOTIFICATION above (blank screen and no dialog or 
report)

What version of the product are you using? On what operating system?
4.2.3, Samsung SGS2 (t-mobile), 2.3.5 OS

Original issue reported on code.google.com by skip.mor...@gmail.com on 23 Mar 2012 at 1:42

GoogleCodeExporter commented 8 years ago
Never mind. It looks like it is working now after a project clean in Eclipse.

Original comment by skip.mor...@gmail.com on 23 Mar 2012 at 3:12

GoogleCodeExporter commented 8 years ago

Original comment by kevin.gaudin on 5 Apr 2012 at 9:14