| | #1 |
| Warrior Member Join Date: 2015
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Greetings When I check for camera existence in android phone I start with the following function : public static boolean deviceHasCamera(Context context) { if ( context.getPackageManager().hasSystemFeature(Packa geManager.FEATURE_CAMERA)) return true; else return false; } The question is why should I pass context as an argument and what is Context Identifier Thanks |
| |
|
| Bookmarks |
| Tags |
| android, api, question |
| |