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"

FPlatformFileManager and Android

I've spent a week or two now working on tools for Android to make it easier to use with UE4. My main goal at present is to read all the files from the Movies directory on a given phone and add all files with the extension .mp4 to a playlist so that the UE4 media player can play them. To this end I've used a snippet of code helpfully provided by Rama to iterate through a given path via a DirectoryVisitor which filters the resulting files by extension and adds the paths of said extension to a playlist. This works as intended on Windows and in the editor. Based off the information provided about FPlatformManager I believed that same code would run on Android in the same way, and provided the path to the Movies directory via a bit of code written to work with the JNI that provided it. Currently this snippet of code does not work and compiles and runs with no errors on my android device.

Product Version: UE 4.16
Tags:
more ▼

asked Aug 03 '17 at 07:46 PM in C++ Programming

avatar image

ARMILLARY
1 1

avatar image ARMILLARY Aug 08 '17 at 07:06 PM

I'm no longer actively looking for an answer to this problem and have instead implemented a method to find paths to files via the JNI.

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

0 answers: sort voted first
Be the first one to answer this question
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