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

学习是最好的投资!

répondre à tous(1)
Peter_Zhu

Essayez d'ajouter @SuppressWarnings("ResourceType"), source : http://stackoverflow.com/ques...

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal