Back to project page CallNotifier.
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.
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; } }