Flex Mobile Android full screen application at startup - android

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" >

Related

Application hangs in memory in android studio after unloading from memory

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>

Running a Flutter app on the foreground 24/7

I Have a flutter app that is supposed to be a display app for some contents besides ads for some restaurants...The app is supposed to work 24/7 and will be on andriod tablets only.
I have searched a lot and the latest thing I found was to set the app to be a system app using the following tags
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.HOME"/>
and the premission
<uses-permission android:name="android.permission.WAKE_LOCK" />
and I am using the "screen" plugin as well to keep the screen always on.
The problem now is the screen is always on and the app running without any problems for 24 and some times for 48 hours then the lock screen shows up and after unlocking the screen the app is on the foreground playing without any problems.
Is there any way to keep the app displaying always on the foreground?
or a way to disable the lock screen from appearing if it causing the issue?
You can use Screen Pinning which requires no code.
Or you can implement Lock task mode.

How to make android recognise app as wallpaper app

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

Samsung Touchwiz always prompts for default app on startup in Android 4.1.1

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?

How to make unlock screen app for Android

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.

Categories

Resources