How to start adobe air application automatically when the android device boots? - android

I have written an application using Adobe Air 3.4 SDK. I have deployed it to my android v4.0.4 device. It works fine (in full screen mode as expected).
Now the application is expected to run in full screen mode automatically before the device shows the native android screen to the user.
How can I do this? Suggestions anyone?

In the AIR native classes, there is a thing called startAtLogin that you can set to true or false :
NativeApplication.nativeApplication.startAtLogin = true;
But I doubt that can be used to override the native android screen and be displayed before it.
I suppose some built-in checks have been made to be sure nothing gets booted before the screen is ready and diplayed.
Still, you can try it :-)

Related

Expo's Android app not responding properly to code changes and shaking

I've started developing a react-native app using Expo and running it in my Android phone. Things worked OK at first but then suddenly:
Every time I introduced a syntax error on my code, my phone would not display the compiling errors (they used to appear as white text on a red background) but instead it would show an uninformative error screen with a blue background.
My phone stopped responding to the shake gesture in order to access the dev menu. (I wonder who thought that shaking was a good idea as opposed to a more conventional menu...)
Live recompiling stopped working.
Even when refreshing manually, changes to my code sometimes won't be applied. It looks like the expo app is working with an old, cached version of my code.
Expo is indeed running in production mode. Any pointers?
Since you mentioned your project is running in production mode you must change it to development mode, you can do this by clicking the toggle button on expo-cli's interface.
Alternatively if you're using Expo CLI just press p while your project is running to toggle between modes.
You can read more about Dev/production modes here.

Multiwindow playground sample in Android Automotive N

Iam trying to run Android multiwindow sample https://github.com/googlesamples/android-MultiWindowPlayground on Android Automotive N. Inorder to switch app into split screen mode, it is suggested to long-press the recents button. Though the resizableactivity attribute is set true in Android manifest, it doesnot works in split screen mode in Headunit.
Please let me know how can I enable split screen mode in Android N Automotive Headunit?
Hope I understand your question, but fairly sure the point of Android Auto is to provide 'safe' access to some phone features, multi-window kinda defeats that purpose so I'm guessing the force it off in the Android Auto app.

Orientationchange only works the first time

I'm working on my app for android built using jquerymobile and phonegap.
I'm testing orientationchange to verify that jquerymobile manages layout accordingly with lanscape or portrait mode. I don't want any custom action at orientationchange event, I only want that jquerymobile css (media settings) works for me and reset the items on the html5 page.
But It seems that orientationchange event is fired only first time. To see that, I create this simple js:
$(window).bind( 'orientationchange', function(e){
navigator.notification.alert(jQuery.event.special.orientationchange.orientation());});
And I discovered that the alert message is shown only at first orientation change event(from portrait to landscape). After this first message no other alert appear, so I argue that the event is not more fired.
I'm missing something, maybe on configuration or Android manifest? thank you very much in advance.
I was seeing this happen in an AVD I created for 2.3.3 (Android). As a test I setup a new AVD (2.2) and this issue did not happen in the new AVD. Also, I deployed app to my physical phone (2.3.4) and tested, issue did not happen on the phone either.
I recreated the AVD in question and used the Google API 10, instead of Android 2.3.3. Issue happened under the google AVD as well. So there is either a bug in the 2.3.3 AVD or within Android 2.3.3 itself.
Hope this information is useful.

Android: launching flash app as a screensaver

i am new to android development and had question regarding custom screen saver.
The requirement is for a tablet which will always be plugged in so battery life wouldn't be
an issue. The required app should behave as a screensaver in that during inactivity, the tablet should launch this app which contains a flash file that displays a series of images and video. When activity is resumed then the tablet takes the user back to the program they were using.
Can this be done via an app without requiring any hacks?
cheers,
abhi
There is no concept of a "screensaver" in Android.
There is the lock screen, which can be modified via custom firmware, though AFAIK it is implemented in Java as part of the OS and therefore could not be replaced via a Flash APK.

Android Camera really choppy on Samsung Galaxy Tab with AIR Application

I'm building an AIR Application for Android devices and I'm using the Camera.
I found a really strange behaviour. When I first start the app and the camera initializes, I get around 1fps(!).
If I then press the home Button and klick on the app icon again, it's all good and I get the full framerate.
This same behaviour also occurs within the Tour de Mobile Flex app when I start the Raw Camera part.
As soon as I press home and then return to the app, everythings fine...
Anybody out there having the same issues and maybe a soulution?
Help is highly apreciated.
This is a bug in Adobe AIR that is fixed and soon to be released.
http://forums.adobe.com/message/3357078#3357078
Set <renderMode>direct</renderMode> in your app.xml. This configuration solve my problem

Categories

Resources