https://kotlinlang.org logo
Title
u

user

06/26/2022, 6:11 AM
How to share the THIS applications base.apk using Intent? I want to share my application using a share button inside it. Once the button is clicked it should get the base.apk from the package manager and then share it using Intents. Here is what I have so far: All UI is ready and working I have the following code to get the app and share it try { val pm = packageManager val ai = pm.getApplicationInfo(packageName, 0) val srcFile = File(ai.publicSourceDir) val share = Intent() share.action = Intent.ACTION_SEND share.type...