andy-roger / unityandroidnativefileopener Goto Github PK
View Code? Open in Web Editor NEWOpen files from a Unity app natively on an Android device.
Open files from a Unity app natively on an Android device.
Is it possible to open a directory using androids default file explorer?
TIA
hi,
I am trying to open csv file in android devices. but it's cant open. hear is my code
void OpenCSV()
{
AndroidContentOpenerWrapper.OpenContent(Application.persistentDataPath + "/CSV file/" + FileName+ ".csv");
}
please help me to solve it.
thanks in advance.
AndroidJavaException: java.lang.ClassNotFoundException: com.cartoontexas.andyr.unityplugin.ContentOpener
01-15 14:08:15.502 22334 22456 E Unity : java.lang.ClassNotFoundException: com.cartoontexas.andyr.unityplugin.ContentOpener
01-15 14:08:15.502 22334 22456 E Unity : at java.lang.Class.classForName(Native Method)
01-15 14:08:15.502 22334 22456 E Unity : at java.lang.Class.forName(Class.java:453)
01-15 14:08:15.502 22334 22456 E Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
01-15 14:08:15.502 22334 22456 E Unity : at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
01-15 14:08:15.502 22334 22456 E Unity : at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
01-15 14:08:15.502 22334 22456 E Unity : at android.os.Handler.dispatchMessage(Handler.java:102)
01-15 14:08:15.502 22334 22456 E Unity : at android.os.Looper.loop(Looper.java:201)
01-15 14:08:15.502 22334 22456 E Unity : at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
01-15 14:08:15.502 22334 22456 E Unity : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.cartoontexas.andyr.unityplugin.ContentOpener" on path: DexPathList[[zip file "/data/app/com.litifer.android.myhoggy-tNHDWzR8jwFfzWsx_qvF0g==/base.apk"],nativeLibraryDirectories=[/data/app/com.litifer.android.myhoggy-tNHDWzR8jwFfzWsx_qvF0g==/lib/arm, /data/app/com.litifer.android.myhoggy-tNHDWzR8jwFfzWsx_qvF0g==/ba
I could do it with an image using this code:
void LoadImage()
{
string filename = "vuzix.png";
string path = Path.Combine(Application.persistentDataPath, filename);
LoadContent(path);
}
void LoadContent(string path)
{
AndroidContentOpenerWrapper.OpenContent(path); //path must be path/to/file.filetype
}
But whenever i try with a pdf, it says the file is corrupted and i can not open it in my android device
UPDATE:
I realized this only happens when i try to open a powerpoint converted to pdf file
I tried using a sample pdf file and it worked well
What could be the issue and possible solution?
Do we need to recompile the java source and change an authority name or something for each app we want to use this in for them all to be simultaneously installed on a device? I am getting this when trying to install a second app on a device that already has an app installed using this asset.
INSTALL_FAILED_CONFLICTING_PROVIDER . Can't install because provider name com.company.product.fileprovider is already used in [first app]
Not sure where to change "com.company.product.fileprovider"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.