MalformedURLException: unknown protocol: android
I was trying to adapt the code from this: 3D-model-viewer to my app because I want to insert some models from that kind to show human anatomy.
Everything seems fine, I first cloned and tried the original repository, it worked, so I started using that code.
After adapting and checking everything's okay and there are no errors marked, I ran the app, but there seems to be an issue. In the original code, the person saves a url like this:
I already changed the first part to my project:
so I don't think is that, algo I inserted some logs to verify the params aren't null.
The class in github is here: SceneLoader.java
So, when I get to that point, the Logcat says "unkown protocol: andorid".
Here's the complete logcat:
My repository is this, the app runs, there are no errors marked, just when selecting the 3rd option in my menu (it's the first screen) it crashes.
I kept the url line like that since I didn't know if the "android://" part was really important or not.
What do you think I should change or do you know what that error means? Do I need to import anything? I checked the original project (manifest, folder structure, gradle) and everything is similar, so I don't know where the mistake lies.
At the end, what I want is to access my assets folder to show some .obj files. And for the URL, I know that for links you should put a protocol, but I don't get why the protocol android isn't working for getting something in one of my project paths.
EDIT:
In my repository I made some changes to get the obj file, still, if someone could tell me (as the modification hadn't anything to do with the url) how to manage that about the android protocol. I checked this link: URL but I couldn't find much.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.