Skip to content
Snippets Groups Projects
Commit 8b383800 authored by Vieri Firdaus's avatar Vieri Firdaus
Browse files

feat : intent email

parent 974cf68f
1 merge request!8Dev
......@@ -37,6 +37,21 @@ class SettingsFragment : Fragment() {
startActivity(intent)
requireActivity().finish()
}
binding.btnUploadHistory.setOnClickListener {
val email = sharedpreferences.getString(EMAIL, "")
val intentEmail = Intent(Intent.ACTION_SEND)
intentEmail.type = "text/plain"
intentEmail.putExtra(Intent.EXTRA_EMAIL, arrayOf(email))
intentEmail.putExtra(Intent.EXTRA_SUBJECT, "Upload History")
intentEmail.putExtra(Intent.EXTRA_TEXT, "Berikut ini laporan hasil transaksi akun "+email+" : \n")
startActivity(Intent.createChooser(intentEmail, "Send Email"))
}
return binding.root
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment