Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 4th Aug 2015, 12:01 PM   #1
YSH
Warrior Member
 
Join Date: 2015
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Android API Question
Share on: 
fb share twitter share gplus share more share

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
YSH is offline  
Closed Thread


Bookmarks

Tags
android, api, question


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:40 AM.