Android Live Wallpaper and main activity in apps list - android

I just created a live wallpaper but i can't show it on the program list. The wallpaper apperas only in wallpaper list, by long pressing the home screen.
Is there a way to show the wallpaper on both screens: wallpaper list and program list?
I tried by setting an intent filter action android:name="android.intent.action.MAIN" /> in the manifest but the wallpaper doesn't compare.
<activity
android:name="Preferences"
android:label="#string/description"
android:theme="#android:style/Theme.WallpaperSettings"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.PREFERENCE" />
</intent-filter>
</activity>
What should I use in the Manifest file to show the wallpaper on both screens?

Related

Set Home Launcher via ADB

I want my app to be in KIOSK mode every startup, so in my AndroidManifest.xml I define my MainActivity as
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</activity>
I am developing in an S99 smart watch. Unfortunately, I couldn't find a setting item where I can customize its default home launcher.
Home launcher selection won't also display when I tap the home menu.
So I am thinking to have it via ADB. Is it possible?
How can I set my Activity to be the default launcher in ADB?

Splash Screen Doesn't Display First On The Application

Good day, I'm doing a project and, I'm new with android development also, I just want to ask how to display my[the] splash screen first on my app (when starting up my application). Whenever I run it on emulator or on my device it directly go to my main activity.
Splash Screen Image
Main NavDrawer
I even reorder my manifest file list - and place the splash screen first
here my code
<!-- For Splash Screen -->
<activity
android:name=".activities.SplashScreen"
android:screenOrientation="portrait"
android:theme="#style/Theme.AppCompat.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- For Main Activity -->
<activity android:name=".activities.MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Whenever I exit my app and start again, my splash screen is gone! It directly go to Main Activity.
Thanks in advance! :)
You are having 2 LAUCHERS...
Make sure that only the Splash Screen Activity is the LAUNCHER.
Let the Main Activity be a DEFAULT one (and also the HOME one).

An application can display multiple icons in Android

I designed one Application in Android. When i upload this Application on device, it will display three icons of that application.
Which part of Android Manifest File is responsible to display the icon.Any idea?
Go to the manifest and remove the launcher intent from all activities but one
Only a single activity - the one you want opened when the user clicks the homescreen icon - should have the following intent filter:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
See your AndroidManifest file. How many activities you have with next code:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
You must have 3 activity for this case.
Also this is may be last package name of your project before you rename it.
See here Manifest file
android:icon="#drawable/ic_launcher"
And
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

Adding app launch icon to the home screen

I would like to place the app launch icon on the home screen once the user installs my android app. This should be done even if the user does not open the app.
I have tried adding "category android:name="android.intent.category.HOME" in the manifest file for my main activity. But this does not work.
Any pointers on how solve this issue?
Thanks
Srao
I think this would be enough:
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

on screen android animation

I am new to Android, creating an Android application that have animations that will be displayed on the main screen (as in desktop) and I am planning to use sprites for this. But I don't know how to display the animation in the desktop. Please suggest if there is any better method. I am planning to create a train that runs around the desktop.Can any one help?
I think that you want to run activity with Transparent background.The following code is used to be a current window with Transparent background.In manifest file,
<activity
android:name=".First"
android:theme="#style/Theme.Transparent" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
If you want to floating that window :
<activity
android:name="Second"
android:theme="#style/Theme.Transparent.Floating" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Actually this is used for show two activities in one screen in my example...

Categories

Resources