In Android, you can use
See full example of using
PackageManager
, hasSystemFeature()
method to check if a device has camera, gps or other features.See full example of using
PackageManager
in an activity class.package com.mkyong.android; import android.app.Activity; import android.content.Context; import android.content.pm.PackageManager; import android.os.Bundle; import android.util.Log; public class FlashLightActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); Context context = this; PackageManager packageManager = context.getPackageManager(); // if device support camera? if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)) { //yes Log.i("camera", "This device has camera!"); }else{ //no Log.i("camera", "This device has no camera!"); } } }
Our tailoring factory consists of the 50 sewing experts with quality assurance people and some qualified garments engineers along with fashion designers.
ReplyDeletestitching unit , ladies tailor , custom tailor , tailor near me , tailor shop , Online Tailor Shop , tailoring company
michael kors handbags sale
ReplyDeletefitflop
longchamp handbags
louboutin shoes uk
vapormax
kd 12
lebron 15
off white shoes
off white x jordan 1
yeezy
Visit This Link replica ysl handbags important source replica gucci handbags continue reading this cheap designer bags replica
ReplyDeleteSource replica designer bags wholesale site https://www.dolabuy.su this contact form replica bags buy online
ReplyDeleteb4x46j8e33 x1l24v6w89 p8f30x3j65 t9j20m3a29 s4m40u0v29 m3x97f8u15
ReplyDeletebags replica gucci h81 g6m06p0a77 Louis Vuitton replica Bags f49 n7w52m5q95 Ysl replica handbags a22 g2n14x8k35
ReplyDelete