Forums

OverviewV-Play 2 Support (Qt 5) › android window

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #13062

    Bas

    hi

    I am testing an existing project on android tablet device but when i run an app, a window is first shown, then the actual app.

    is this standard behaviour? or am i missing something?

    with a newly created project i have no such behaviour.

     

    #13063

    Günther
    V-Play Team

    Hi Bas!

    What kind of “window” do you see then with your old project? Is it an app or games application?

    Best,
    Günther

    • This reply was modified 2 years, 7 months ago by  GT.
    #13065

    Bas

    hi Günther,

    i see a black screen with a blue bar on top with the title.

    it is a game.

     

    here the manifest

    <?xml version=”1.0″?>

    <manifest package="com.lentfert.FacebookShareTest" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
        <application android:hardwareAccelerated="true" android:name="net.vplay.helper.VPlayApplication" android:label="-- %%INSERT_APP_NAME%% --">
            <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="net.vplay.helper.VPlayActivity" android:label="-- %%INSERT_APP_NAME%% --" android:screenOrientation="unspecified" android:launchMode="singleTop">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN"/>
                    <category android:name="android.intent.category.LAUNCHER"/>
                </intent-filter>
                <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
                <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
                <meta-data android:name="android.app.repository" android:value="default"/>
                <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
                <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
                <!-- Deploy Qt libs as part of package -->
                <meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
                <meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
                <meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
                <!-- Run with local libs -->
                <meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
                <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
                <meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/>
                <meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
                <meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
                <!--  Messages maps -->
                <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
                <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
                <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
                <!--  Messages maps -->
    
    
                <!-- Splash screen -->
                <!--
                <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/>
                -->
                <!-- Splash screen -->
    
    
                <!-- Background running -->
                <!-- Warning: changing this value to true may cause unexpected crashes if the
                              application still try to draw after
                              "applicationStateChanged(Qt::ApplicationSuspended)"
                              signal is sent! -->
                <meta-data android:name="android.app.background_running" android:value="false"/>
                <!-- Background running -->
            </activity>
            <activity android:name="com.facebook.LoginActivity" android:label="-- %%INSERT_APP_NAME%% --">
                <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
            </activity>
            <activity android:name="net.vplay.plugins.facebook.FriendPickerActivity" android:label="-- %%INSERT_APP_NAME%% --">
                <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
            </activity>
        </application>
        <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="22"/>
        <supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
    
    
        <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
             Remove the comment if you do not require these default permissions. -->
        <!-- %%INSERT_PERMISSIONS -->
        <uses-permission android:name="android.permission.INTERNET"/>
    
    
        <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.
             Remove the comment if you do not require these default features. -->
        <!-- %%INSERT_FEATURES -->
    
    
    </manifest>
    
        
    #13066

    Bas

    i have this with all apps for android using facebook and analytics plugins.

    black screen with blue title bar and then the splash screen kicks in after 1 second.

    #13067

    Bas

    i  build the game on a different platform (windows) now and see if i still have the same problem.

    maybe some android files are corrupt on my mac.

    #13068

    Günther
    V-Play Team

    Hi Bas!

    I your AndroidManifest misses the setting:
    android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”

    for the <application>.

     

    Best,
    Günther

     

    #13069

    Bas

    thanx Günther,

    that was it, thanx (weird that it disappeared from the manifest :( )

    is it also normal behaviour that the screen turns black when facebook login is prompted over the app?

    #13070

    Günther
    V-Play Team

    Do you have a screenshot of that window?
    I guess you are referring to Facebook login window that shows when the Facebook app is not installed?

    #13071

    Bas
    #13072

    Günther
    V-Play Team

    Yes,  that’s how the login window looks if no Facebook app is installed (it is a WebView that handles the login).
    See here for description of the Facebook login.

Viewing 10 posts - 1 through 10 (of 10 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support