#Hello here I need some help with Android

1 messages · Page 1 of 1 (latest)

undone carbon
#

I have this code:

#
 string catalogName;
        string dataPath = Application.streamingAssetsPath;
        string localCatalogName = $"{dataPath}/lm_assets/{platform}/catalog__.json";
        bool localCatalogExists = File.Exists(localCatalogName);
        if (localCatalogExists == false)
        {
            LmLogSystem.Info(LmLogChannel.Network, $"DID NOT find local catalog '{localCatalogName}'");
        }
#

with LocalCatalogName = jar:file:///data/app/com.CoreLoop.lm_client-KmrChmrPY9fxr971AJRgUQ==/base.apk!/assets/lm_assets/Android/catalog__.json

#

now I am new to androdi and I don't recognise the hash after lm_client nor the base.apk! folder but my guess is that it's standard stuff

#

if I open the apk file as a zip, the file is found at:

#

so ander assets/lm_assets/Android/catalog__.json the file is actually present

#

but the test fails and tells me is not

#

any clue?

drifting blaze
#

I think you have to use WWW (or webrequest) to use streamingassets etc on android, since the apk is compressed @undone carbon

Not sure if this helps, but might be worth a look into. Android isn't the same as PC development (sadly)