Android App Without Ui: How To Stop Momentary Flash Each Time The App Is Run
I want to create an activity that simply displays a Toast (or speaks a message) then quits. Following the advice in https://www.quora.com/Is-it-possible-to-create-an-Android-app-th
Solution 1:
The answer (thanks to Commonsware) is to insert android:theme="@android:style/Theme.Translucent.NoTitleBar"
in the <activity>
element in the manifest. The whole amended activity
element reads:
<activity android:name=".MainActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Post a Comment for "Android App Without Ui: How To Stop Momentary Flash Each Time The App Is Run"