Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.ContentResolver;

public class Main {
    public static final String QTI_IMS_CALL_DEFLECT_NUMBER = "ims_call_deflect_number";

    public static void setCallDeflectNumber(ContentResolver contentResolver, String value) {
        String deflectNum = value;

        if (value == null || value.isEmpty()) {
            deflectNum = "";
        }

        android.provider.Settings.Global.putString(contentResolver, QTI_IMS_CALL_DEFLECT_NUMBER, deflectNum);
    }
}