Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
wdlc_mjb_unity
Commits
6f603512
Commit
6f603512
authored
Jul 01, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改Android 启动Activity
parent
ab972da9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
5 deletions
+75
-5
AndroidManifest.xml
Assets/Plugins/Android/AndroidManifest.xml
+10
-4
LaunchActivity.java
Assets/Plugins/Android/LaunchActivity.java
+16
-0
LaunchActivity.java.meta
Assets/Plugins/Android/LaunchActivity.java.meta
+32
-0
activity_launch.xml
Assets/Plugins/Android/res/layout/activity_launch.xml
+9
-0
activity_launch.xml.meta
Assets/Plugins/Android/res/layout/activity_launch.xml.meta
+7
-0
PackageManagerSettings.asset
ProjectSettings/PackageManagerSettings.asset
+1
-1
No files found.
Assets/Plugins/Android/AndroidManifest.xml
View file @
6f603512
...
...
@@ -24,15 +24,21 @@
android:allowBackup=
"true"
android:supportsRtl=
"true"
>
<uses-library
android:name=
"org.apache.http.legacy"
android:required=
"false"
/>
<activity
android:name=
".LaunchActivity"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<activity
android:name=
"com.unity3d.player.UnityPlayerActivity"
android:label=
"@string/app_name"
android:launchMode=
"standard"
android:hardwareAccelerated=
"true"
android:configChanges=
"fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
<meta-data
android:name=
"android.notch_support"
android:value=
"true"
/>
</activity>
<!-- BlackBox 请在下面配置您的partnercode-->
...
...
Assets/Plugins/Android/LaunchActivity.java
0 → 100644
View file @
6f603512
package
com
.
unity3d
.
player
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.os.Bundle
;
public
class
LaunchActivity
extends
Activity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_launch
);
startActivity
(
new
Intent
(
this
,
UnityPlayerActivity
.
class
));
finish
();
}
}
\ No newline at end of file
Assets/Plugins/Android/LaunchActivity.java.meta
0 → 100644
View file @
6f603512
fileFormatVersion: 2
guid: 8b698631a59f1ba42a14679fb093de10
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
Assets/Plugins/Android/res/layout/activity_launch.xml
0 → 100644
View file @
6f603512
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".LaunchActivity"
>
</FrameLayout>
\ No newline at end of file
Assets/Plugins/Android/res/layout/activity_launch.xml.meta
0 → 100644
View file @
6f603512
fileFormatVersion: 2
guid: e5327276eae929e418d01401c22d81c3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
ProjectSettings/PackageManagerSettings.asset
View file @
6f603512
...
...
@@ -17,7 +17,7 @@ MonoBehaviour:
m_Registries
:
-
m_Id
:
main
m_Name
:
m_Url
:
https://packages.unity.c
om
m_Url
:
https://packages.unity.c
n
m_Scopes
:
[]
m_IsDefault
:
1
m_UserSelectedRegistryName
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment