首页 > 如何使用Intent传递@IntDef

如何使用Intent传递@IntDef

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)

应该用什么解决办法?


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

【热门文章】
【热门文章】