Including Icons/Background Images with APK - android

I'm wanting to include some wallpapers and custom icons with my next application update. What's the best way to go about that in Android? I've been doing some searching but I haven't seen anything satisfactory.
Thanks.

Just change the icon and the background and update the app. Or do you mean something else?

I know if your app moves/copies the files to the user's SD card then the media scanner should pick it up and include in the Gallery app. Which can then be used as a wallpaper. But as for using them directly from your app, I'm not sure.
Might be good to not include them in the app directly, but allow the user to choose to download them from within your app (if you have a server or external site you can host them on). That would keep the size of your app small, and allow you to download them directly to the user's SD card.

Related

Can we automatically delete images on a device with Flutter?

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

Create "virtual files" in android. Possible?

I want to add a functionality to my app to treat a user's uploaded images online as if they were files on their phone, so all their existing apps can find their images without needing to download them all. Basically tricking the phone into thinking its local instead of online. Any thoughts and how to go about this?

Distribute air apps without recompiling

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.

Android where to store files

Where should I store files for my app? My app is a home automation app for advanced users that will require them to upload images (floor plans, custom dashboards, etc) and xml configuration files to the phone. Where should I store them?
That depends on how portable you want the files. Do you want the user to user them elsewhere (SDCard)? Do you want to back them up (Server)? Should the user never really care where they are (Device)? This really depends on how you want to use your files (or how the user may want to use your files).
Further, another thing to take into consideration it the file size. If they are huge, then the SDCard is the obvious choice.

Need iOS App to Launch Picker Only if FileType is Present

On Android I understand an app can ingest an image file from the user's Downloads folder, and then use that image to direct content inside the app. Amazon MP3 Cloud Player is good example.
I understand that on iOS the Saved Photos folder can be accessed by apps as well, using the UIImagePickerController Class Reference. I understand that I can limit which media assets can be browsed, just video or just photos, but can I tell the app to only launch the media asset picker for the user ONLY if an exact-match to photo file extension is made in the first-place?
In other words: IF in the Saved Photos folder there is a .ONE or a .TWO file present, then launch the media browser, and only show .ONE or .TWO files, if not, do not launch the media browser.
I want to be able to use a custom file extension -not the standard PNG, JPG, etc...
Ultimately my goal is to use this custom image file as a kind of token that tells the app the user has done something in the browser to acquire the image file, and therefore is entitled to a special experience in the app.
What you want is not a UIImagePicker, because you need to enumerate user photos programmatically. Have a look at ALAssetsLibrary, with which you can enumerate ALAssets, which are proxy objects for saved photos (and videos).
Upon further reading: I don't think your custom extension idea would work. And it shouldn't, because you're exposing implementation details to the user by putting certain specialized files into a content library where they don't belong (which probably won't work). Do not misuse OS facilities like that. It will only get your app rejected from the app store (if it even works), create more headaches in implementation, and create very poor user experience. While this might not be enforced on Android, it is a bad idea even there, but on iOS, you won't even be able to release your app to the public.
See this question for how to declare your app to open specific document types (which means that when the user downloads a .yourSpecialFileType file in Safari, it will launch your app and hand the file over to you).

Categories

Resources