I have created a wallpaper application and everything works fine except it won't show in the list of "apply wallpapers from" option on other apps. Is there anything to make android recognise the app as a Wallpaper app.
<intent-filter>
<action android:name="android.intent.action.SET_WALLPAPER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Add this in your Manifest File
Related
there. My Application hang in memory in android studio after unloading from memory from recent applications on the device. Second launch of the application opens it in the same place from which I unloaded it from memory. I want my application to be completely destroyed after first upload but I can't achieve this. The application is completely destroyed only after the second upload. How do I get the app to unload the first time? Thanks
The application has only one Activity, I attach its description in the manifest
<activity
android:name=".MainActivity"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
I'm developing and Android application using the Flex 4.6 SDK version and AIR 4.0 SDK.
The application has the following manifest parameters (among others):
<aspectRatio>landscape</aspectRatio>
<autoOrients>true</autoOrients>
<fullScreen>true</fullScreen>
and:
<application android:enabled="true">
<activity android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</activity>
</application>
So as you may see, the configuration is intended to launch the application as the HOME app, in landscape mode as soon as the device starts.
The application does in fact do everything it's supposed to but when the device boots up, the app does not starts in full screen because you can see the notification/status bar. Next you may see the problem.
What I need to do is to make the app start at full screen when the device boots. Now, the only way to make it start at full screen mode is to restart the application after the device finished booting up.
I hope you can help me solve this anoying problem.
EDIT 1
I also compiled the application using AIR 14 SDK and the behaiviour was exactly the same.
I must add that sometimes, the status bar appears and sometimes it doesn't. I thought it had something to do with the WIFI network connection but it doesn't, since on both cases, as soon as the application, if it has inmediate network connection or if it doesn't, the status bar will sometimes appear and sometimes not appear.
EDIT 2
Further testing make me realize that when the status bar was showing, it was exactly the same scenario as when the fullscreen parameter of the manifest was set to false. Could it be something related to a bug in that parameter or something like that?
just go into the manifest and use a full screen theme.
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" >
How can I make my camera app available for "quick launch" on the Android lock screen?
The documentation for camera intents seems to all be focused on how to implement in a camera app which will take a single photo and return it to the calling application. The lock screen quick launch seems like a totally different use case, and the "return an image" workflow obviously would not apply. (For now, I specifically don't want to implement the "return one photo" functionality.)
Thanks for any help. Either this seems poorly documented, or I can't figure out the proper terms to search for the proper documentation.
Thank you CommonsWare. Your comment eventually led me to...
<intent-filter>
<action android:name="android.media.action.STILL_IMAGE_CAMERA" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
I have developed an application for my blind friends which has the default home settings set in the manifest, as below:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.HOME"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
This worked fine until they upgraded from a Samsung Galaxy XCover (2.3.6) to a Samsung S3 (4.1.1) last week. Now, after installation, and pressing the home key, a dialog box appears and they get to chose between this app and Samsung Touchwiz and they pick my app and then they press the always button. However, when they restart the phone and dismiss the lock screen, the dialog box appears again. I have looked in apps -> settings -> all screen and I can see that my app is set as default.
Have I missed something?
I am trying to develop unlock screen app for Android. I have downloaded some unlock screen app and tested. I finally found one app. That is Fingerprint Screensaver . It is what I exactly want. I mean I wish to replace the pattern unlock screen app. I am wandering how to replace the Android pattern unlock screen app.
I have googled a lot, but I could not find how to do it. Somebody wrote it is a hack. Even the Android does not support, I strongly wish to know how to do that.
If someone knows about it, please give me a clue. Thanks in advance a lot.
Thanks.
You can create a custom unlock screen by adding the following intent filter to the AndroidManifest.xml file for your Activity:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
This is a hack because a dialog box will pop up asking the user which one he wants to use (yours or the default). Worse, if the user accidentally selects your lock screen as the default home screen in the chooser, they could seriously mess up their device. They might end up having to do a factory reset.
The only safe way to create a custom lockscreen is to modify the Android platform itself. This is how OEM skins like HTC Sense or Motoblur create custom lock screens.