This file contains hidden or 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.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.text.Editable; | |
| import android.text.SpannableStringBuilder; | |
| import android.text.TextWatcher; | |
| import android.util.AttributeSet; | |
| import android.view.LayoutInflater; | |
| import android.view.View; |
This file contains hidden or 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 com.ocit.wasap.fragment; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.os.Bundle; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentTransaction; | |
| import android.view.LayoutInflater; | |
| import android.view.View; |
This file contains hidden or 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 id.pondokprogrammer.asmaulhusna; | |
| import android.app.Activity; | |
| import android.graphics.Typeface; | |
| import android.os.Bundle; | |
| import android.widget.TextView; | |
| public class DetailAsmaulHusna extends Activity { | |
| private TextView judul; |
This file contains hidden or 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
| public void requestWithSomeHttpHeaders() { | |
| RequestQueue queue = Volley.newRequestQueue(getActivity()); | |
| String url = "http://mimfoundation.or.id/underground/api/api.php?donat=getDetailSantri&uid=zainal"; | |
| StringRequest postRequest = new StringRequest(Request.Method.GET, url, | |
| new Response.Listener<String>() | |
| { | |
| @Override | |
| public void onResponse(String response) { | |
| // response |
This file contains hidden or 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 id.pondokprogrammer.asmaulhusna; | |
| import android.content.Context; | |
| import android.graphics.Typeface; | |
| public final class Farsi { | |
| public static boolean isFarsiConversionNeeded = true; | |
| private final static String szLamAndAlef = Character |
This file contains hidden or 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
| Gson gson = new Gson(); | |
| Type collectionType = new TypeToken<ArrayList<UserStatus>>() { | |
| }.getType(); | |
| data = gson.fromJson(object.toString(), collectionType); |
This file contains hidden or 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.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.io.UnsupportedEncodingException; | |
| import java.util.List; | |
| import org.apache.http.HttpEntity; | |
| import org.apache.http.HttpResponse; |
This file contains hidden or 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 com.ocit.wasap.activity; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.View; | |
| import android.widget.Button; | |
| import android.widget.TextView; | |
| import com.firebase.client.DataSnapshot; | |
| import com.firebase.client.Firebase; |
This file contains hidden or 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
| String str = json.toString(); | |
| SharedPreferences sharedPref = getSharedPreferences( "appData", Context.MODE_WORLD_WRITEABLE ); | |
| SharedPreferences.Editor prefEditor = getSharedPreferences( "appData", Context.MODE_WORLD_WRITEABLE ).edit(); | |
| prefEditor.putString( "json", str ); | |
| prefEditor.commit(); |
This file contains hidden or 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 com.ocit.musicandvideostream.activity; | |
| import android.media.AudioManager; | |
| import android.media.MediaPlayer; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; | |
| import android.view.MotionEvent; | |
| import android.view.View; |