Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Acralyzer #60

Closed
ghost opened this issue Oct 23, 2013 · 2 comments
Closed

Problems with Acralyzer #60

ghost opened this issue Oct 23, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 23, 2013

Hi,

i have some Problems with Acralyzer. I made a little Hello World Android App to test Acralyzer but the errors aren't reportet to my Cloudant DB.

Here is my Code:

@ReportsCrashes(
formKey = "",
formUri = "http://xxx.cloudant.com/acra-myapp/_design/acra-storage/_update/report",
reportType = org.acra.sender.HttpSender.Type.JSON,
httpMethod = org.acra.sender.HttpSender.Method.PUT,
formUriBasicAuthLogin="xxx",
formUriBasicAuthPassword="ODKm34wutstEaluhotu1B1yX")

public class myapp extends Application{

  @Override
  public final void onCreate() {

    super.onCreate();
    ACRA.init(this);    

  }

}

To test the reporting i programmed a division by zero when i press a button in the Main Activity:

public class MainActivity extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

public void btn_send(View view)  {

    int i = 10 / 0; 

    }
}

It should work in my opinion.
I hope you can help me with it.

Athoril

@KevinGaudin
Copy link
Member

  • Have a look at your logcat, there should be traces of ACRA init and
    exception processing with eventual errors.
  • is your btn_send() method really executed? Do you get the native force
    close dialog?

@ghost
Copy link
Author

ghost commented Oct 24, 2013

It works now. I tried to look at the logcat traces and then i realized that i had an error in my manifest file.

Thx for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant