zoukankan      html  css  js  c++  java
  • Cocos2d-x游戏中默认的AndroidManifest.xml的解析

    直接上代码说明: 

    <?xml version="1.0" encoding="utf-8"?

    > <!-- xmlns:android="http://schemas.android.com/apk/res/android" 命名空间 package="com.cocos2dx.TestJNI" 包名 android:versionCode="1" 版本号代号,内部使用,如程序内部版本号识别 android:versionName="1.0" 版本号名,对外发布。例如以下载app到手机时用户能够看见的版本号号 --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.cocos2dx.TestJNI" android:versionCode="1" android:versionName="1.0"> <!-- 配置sdk版本号和OpenGL版本号 --> <uses-sdk android:minSdkVersion="8"/> <uses-feature android:glEsVersion="0x00020000" /> <!-- 配置应用程序的名称和图标(res文件夹中读取) --> <application android:label="@string/app_name" android:icon="@drawable/icon"> <!-- 配置Cocos2d-x游戏的Activity --> <!-- android:name=".TestJNI" 默认就可以 android:label="@string/app_name" 默认就可以 android:screenOrientation="landscape" 设置横竖屏 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 设置显示主题 android:configChanges="orientation" 切屏时又一次调用各个生命周期。主要与横竖屏切换相关 --> <activity android:name=".TestJNI" android:label="@string/app_name" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:configChanges="orientation"> <!--注冊当前的Activity为默认启动的页面 --> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <!--屏幕支持 --> <supports-screens android:largeScreens="true" android:smallScreens="true" android:anyDensity="true" android:normalScreens="true"/> <!--配置权限,假设须要调用读写sd卡功能。则须要在这里注冊对应的权限 ,默认仅仅提供訪问网络权限 --> <uses-permission android:name="android.permission.INTERNET"/> </manifest>




  • 相关阅读:
    Kubernetes 集成研发笔记
    Rust 1.44.0 发布
    Rust 1.43.0 发布
    PAT 甲级 1108 Finding Average (20分)
    PAT 甲级 1107 Social Clusters (30分)(并查集)
    PAT 甲级 1106 Lowest Price in Supply Chain (25分) (bfs)
    PAT 甲级 1105 Spiral Matrix (25分)(螺旋矩阵,简单模拟)
    PAT 甲级 1104 Sum of Number Segments (20分)(有坑,int *int 可能会溢出)
    java 多线程 26 : 线程池
    OpenCV_Python —— (4)形态学操作
  • 原文地址:https://www.cnblogs.com/yxwkf/p/5336071.html
Copyright © 2011-2022 走看看