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"

Ue4 has not Gameactivity.java

I downloaded ue4 4.12 but I haven't the directory C:\Epic Games\Epic Games\4.12\Engine\Build\Android\Java\src\com\epicgames\ue. My epicgames folder is empty! I know that probably that is a easy problem, but I need help. I need to modify GameActivity.java but I haven't the folder that contains GameActivity.java.

Product Version: UE 4.12
Tags:
more ▼

asked Aug 01 '16 at 02:34 AM in Using UE4

avatar image

Dr.Joek
3 1 2 3

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

1 answer: sort voted first

This post has the basics you need to get started modifying your GameActivity.java... haven't seen a way to edit it directly.

You'll add a MyProject_Additions.xml file and add instructions to modify the game activity using UnrealPluginLanguage (use of which is documented in the UnrealPluginLanguage.cs file as a humongous block comment.)

Something like:

   <gameActivityClassAdditions>
     <insert>
     public String AndroidThunkJava_ReadIntentData()
     {
       Intent incoming = getIntent();
       
       if(incoming == null) return "";
 
       return incoming.getDataString();
     }
     </insert>
   </gameActivityClassAdditions>

You'll then have to add hooks in AndroidJNI to call your Java thunk. I'm currently right this second looking for a way to modify an existing function in GameActivity.java, but I think I'll end up having to change the AndroidPlatform C++ to just hook into a custom function. (I want to override LaunchURL)

more ▼

answered Jan 26 '18 at 07:20 PM

avatar image

jonathan.madden
169 8 8 14

(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