Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Evangel · May 23, 2013 at 06:15 AM · androideclipse

About Unity4.0 Creat Eclipse Project

Hello everyone! I would like to ask a question:since unity4.0,We can export android as a Eclipse Project!Like this:alt text

Yes!We can see three .java files, They are all Automatic generation.

My question:

1.What are their uses?can delete? 2.Among DemoProxyActivity.java is extends Activity and it's "android.intent.action.MAIN". But if i want to call android API, I must make class extends UnityPlayerActivity and set "android.intent.action.MAIN" too.

so They are in conflict! 3.I try to Set DemoProxyActivity.java extends UnityPlayerActivity,But not used! so,How should I do?

PS:I am Chinese,English is not good,Thank you!!Please help me!

qq图片20130524120207.jpg (31.4 kB)
Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Tomer-Barkan · May 23, 2013 at 08:33 AM 0
Share

You cannot delete these files!

This are the android files that surround the unity project. They are launched when you launch your application, and they are in charge of launching the unity player to run your game.

avatar image Evangel Tomer-Barkan · May 24, 2013 at 01:39 AM 0
Share

@tbkn: Actually i delete all these files,it can be run Normal as before

avatar image Tomer-Barkan Tomer-Barkan · May 24, 2013 at 05:23 AM 0
Share

Doesn't make sense... you can see in the android manifest file that these are the activities that are launched when your app starts. It shouldn't work if they're not there. $$anonymous$$aybe they were auto-generated again when you compiled and installed the app?

avatar image Evangel Tomer-Barkan · May 24, 2013 at 06:18 AM 0
Share

@tbkn:This is the: 1.I delete these three files,Of course,in Android$$anonymous$$anifest.xml i have Remove all of them. 2.I Create a new class named "Hello.java" extends UnityPlayerActivity and in Android$$anonymous$$anifest.xml, and I set it as "android.intent.action.$$anonymous$$AIN". 3.Generate AP$$anonymous$$ and run,Success!I tested, i am sure!

code:Hello.java:

     package com.EVA.Demo;
     import android.os.Bundle;
     import com.unity3d.player.UnityPlayerActivity;
     
     public class Hello extends UnityPlayerActivity
     {
         protected void onCreate (Bundle savedInstanceState)
         {
             super.onCreate(savedInstanceState);
     
         }
     }

Android$$anonymous$$anifest.xml:

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" package="com.EVA.Demo" android:versionName="1.0" android:versionCode="1">
   <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
   <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
     <activity android:name="com.EVA.Demo.Hello" android:launch$$anonymous$$ode="singleTask" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|ui$$anonymous$$ode|touchscreen" android:screenOrientation="reverseLandscape">
       <intent-filter>
         <action android:name="android.intent.action.$$anonymous$$AIN" />
         <category android:name="android.intent.category.LAUNCHER" />
       </intent-filter>
     </activity>
   </application>
   <uses-feature android:glEsVersion="0x00020000" />
   <uses-permission android:name="android.permission.INTERNET" />
   <uses-feature android:name="android.hardware.touchscreen" />
   <uses-feature android:name="android.hardware.touchscreen.mul$$anonymous$$ch" android:required="false" />
   <uses-feature android:name="android.hardware.touchscreen.mul$$anonymous$$ch.distinct" android:required="false" />
   <uses-sdk android:$$anonymous$$SdkVersion="15" android:targetSdkVersion="15" />
 </manifest>


$$anonymous$$yproject: alt text

qq图片20130525142045.jpg (16.3 kB)
Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

null texture passed to GUI.DrawTexture 0 Answers

Extracting Dataset (AR) from OBB (Expansion Files) 1 Answer

GUIText Alpha transparency not working on Android Table? 0 Answers

When exporting android project to an eclipse project the music doesn't export 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges