Is there any way to start activity from the main function without a user interface? that is, there is a way to create a kind of โwrapperโ around another action, that is, by starting the main action, it will automatically switch to another activity.
If this is not possible, is there a way to remove the main action from the stack so that clicking the back button does not lead you to an empty interface? Here is an example of what I'm trying to do:
public class WrapperActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:555-1212")); startActivity(intent); } }
android
fjmustak Apr 24 '10 at 10:23 2010-04-24 10:23
source share