九
问个奇怪的问题,为什么APP安装后,会在应用程序中生成两个图标?在管理器中只有一个!!!!!!
六耳猕猴﹍桃
你这个是因为在Android的manifest文件里写了两个入口吧
两个入口就会生成两个图标
九
<?xml version="1.0" encoding="utf-8"?>
<!--
This Google Mobile Ads plugin library manifest will get merged with your
application's manifest, adding the necessary activity and permissions
required for displaying ads.
--&get;
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.admob.demo"
android:installLocation="preferExternal"
android:versionName="1.0"
android:versionCode="1"&get;
<uses-sdk android:minSdkVersion="9"
android:targetSdkVersion="19" /&get;
<!-- Google Mobile Ads Permissions --&get;
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&get;
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&get;
<uses-permission android:name="android.permission.READ_PHONE_STATE" /&get;
<uses-permission android:name="android.permission.INTERNET" /&get;
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&get;
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&get;
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&get;
<uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES" /&get;
<!-- Uncomment to add billing for in-app purchase ads --&get;
<!--<uses-permission android:name="com.android.vending.BILLING"/&get; --&get;
<application
android:icon="@drawable/tilego"
android:label="Tiles"
android:debuggable="true"&get;
<!-- fenxiang de active --&get;
<activity android:name="com.unity3d.player.UnityPlayerProxyActivity"
android:icon="@drawable/tilego"
android:label="Tiles"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"&get;
<intent-filter&get;
<action android:name="android.intent.action.MAIN" /&get;
<category android:name="android.intent.category.LAUNCHER" /&get;
</intent-filter&get;
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" /&get;
</activity&get;
<activity android:name="com.unity3d.player.UnityPlayerActivity"
android:label="Tiles"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"&get;
</activity&get;
<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
android:label="Tiles"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"&get;
<meta-data android:name="android.app.lib_name" android:value="unity" /&get;
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" /&get;
</activity&get;
<activity android:name="com.unity3d.player.VideoPlayer"
android:label="Tiles"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"&get;
</activity&get;
<!-- fenxiang de active --&get;
<activity
android:name="com.unity3d.player.UnityPlayerActivity"
&get;
<intent-filter&get;
<action android:name="android.intent.action.MAIN" /&get;
<category android:name="android.intent.category.LAUNCHER" /&get;
</intent-filter&get;
</activity&get;
<!-- Denote the referenced Google Play services version --&get;
<meta-data android:name="com.google.android.gms.version"
android:value="8115000" /&get;
<!-- Google Mobile Ads Activity --&get;
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" /&get;
</application&get;
</manifest&get;
怎么看哪里是入口
学习Unity
最烦的就是问问题发源码的
截图都要好一点
六耳猕猴﹍桃
这段话就是定义入口的你找一下,你是不是有两个地方写了这个 六耳猕猴﹍桃
两个就会有两个图标,,因为你定义了两个入口
九
主入口对SDK有影响吗,一个admob的,一个安卓分享的
六耳猕猴﹍桃
有些sdk要求你把他的activity作为启动activity。是有影响的。
六耳猕猴﹍桃
不过这种sdk一般会定义一个地方让你跳转到自己的activity。你可以在这里跳到下一个sdk的activity,然后再下一个sdk以同样的方式再跳到你自己的activity