Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

IndexOutOfBoundsException #8

Open
doct0rX opened this issue Mar 21, 2019 · 0 comments
Open

IndexOutOfBoundsException #8

doct0rX opened this issue Mar 21, 2019 · 0 comments

Comments

@doct0rX
Copy link

doct0rX commented Mar 21, 2019

when I use builder.setItem();
like this example:

int[] items = new int[] {
    R.string.share,
    R.string.upload,
    R.string.copy,
    R.string.print_this_page
};

builder.setItems(items, new DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
        // your code here.
    }
});

I get

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
        at java.util.ArrayList.get(ArrayList.java:437)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant