Tag : Activity

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_NoDisplay public static final class android.R.style – Added in API level 3 int Theme_NoDisplay Default theme ..

Read more

This is a simple Android background Service Template. You can use it to run updates in the background without blocking the UI. To start and stop the service use the following lines in your activity: // starting the service Intent intent = new Intent(this, UpdateService .class); startService(intent); // stopping the service Intent intent = new ..

Read more