I need to make an activity send a text message when it first loads on Android Studio. It's for a mobile safety app that automatically sends your location data to the police via SMS when the app first loads.
I'm trying the onStart method.
@Override
protected void onStart()
{
super.onStart();
}
How can I do it or is there a better way?