C
C
Chvalov2015-11-04 17:05:46
Android
Chvalov, 2015-11-04 17:05:46

How can I display the activity I need at startup?

There is a project, I want to set more parameters in the settings that should affect the launch of certain activities
. That is, I chose in the settings to start working from the calibration window and after launching the program loads already with the activity I need, and not make a long path to this window, like this implement?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rustem Saitkulov, 2015-11-05
@atetc

Put a splash / launcher screen with a logo on the first screen and implement the necessary logic there.

R
razer89, 2015-11-04
@razer89

Make a startup activity that will always run first and check in the settings which activity should be launched and run it. To make it invisible to the user, and so that all the work of this activity is invisible, you can apply the following theme to it:

<style name="NoDisplay" parent="AppTheme">
        <item name="android:windowBackground">@null</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@null</item>
        <item name="android:windowDisablePreview">true</item>
        <item name="android:windowNoDisplay">true</item>
    </style>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question