Skip to content

Instantly share code, notes, and snippets.

View nicemak's full-sized avatar
👨‍💻
Working

Mohsin Ahmed Khan nicemak

👨‍💻
Working
  • Sr. Android Developer @ Bosch Pharma Pvt. Ltd.
  • Karachi, Pakistan
View GitHub Profile
@nicemak
nicemak / Windows
Created January 9, 2020 05:58 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211
# Subscribe to my YouTube Channel -> https://lokjianming.page.link/CVLm #
How to Crack Sublime Text 3 with Hex Editor (without license) ↓
1. Download & Install Sublime Text 3.2.2 Build 3211
2. Visit Hexed.it
3. Open file sublime_text.exe
4. Search address: 97 94 0D -> 00 00 00
5. Offset 0x8545: Original 84 -> 85
6. Offset 0x08FF19: Original 75 -> EB
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.os.Handler
import android.text.Editable
import android.text.Spannable
import android.text.SpannableString
import android.text.Editable
import android.text.SpannableString
import android.text.SpannableStringBuilder
import android.text.TextUtils
import android.text.style.AbsoluteSizeSpan
import androidx.core.text.inSpans
import androidx.lifecycle.MutableLiveData
import java.text.DecimalFormat
import java.util.*
import android.content.Context
import android.database.Cursor
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Matrix
import android.location.Location
import android.net.Uri
import android.provider.MediaStore
import android.text.format.DateFormat
import android.util.Base64
import android.content.Context
import android.content.SharedPreferences
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Environment
import android.text.TextUtils
import org.jetbrains.annotations.Nullable
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
import android.app.Activity
import android.app.ActivityManager
import android.app.Notification
import android.app.NotificationManager
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.content.pm.ActivityInfo
import android.graphics.*
import android.graphics.drawable.Drawable
import android.util.Base64;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
public class CryptoUtil {
private static final String key = "SKs9uZKvZU2VOFjQISEg4tJQyAeqX3Mm";
private static final String initVector = "53og3sqCcKdQl5Ud";
@nicemak
nicemak / BroadCastReceiver.kt
Last active January 10, 2020 04:50
Location Monitoring Service Files
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
class BroadCastReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent)
{
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
context.startForegroundService(Intent(context,LocationMonitoringService::class.java))
@nicemak
nicemak / VideoPlayer.kt
Created February 11, 2020 07:35 — forked from scruffyfox/VideoPlayer.kt
Playing a video from Assets using ExoPlayer 2
/**
* It took me AGES to figure this out, seriously, exoplayer documentation IS SO BAD.
*/
package xxx
import android.net.Uri
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.cube.arc.R
@nicemak
nicemak / Urls.txt
Last active September 11, 2021 08:13
Usefull Websites For Android Development
https://lankydan.dev/ // nice tutorials
https://proandroiddev.com/ // nice tutorials
https://medium.com/androiddevelopers
https://androidweekly.net/
https://mindorks.com/
https://blog.stylingandroid.com/ === Best Reading
https://www.reddit.com/r/androiddev/ === Users
https://medium.com/androiddevelopers === Android Developers
https://www.uplabs.com/ === Designer resources
https://codelabs.developers.google.com/?cat=Android === Android Practice