I am making and app on android that takes pictures using your camera, I then want to save this image to S3, but I am not sure how to do this.
Taking picture on Android: here, here
Uploading file to Amazon S3: here
Edited: seems that the easiest way to upload to Amazon S3 is JetS3t. It needs a little tweak to work on Android.
There is now an Amazon-supported Android SDK: http://aws.amazon.com/sdkforandroid/ . It's only been out since the end of 2010, but it seems to work well - it allowed me to upload a photo to S3 with 4 lines of code.
Related
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.
I'm building an android app in which users upload videos. I want to compress these videos. Can anybody refer me to a relevant code(or any other ways to do it in android)?
I haven't found java code implementation for MPEG compression.
THANKS!
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?
I'm running a Play Framework 2 web app on Heroku, and I need to create thumbnails when users upload images, before saving them to the Amazon s3 cloud. What is the best way to do this?
Note: I am already saving images to s3. I just need to know how to create the thumbnails first.
Ended up using http://www.blitline.com/. It's a cloud based image processor, and they have a good free plan and reasonable prices after that. They even store my images in s3 for me after they are processed.
I am still quite new to Android development. I'm trying to take a photo using the camera and save it to the devices storage. The app was crashing and after debugging I realised it's because the devices external storage is not mounted. How do I handle this? Can I mount the storage or is my app just unable to store data on this particular device?
Thanks
Update:
There was an answer chosen to this question but it seems to have been deleted... It linked me to these docs: http://developer.android.com/reference/android/os/Environment.html
Make sure you are using Environment.getExternalStorageDirectory() and not hard coded strings.
Some systems use /sdcard and some /mnt/sdcard or even /mnt/sdcard2.. Since you didn't post any code I cannot be sure if this solves the issue.
http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory%28%29