android - 如何使用Intent传递@IntDef
PHPz
PHPz 2017-04-17 17:28:37
0
1
534
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)

应该用什么解决办法?

PHPz
PHPz

学习是最好的投资!

Antworte allen(1)
Peter_Zhu

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

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage