android - 如何使用Intent传递@IntDef

【字号: 日期:2022-12-11浏览:21作者:雯心

问题描述

int fromType = getIntent().getExtras().getInt(ConstantValues.BUNDLE_FROM);

提示must be one of: ChoosePhotoActivity.TYPE_FREE_CHANGE_PIC, ChoosePhotoActivity.TYPE_FREE, ChoosePhotoActivity.TYPE_PUZZLE, ChoosePhotoActivity.TYPE_PUZZLE_CHANGE_PIC more... (Ctrl+F1)

应该用什么解决办法?

问题解答

回答1:

试试加上@SuppressWarnings('ResourceType'),出处:http://stackoverflow.com/ques...

相关文章: