This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fnn.smirl.rdc.constitution.info; | |
import android.content.Context; | |
import android.content.pm.PackageInfo; | |
/** by Francis Nduba Numbi */ | |
public final class AppInfo | |
{ | |
private static String vn= ""; // version name | |
private static int vc = 0; // version code | |
private static final AppInfo INSTANCE = new AppInfo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 1, | |
"title": "Sir", | |
"name": "Francis" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.support.v7.app.AlertDialog; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.TextView; | |
import java.util.Random; | |
import java.util.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rupantor.cusedittext; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.widget.EditText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.widget.*; | |
import android.util.*; | |
import android.content.*; | |
import android.graphics.*; | |
/** | |
* the simple implementation of an EditText where each line is numbered on the left | |
*/ | |
public class LineNumberedEditText extends EditText { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fnn.smirl.simple; | |
import java.io.*; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.JsonIOException; | |
import com.google.gson.JsonSyntaxException; | |
/** | |
* Simplified serialization and deserialization of file using Gson API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
/** | |
* For Descriptive Statistics | |
* @AUTHOR: Francis Nduba Numbi | |
* @YEAR: 2017 | |
* | |
* REMEMBER : AFTER ALL DATA HAVE BEEN ADDED, call update(). | |
* else some calculations will be wrong. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.speech.tts.TextToSpeech; | |
import android.speech.tts.UtteranceProgressListener; | |
import android.widget.Toast; | |
import java.util.Locale; | |
/*** the implementation of TextToSpeech */ | |
public final class VoiceReadText{ | |
private static TextToSpeech tts; | |
private static boolean READING = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fnn.smirl.note.util; | |
import java.util.regex.*; | |
import android.text.*; | |
import android.text.style.*; | |
import android.graphics.*; | |
import java.util.*; | |
public class EditorUtils implements Tokenize { | |
public static void formatEditor(Editable ssb) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** reading plain text from assets folder */ | |
public static String loadText(Context ctx, String address){ | |
String _data = ""; | |
try{ | |
InputStream is = ctx.getAssets().open(address); | |
int size = is.available(); | |
byte[] buffer = new byt[size]; | |
is.read(buffer); | |
is.close(); | |
_data = new String(buffer); |
OlderNewer