Skip to main content

Posts

Showing posts from June, 2016

How to launch Android app from Dialer

Android give facility to developer and user to use a flexible and open-source platform. In Android, you can take permission for use of Dialer and also the Broadcast Receiver for listening something happened or not.

So, today I am sharing with you how to open Apps through Dialer. Dailing some predefine code | Number which opens our Application.


Here Some Java code which listening...

publicclassDialReceiverextendsBroadcastReceiver{@Overridepublicvoid onReceive(Context context,finalIntent intent){if(intent.getAction().equals(android.content.Intent.ACTION_NEW_OUTGOING_CALL)){String phoneNumber = intent.getExtras.getString("Intent.EXTRA_PHONE_NUMBER");if(phoneNumber.equals("*#588637#")){//do your stuff}

How to know FingerPrint feature available in android? | FingerPrint Feature code too check your mobile Supported or not ?

In Android Version 6.0 Android Marshmallow FingerPrint Features Enable. So, how you code your device support or not ? How to check the FingerPrint code works or not here is the solution for the FingerPrint check is your mobile support or not ?


Google Official Announcement for Finger Print Official Documentation for Android FingerPrint API 

You know how to get all permission for FingerPrint and how to use but how to know devices support FingerPrint or not ? below is some of code which helps you to know device support or not ?



So, Let get Started for FingerPrint...

First, you have to get permission from the Manifest file..

<uses-permission android:name="android.permission.USE_FINGERPRINT"/>


Example 1
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) {
    Toast.makeText(this, "Finger print not supported", Toast.LENGTH_SHORT).show();
}

Example 2
FingerprintManager fingerprintManager = (FingerprintManager) getSystemService(Context.FINGERPRINT_SE…