Android Studio: How to download expansion files and upload to Google play - java

My app is finished and ready to upload! The problem is it's 432Mb. Google play says my app can't be over 100Mb and I should use an expansion file. I have a general idea of what that is, but feel free to break it down. What I need from you is steps on how to get my expansion files and upload it with my APK to Google play. I'm working with 5 mp3 files at 83MB each.

Related

Where do I add large amounts of resources to android project?

I am making my first app for android on android studio
I have to include a bunch of Gifs with my app to be displayed at different times
Gifs are total 500mb at the moment and I am going to have to add more soon, so there will be over 1 gig of gifs
At the moment i have dumped all my gifs into the res/drawable folder and i access them using R.id.gifname and display them in a gifImageView.
When i generate a signed APK with android studio the APK size is around 500mb which I've looked up and seen is far too large for google play
My question is whether or not I am taking the right approach to storing all this data in my application and whether or not an uploaded bundle will separate data in the res folder from the code in the APK. Is my approach alright or should I be placing all my gifs somewhere else in android studio?

Where to store local video for playback in Android Studio

I am making a simple video playback application in Android Studio. The video is approximately 600MB, and has an appropriate title (no spaces etc.). The video will be played back using VideoView.
Where should the video be saved? When it is placed in src/res/raw, (like other files I am using such as .wav for sound effects), it creates resource errors. Do I create a new folder called assets and store the videos there?
Noooo. You will not put that video in your apk. Will your app exceed 600mb size on playstore. See on google documentation.
Google Play currently requires that your APK file be no more than 100MB
Solution:
First try to compress your video, as you don't need high resolution video.
Put video on cloud (like Amazon s3 bucket).
Download this video file at run time in device from Amazon. And then play it anywhere from device storage.

Android - Play (mp3) from memory while streaming

Sorry about the weird title, I couldn't think of anything better.
In my Android App I want to stream an .mp3 file from an http server, which requires basic authentication. The task is to download the data and save it to the sdcard while playing. (Basicly streaming an mp3 from an http server but also saving the file)
I managed to download the mp3 from the server to the sdcard and to play the downloaded file with the Android MediaPlayer class. But playing only works right when the file is downloaded completely. I want my App to play WHILE downloading.
Can someone point out a good solution to this problem? I thought about using some third-party audio library to stream mp3 audio from memory but I couldn't find anything useful for my problem. Are there any good free librarys for Android that suit my needs?

Android include audio files with app package

I need to build a standalone audio/music player that should be able to play different audio files in 2 languages, english and russian as they are selected.
I thought that would be and easy task since I found a lot of examples for a player that read from an SDCARD.
The problem is that in this specific case I want to bring the audio files within the app and read them from a specific folder inside the project (ex. /audio/eng/ or /audio/rus/). Is there a way to collect the audio files from one of these folders that come along with the app and play them?
I have very small experience in android applications but I wish to solve the problem.
Kind regards,
Chris

Google Drives SDK and powerpoint

I am currently developing a small android app using the google drive SDK/google doc's embedded player which will play through power point files in a slide-show manner. Since there's no direct way I can tell when one powerpoint ends and another begins using the SDK, I was wondering if there was any way for me to retrieve the number of slides from a power point. With the amount of slides I'll be attempting to use the interval between slide changes to calculate the time taken for each powerpoint to play and then using that I can switch through files. I know .pptx files carry the amount of slides in it's metadata (not so sure about .ppt), but I'm not sure how to go on reading it. I've looked at google drive SDK's part to read metadata, but it seems rather limited to what you can actually read. I've looked at ApachePOI but it doesn't seem it's android compatible. Could anyone point me in the right direction with this?
Thanks :).
Sorry, this is not possible using the Google Drive SDK. You could easily download the pptx, unzip it (it is just zipped XML) and extract the required metadata.

Categories