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.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.v4.content.ContextCompat; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| 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
| public ArrayList<MusicBean> getMusic(){ | |
| ArrayList<MusicBean> alMusic = new ArrayList<>(); | |
| Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; | |
| String[] projection = {MediaStore.Audio.Media._ID, | |
| MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.TITLE, | |
| MediaStore.Audio.Media.DATA, MediaStore.Audio.Media.DISPLAY_NAME, |
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
| adb pull data/data/your.package/databases/yourDb.sqlite C:\Users\Your.Name\Desktop | |
| adb pull data/data/your.package/shared_prefs/your_preference_file_name.xml C:\Users\Your.Name\Desktop | |
| pause | |
| start "" "C:/Program Files (x86)/SqliteBrowser3/bin/sqlitebrowser" C:\Users\Your.Name\Desktop\yourDb.sqlite |
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 Bitmap getScreenshotFromRecyclerView(RecyclerView view) { | |
| RecyclerView.Adapter adapter = view.getAdapter(); | |
| Bitmap bigBitmap = null; | |
| if (adapter != null) { | |
| int size = adapter.getItemCount(); | |
| int height = 0; | |
| Paint paint = new Paint(); | |
| int iHeight = 0; | |
| final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024); |
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
| /** | |
| * Warning, this gives a false sense of security. If an attacker has enough access to | |
| * acquire your password store, then he almost certainly has enough access to acquire your | |
| * source binary and figure out your encryption key. However, it will prevent casual | |
| * investigators from acquiring passwords, and thereby may prevent undesired negative | |
| * publicity. | |
| */ | |
| public class ObscuredSharedPreferences implements SharedPreferences { | |
| protected static final String UTF8 = "utf-8"; | |
| private static final char[] SEKRIT = ... ; // INSERT A RANDOM PASSWORD HERE. |
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.content.Context; | |
| import android.content.SharedPreferences; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.util.Log; | |
| import java.lang.reflect.Field; | |
| import java.util.Set; | |
| import java.util.prefs.AbstractPreferences; |
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 ui.animation; | |
| import android.util.Log; | |
| import android.view.View; | |
| import android.view.animation.Animation; | |
| import android.view.animation.Transformation; | |
| public class CircularPropertyAnimation extends Animation { | |
| private float startAngle = 90; |
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
| // File Name GreetingClient.java | |
| import java.io.DataInputStream; | |
| import java.io.DataOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.net.Socket; | |
| import java.util.Scanner; |
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.example.vaibhav.testingapp; | |
| import android.graphics.drawable.ColorDrawable; | |
| import android.support.v7.widget.Toolbar; | |
| import android.view.Menu; | |
| import android.view.animation.AccelerateInterpolator; | |
| import android.view.animation.DecelerateInterpolator; | |
| import com.utils.Logger; | |
| import com.utils.PixelUtils; |
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.content.Context; | |
| import android.graphics.Typeface; | |
| import android.support.v4.view.PagerAdapter; | |
| import android.support.v4.view.ViewPager; | |
| import android.util.AttributeSet; | |
| import android.util.SparseArray; | |
| import android.util.TypedValue; | |
| import android.view.Gravity; | |
| import android.view.LayoutInflater; |