Closed jonameson closed 8 years ago
This is correct. The third Parameter has to be an int: The Version Code.
You didn't define it. Add
private static final int VERSION = 1;
to your class and you should be fine. You can also remove the last Parameter since its the standard behavior (TrayStorage.Type.USER
).
Hey, thanks for the quick reply. So the issue is not the VERSION param. I'm just saying that the constructors 4th param should be an enum of type "TrayStorage.Type". Or the "TrayStorage.Type" should be int and not enums. You guys should possible properly define that unless I'm not understanding something... :P
I'm not sure if I understand you correctly. You can pass 4 Parameters into the Constructor:
Your posted Code should work if you define VERSION
as an int.
Ah, you are correct. I was incorrectly using the constructor override. I was trying to pass the TrayStorage.Type as an int. My apologies. :/
You're welcome 😄
The following causes the compiler to complain; TrayStorage.Type.USER needs to be an int.