I hav been playing with new BridgeIt release. I can upload photos great, but does anybody know how to make the web application delete or remove the photo last taken? I know the user can go into photo and delete it manually but that is extra steps. PhoneGap has camera cleanup method which I liked. Is there something similar for bridge it?
Once the photo is uploaded, it's up to the web application to store or delete it. In the case of the BridgeIt demo, photos are uploaded and then automatically deleted after a period of time. In terms of device storage, the photos are captured to temporary files on the device and then uploaded, so will be cleaned up automatically by the operating system.
Related
I am creating an app, the purpose of the app is for you to import copies of photos from your phones gallery and associate info against the photo, such as a description, notes etc.
The info will be stored a a dB with paths to the files. Within the app the user can select different photos, where you'll be taken to a new screen that shows the photo and the saved info below it.
I am unsure what is the best place to store the images on the device. Internal storage or external public storage. The downside of internal would be all images are lost when the app is uninstalled, I'm no sure if a user would expect their photos to be deleted on uninstall? That could make a user very upset if they are important photos to them.
Android seem to be pushing you to store data with the apps own sandbox which is deleted on uninstall with Android 11.
Any advice or thoughts?
My Flutter app will be used to capture image then save to device. I want to remove all images in my device at a preset time. Is there a way to do that?
I think it not because if an app can delete all the images in device so it will not safe to use that app but I still hope it have because it needs for my app.
Things are changing with the recent releases of Android. Access to file system is not going to be same. but you are going to save the captured image in a folder where you have write access, there you can delete all the pictures without a problem
I am developing an app and I want the photos used in this app to be packed with the apk. The problem is that these photos are downloaded first time when I create the database. In the database I store only location (for example City: Name | Population | Photo Location). Everything works fine but the big problem is that I don't want these downloads to be made at install (it takes 10 minutes because there are a lot of photos), I want to have these photos available at install and be packed with the apk (like the database from assets).
I saw this: Saving and Reading Bitmaps/Images from Internal memory in Android
And currently my photos have been downloaded and are in the /data/user/MY_PACKAGE/imageDir. I don't have any permissions to copy the photos from this folder and if I uninstall the app the photos will be deleted too. And this is not good, I will download the photos with Java and place them manually somewhere, but I don't know where.
My question is where should the photos be placed to have access to them when using the app? And how can I make them download in that folder, without the need of moving the manually?
I'm developing an air image viewing application for Windows and Android that will allow some special users to import bitmaps to it. The user can click on a button, browse to a bitmap stored locally and then the app saves the image to the documentsDirectory.
Later on, other users (let's call then common users) will get this already compiled app and view the images imported by the special users.
My question is how can I make the app save the images within it without recompiling it?
Any ideas are welcome! Thank you all!
The only option I can think of, is to make a web server to store and load the images by those users. That's because the images will be stored in the documents or cache directory of the device which means that there is no automatic way to bring them to other devices.
You need a web server that the images will be uploaded and saved, and later on retrieved by other clients. It's called centralized assets system.
So, the thing is that i've downloaded a couple of photos and stored them in the data/data/project/username directory on the phone and I want to display them (without having to download them again first) every time the user with username is using my application.
So've created a linkedlist with the paths on the phone where these photos are stored and every time a new photo is downloaded I add it to this linked list. Every time the activity is created/stopped i deserialize/serilize the list containning these links.
The serilialization part seems to be working ok, since I checked and the deserialized list seems to contain proper links to the the photos on the phone, but nonetheless when I start this activity nothing appears on the screen (before that I was downloading the photos every time the user logs in and they were displayed properly and everything was fine) and there's no error bumping in logcat or whatsoever. I first thought I had some typo when adding the photo urls to the list, but i checked and everything seems fine. Any ideas? (think)
Flickr photos have unique IDs. When you save the photos on the internal storage of the device, use their ID's for names (for example 123456111.jpg). When the user reconnects to Flicker, just check each image in his gallery if it is already downloaded.
It is good to use getCacheDir() for your cache directory, because it is automatically managed by Android.