상세 컨텐츠

본문 제목

[AS] adobe air 안드로이드 개발 full screen 시 화면 system ui 보이게 하기 관련

ADOBE/ ActionScript

by AlrepondTech 2015. 7. 21. 16:43

본문

반응형
728x170

 

 

 

 

=================================

=================================

=================================

 

 

 

 

 

출처: https://forums.adobe.com/message/6620407#6620407

 

 

Hello guys,

 

I'm developing and Android application using the Flex 4.6 SDK version and AIR 4.0 SDK. The tasks I'm concerned about are starting after the os boots up and being a full screen application.

 

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 must add that I also compiled the app using the AIR 14 SDK but the problem was still there. 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.

 

I hope you can help me solve this anoying problem.

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Manifest

 

                        <fullScreen>false</fullScreen>

 

RootApp.mxml

                        /**

                         * Forces application to be in full-screen mode when it is added to stage.

                         */

                        protected function addedToStageHandler(event:Event):void

                        {

                                stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

                        }

 

This solved the problem. Sadly the splash screen isn't in full-screen mode so there is a very abrupt change when the app sets itself to full-screen. Even though it's not the more elegant solution and not what I would have wanted to use (solve the tag issue please), I'm sticking to this for now.

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Someone on the APACHE FLEX forum (link to discussion) adviced to remove the tag from the manifest and handle the issue inside my code. The result is the following:

 

Manifest

 

                        <fullScreen>false</fullScreen>

 

RootApp.mxml

                        /**

                         * Forces application to be in full-screen mode when it is added to stage.

                         */

                        protected function addedToStageHandler(event:Event):void

                        {

                                stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

                        }

 

This solved the problem. Sadly the splash screen isn't in full-screen mode so there is a very abrupt change when the app sets itself to full-screen. Even though it's not the more elegant solution and not what I would have wanted to use (solve the tag issue please), I'm sticking to this for now.

 

 

 

=================================

=================================

=================================

 

 

 

출처: https://forums.adobe.com/message/6621473

I'm building an AIR mobile app for android >= 4.0. I must be missing something or doing something wrong because no mater that i do, i can't get the fullscreen working rigth.

The tablet bottom bar always shows up. In current version the bar only shows 3 dots and have somekind of alpha but it doesn't allow me to draw above it or below it.

In my app description XML i have:

 

<initialWindow>

<aspectRatio>landscape</aspectRatio>

<renderMode>direct</renderMode>

<autoOrients>false</autoOrients>

<fullScreen>true</fullScreen>

</initialWindow>

 

And the bar is still there 

 

Tried set the fullscreen to false and then:

stage.fullScreenSourceRect = new Rectangle(0,0,1280,768);//Capabilities.screenResolutionX, Capabilities.screenResolutionY);

stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

No effect... the damn bar is still there.

 

Using FB 4.7, Air 3.8 and -swf-version=21

 

Any help or a pillow to put between the head and the wall would be very apreciated!!

 

Thanks

 
평균 사용자 등급: 평가 없음 (0 등급)
평균 사용자 등급
평가 없음
(0 등급)

     

     

    =================================

    =================================

    =================================

     

     

    반응형
    그리드형


    관련글 더보기

    댓글 영역