Questions tagged [android-assetmanager]

31 questions
0
votes
1 answer

Android Failed to Show PDF using AssetManager

I want to open a PDF from the assets folder from my activity button action and I used the below codes but nothing happens. public class AssetsProvider extends ContentProvider { @Override public AssetFileDescriptor openAssetFile(Uri uri,…
0
votes
1 answer

File Access problem from asset pack in android from the testing app downloaded from Playstore?

I have a question about the file accessing process from the asset folder of android which uses play asset delivery. I have done setup with the play asset delivery for deploying my android application as the size of the app is more than 150Mb. I…
0
votes
1 answer

how to load a tflite model in Java using AssetManager and Play Asset Delivery?

I have a .tflite model file that is over 200MB in size. As it increases the 150MB max size for an apk I had to bundle in in an app bundle using Play Asset Delivery (PAD). I followed the guide mentioned here: and was able to build my .aab file. I…
StuckInPhDNoMore
  • 2,507
  • 4
  • 41
  • 73
0
votes
1 answer

Get list of mp3 files from assets folder and save in shared preference

I have an app in which I have some mp3 sounds in the assets folder. At the start of the app, I am getting the list of files and copy all files from assets to getExternalFilesDir(). Invoke the media scanner for every file and only if the media…
0
votes
1 answer

Android Native Activity AssetManager VS 2019 Not Working

I am trying to load an image and a text file using the AAssetManager in the Android Native Activity in VS 2019. I've tried every combination of paths I could think of to get AAssetManager_openDir or AAssetManager_open to give me a file. Solutions…
0
votes
1 answer

What's wrong with "no suitable method found for load"?

Sound doesn't play when running my app in android, so suggested workarounds include AssetManager to preload files: I want to preload all files when class is initialized and play it later in a sub-function. The manager should be globally used in the…
André
  • 142
  • 1
  • 15
0
votes
1 answer

Android Asset Manager unable to load wav file assets from the assets directory

I am have a few wav files that I want to load with the help of Android's asset manager. Unfortunately, everytime I try to do so, I get the following error java.io.FileNotFoundException: audio-file.wav not found I would like to add the following…
Krish
  • 63
  • 6
0
votes
1 answer

What is the equivalent of target_link_libraries in Android.mk

I am trying to compile an android project using Android.mk and need to include the following libraries: native-audio-jni android log OpenSLES. A similar project (https://github.com/googlesamples/android-ndk/tree/master/native-audio), which includes…
0
votes
1 answer

AssetManager vs Internal Storage: How can I store cross-platform config.json file in Xamarin Android that I want to edit later?

I want to be able to pre-configure my Android app to include a json file that is read/writeable, that is usable on other platforms as well (iOS, UWP). I started looking at AssetManager but found that I could only read the file, not edit it…
0
votes
1 answer

Opening a textFile with the AssetManager and assigning it to a InputStream

Basically I think it could be a project structure issue as I'm unsure of where to put the textfile, I've made a directory assets and placed a folder called texts in that and in that have placed the myawesometext.txt. The error I get is the exception…
beni
  • 141
  • 1
  • 10
0
votes
1 answer

Android/Java - IO Exception - can't seem to load HTML asset

CalendarParse parser = new CalendarParse(); parser.countSundays(this); public class CalendarParse { String calString = ""; Document cal = null; InputStream is = null; public void…
PatchesDK
  • 102
  • 2
  • 10
0
votes
0 answers

Splash Screen And Activity with asset manager

My app contains a lot of assets that i am using with AssetManager. Currently my app is taking too long to start up. How can i solve this? or is there any way to show a Splash Screen till the assets are loaded and the next activity is loaded?
0
votes
1 answer

Countdown Timer on asset folder image

I would like to ask that how to implement countdown timer to load all the image on assets folder and display it according to the countdown time that had been set. For example, I have 5 images in my asset folder and I put them in the array. Every 5…
0
votes
1 answer

i want to use assetmanager for an image

MyGdxGame.java public void print(){ manager=new AssetManager(); manager.load("selectlevel.png",Texture.class); manager.finishLoading(); } select level screen public void image(){ Image…
Grinning Trout
  • 109
  • 2
  • 13
0
votes
2 answers

how to check a html file exist in assets folder

Assets |-man | |-myhtml.html | |-women | |-myhtml.html this is my folder structure some times i need to check the file exist in men some times i need to check the file exist in women what can i do. try { fileExist =…
Yadu Mohan
  • 39
  • 3