Android Open Source - CallNotifier Configuration






From Project

Back to project page CallNotifier.

License

The source code is released under:

Apache License

If you think the Android project CallNotifier listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.hevsoft.callnotiffier;
//from  w w  w . j ava  2s .  c o m
import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by elvis.iulian on 11/7/2014.
 */
public class Configuration {

    public static final int DEFAULT_TIMEOUT_INDEX = 0;


    public long getCallTimeOut(Context c){
        SharedPreferences pref = c.getSharedPreferences(MainActivity.PREF_NAME, Context.MODE_PRIVATE);
        int index = pref.getInt(MainActivity.TIMEOUT_INDEX_KEY,DEFAULT_TIMEOUT_INDEX);
        return Long.parseLong(c.getResources().getStringArray(R.array.timeout_values)[index])*1000;
    }
}




Java Source Code List

com.hevsoft.callnotiffier.ApplicationTest.java
com.hevsoft.callnotiffier.CallsReceiver.java
com.hevsoft.callnotiffier.Configuration.java
com.hevsoft.callnotiffier.Contact.java
com.hevsoft.callnotiffier.IObsController.java
com.hevsoft.callnotiffier.MainActivity.java
com.hevsoft.callnotiffier.ObsController.java
com.hevsoft.callnotiffier.SmsWrapper.java
com.hevsoft.callnotiffier.Subject.java