I want to write a code in Android that can send an app's .apk
file and a text message to WhatsApp. How should I go about it?
This is the basic framework of my code:
package com.example.testapp;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}