Skip to content

java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode  #374

@gustavo-iniguez-goya

Description

@gustavo-iniguez-goya

Reported with 1.6.0. Problematic code still present on dev branch (05/10).

Some light about the exception:
https://stackoverflow.com/questions/14378002/exception-with-android-when-using-acra

we should use an int <= 65536.

java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode : at org.csploit.android.plugins.mitm.MITM$CheckForOpenPortsTask$1.onConfirm(MITM.java:339)

public void onConfirm(){
            startActivityForResult(new Intent(MITM.this, SettingsActivity.class), SettingsActivity.SETTINGS_DONE);
          }

SettingsActivity.java:

public static final int SETTINGS_DONE = 101285;

Something like SETTINGS_DONE = 1285; should fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions