Is it possible to create a Android activity without UI?
Yes it is. Android provides a theme for this requirement. Add the following line to your AndroidManifest.xml and call finish() at the end of the Activity’s onCreate() method.
android:theme="@android:style/Theme.NoDisplay"
Theme_NoDisplaypublic static final class android.R.style – Added in API level 3 Constant Value: 16973909 (0x01030055) |