Skip to content

Instantly share code, notes, and snippets.

View 4handheld's full-sized avatar
👨‍💻
Open to exciting opportunities

Joseph 4handheld

👨‍💻
Open to exciting opportunities
  • Remote
View GitHub Profile
@4handheld
4handheld / SMSPermissionFragment.kt
Created January 5, 2022 06:47
A samplebuild.gradle file for an android module that requires the androidx.activity:activity dependency & a sample fragment that's utilizing the ActivityResultLauncher
package sample.test.permission
import android.Manifest
import android.app.PendingIntent
import android.os.Bundle
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.contract.ActivityResultContracts.RequestMultiplePermissions
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import sample.test.permission.R