nikita36078 / J2ME-Loader

A J2ME emulator for Android.
Apache License 2.0
1.72k stars 195 forks source link

FolderPlayer_mod MIDlet not working (missing external SD support) #771

Closed nofishonfriday closed 3 years ago

nofishonfriday commented 3 years ago

Emulator version: 1.6.9-play

MIDlet version: v1.3.0

resolution: 240x320

Device: Galaxy S5

Android version: 10

Description of the issue: Hi, I'm the developer of FolderPlayer_mod2, a J2ME based audio player. When running it via J2ME-Loader, when trying to play an audiofile (mp3) I get the error message "Error reading parent dir". I suppose J2ME-Loader is mainly targeted at games but if this midlet could be made to run I'd be very happy as I used it so long on my old Nokia phone. :) The MIDlet (.jad/.jar) is available in the releases section. It's not open source but I could provide you the source code privately if it helps (and I'm happy to answer any questions regarding it).

Thanks.

stevenfelix505 commented 3 years ago

Can you try this MIDlet below? X-plore.jar

nikita36078 commented 3 years ago

Just tried it and it works fine. What is the path to music file/its name? Maybe there's something specific in it.

nofishonfriday commented 3 years ago

Thanks for checking and giving me a hint. :) At first I tried putting audiofiles in the "Music" folder that already existed on my Galaxy s5. Playing from there didn't work for some reason and gave above mentioned error message. It works fine indeed creating my own folder and play audio files from there, yay.

Now one problem still exists though: I can't see/access my external storage (microSD card) in FolderPlayer. On startup I see only C: drive, while on my old Nokia I saw C: and F:(?) drive (my SD card). Any idea how to solve this by chance? (edit: External storage is accessable via "Files" on Android, i.e. it's there/accessable in principle.)

stevenfelix505 commented 3 years ago

@nofishonfriday FUCK YOU BITCH! 🖕🖕🖕👎👎👎

nikita36078 commented 3 years ago

@stevenfelix505 No idea what it was, but I have to block you.

nikita36078 commented 3 years ago

I tested the app through Samsung Remote Test Lab on Galaxy S5 (6.0) and Galaxy Note 20 (10.0) and couldn't reproduce the Music folder issue. The external sd support is mentioned here - #321.

woesss commented 3 years ago

I get the error message "Error reading parent dir". @nofishonfriday, try the latest dev build - i think this issue is already solved

nofishonfriday commented 3 years ago

@woesss, @nikita36078 Didn't get the "Error reading parent dir" with the dev build so far. Thanks for the heads up. Hope it'll make it into official build soon so I can install via Play Store. :)

I think we can close this issue as the only thing remaining is the external SD card support but that's already an existing issue. Thanks again.

nofishonfriday commented 3 years ago

Just to add regarding external SD support: In case of FolderPlayer_mod, it calls J2ME API FileSystemRegistry.listRoots().

woesss commented 3 years ago

The problem is that Android initially does not have an API for obtaining mount points for storage devices and they are different for different devices. In FS, they are presented as regular folders and are located where the manufacturer wants. And for J2ME phones from different manufacturers, they also differed. As a result, it is very difficult to bring all this to a common denominator.

nofishonfriday commented 3 years ago

I'm quite fluent with the J2ME API, still developing the FolderPlayer_mod occassionally (seems I'm the only one still using a Java phone lol) but have no idea about Android API currently (maybe looking into it at some point), so this is interesting info, thanks.