Telephony. Messaging. Sending sms messages programmatically


return getResources().getConfiguration().keyboard



Download 83,12 Kb.
bet5/7
Sana20.06.2022
Hajmi83,12 Kb.
#684070
1   2   3   4   5   6   7
Bog'liq
Mustaqil ish mobil ilova Karimov Islom

return getResources().getConfiguration().keyboard != Configuration.KEYBOARD_NOKEYS;
}
private boolean IsHardwareMenuButtonPresent() {
return ViewConfiguration.get(this).hasPermanentMenuKey();
}
private boolean IsFrontCameraPresent() {
return getPackageManager().hasSystemFeature( PackageManager.FEATURE_CAMERA_FRONT);
}
private boolean IsGPSPresent() {
return getPackageManager().hasSystemFeature( PackageManager.FEATURE_LOCATION_GPS);
}
public boolean onKeyDown(int keyCode, KeyEvent event) {
switch (keyCode) {
case KeyEvent.KEYCODE_DPAD_CENTER: Toast.makeText(this, "The Center key was pressed", Toast.LENGTH_SHORT).show();
return true;
case KeyEvent.KEYCODE_DPAD_RIGHT: Toast.makeText(this, "The Right key was pressed", Toast.LENGTH_SHORT).show();
return true;
case KeyEvent.KEYCODE_DPAD_LEFT:
Toast.makeText(this, "The Left key was pressed", Toast.LENGTH_SHORT).show(); return true;
case KeyEvent.KEYCODE_BACK:
Toast.makeText(this, "The Back key was pressed", Toast.LENGTH_SHORT).show();
//---this event has been handled---return true;
}
return false;
}

Flashlight dan foydalanish


▶ Android qurilmalarida flashlight dan foydalanish uchun AndroidManifest.xml faylida quyidagi ikkita permission ishlatiladi:



android:name="android.permission.FLASHLIGHT"/>
▶ O‘z navbatida SurfaceView ob’ektidan foydalaniladi (rasmga olish jarayonida ob’ektni oldindan ko‘rib turish uchun ishlatiladi).



FlashLight dan foydalanish: Misol
android:orientation="vertical" >

Download 83,12 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish