x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

4.9 custom Java class gets deleted by AutomationTool

I want to migrate a Project from Unreal Engine 4.7.6 to Version 4.9.

The project uses a modified GameActivity.java and an attached JNIContainer.java which handles Sensordata from Android API and pushes it via JNI to C++.

I put the modified GameActivity.java and my JINContainer.java in /Build/Android/src/com/epicgames/ue4/ but this does not work in Unreal Engine 4.9 anymore. The files get deleted and the log says

 MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: Cleaning up files based on template dir F:\Unreal Projects\GearVRNavigator 4.9\Build\Android\src\com\YourCompany\GearVRNavigator
 MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: Cleaning up file F:\Unreal Projects\GearVRNavigator 4.9\Build\Android\src\com\epicgames\ue4\GameActivity.java with path F:\Unreal Projects\GearVRNavigator 4.9\Build\Android\src\com\epicgames\ue4
 MainFrameActions: Packaging (Android (ETC2)): UnrealBuildTool: Cleaning up file F:\Unreal Projects\GearVRNavigator 4.9\Build\Android\src\com\epicgames\ue4\JNIContainer.java with path F:\Unreal Projects\GearVRNavigator 4.9\Build\Android\src\com\epicgames\ue4 

is there any other way to put modified and own Java files in my project?

Product Version: UE 4.9
Tags:
more ▼

asked Oct 20 '15 at 09:49 AM in Packaging & Deployment

avatar image

Ceron
21 1 3 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

New: A new Android plugin system is included in 4.10 and the GearVR plugin now uses it. Changes to the generated AndroidManifest.xml, proguard-project.xt, and GameActivity.java may be made during packaging along with staging files by adding an AndroidPlugin property in their build.cs to reference an XML file containing commands; see GearVR.build.cs and GearVR_APL.xml for an example. AndroidPluginLanguage.cs documents the commands available.

I now used the APL introduced in Unreal Engine 4.10 to put my own Java files in my project. Therefore i created a project plugin and declared an XML file.

more ▼

answered Dec 06 '15 at 11:22 AM

avatar image

Ceron
21 1 3 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question