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.os.AsyncTask; | |
import android.util.Log; | |
import org.json.JSONException; | |
import java.io.IOException; | |
import okhttp3.MediaType; | |
import okhttp3.OkHttpClient; |
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
07-04 16:12:42.628 10265-10265/com.sandftechnologies.schoolmanagement W/System.err: android.os.NetworkOnMainThreadException | |
07-04 16:12:42.629 10265-10265/com.sandftechnologies.schoolmanagement W/System.err: at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273) | |
07-04 16:12:42.629 10265-10265/com.sandftechnologies.schoolmanagement W/System.err: at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:249) | |
07-04 16:12:42.629 10265-10265/com.sandftechnologies.schoolmanagement W/System.err: at libcore.io.IoBridge.recvfrom(IoBridge.java:549) | |
07-04 16:12:42.629 10265-10265/com.sandftechnologies.schoolmanagement W/System.err: at java.net.PlainSocketImpl.read(PlainSocketImpl.java:481) | |
07-04 16:12:42.629 10265-10265/com.sandftechnologies.schoolmanagement W/System.err: at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37) | |
07-04 16:12:42.630 10265-10265/com.sandftechnologies.schoolmanagement W/System.err: at java.net.PlainSocketImpl$PlainSocketInputStream.read(Pl |
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 com.sandftechnologies.schoolmanagement.CustomView; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.graphics.RectF; | |
import android.util.AttributeSet; | |
import android.util.DisplayMetrics; |
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 com.sandftechnologies.schoolmanagementStaff.bottomSheet; | |
import android.app.Dialog; | |
import android.support.design.widget.BottomSheetDialogFragment; | |
import android.support.design.widget.CoordinatorLayout; | |
import android.support.design.widget.Snackbar; | |
import android.support.v7.widget.DefaultItemAnimator; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; |
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 com.sandftechnologies.schoolmanagementStaff.ModelClasses | |
import android.app.Application | |
import android.content.Context | |
import android.content.SharedPreferences | |
import android.graphics.Typeface | |
import android.widget.ArrayAdapter | |
import com.facebook.drawee.backends.pipeline.Fresco | |
import com.sandftechnologies.schoolmanagementStaff.Activities.ViewStudent |
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 com.sandftechnologies.schoolmanagementStaff.ModelClasses; | |
import android.app.Application; | |
import android.content.SharedPreferences; | |
import android.graphics.Typeface; | |
import android.widget.ArrayAdapter; | |
import com.facebook.drawee.backends.pipeline.Fresco; | |
import com.sandftechnologies.schoolmanagementStaff.Activities.ViewStudent; | |
import com.sandftechnologies.schoolmanagementStaff.DataCache; |
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.os.Environment; | |
import android.util.Log; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.util.ArrayList; |
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
public class ExtendedEditText extends AppCompatEditText { | |
String TAG = "ExtendedEditText"; | |
TextPaint textPaint = new TextPaint(); | |
private String suffix = ""; | |
private String prefix = ""; | |
private boolean appendWhiteSpace; | |
private int hackPadding; /**Used to fix wrong positioning of EditText cursor, when both prefix and suffix are set*/ | |
private int leftPadding, prefixXPosition, stringXPosition, suffixXPosition; |
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
public void copy(View view) { | |
File source = new File("storage/emulated/0/test.apk"); | |
File dest = new File("storage/emulated/0/test_copy.apk"); | |
try { | |
copyFileUsingStream(source, dest); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
} |
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
public void copy(View view) { | |
File source = new File("storage/emulated/0/test.apk"); | |
File dest = new File("storage/emulated/0/test_copy.apk"); | |
try { | |
copyFileUsingStream(source, dest); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
} |
OlderNewer