I developed an Android Package Manager (I know there are a lot on the play store...). With intent "android.settings.APPLICATION_DETAILS_SETTING" and its parameter "package:xxx" I am able to display android settings for that application.
But I would like to be able to open directly storage setting of it without displaying first screen in order to clear cache more easily without too much interaction.
Unfortunately, I didn't find any specific intent going to that "sub screen" in https://developer.android.com/reference/android/provider/Settings.html
Any idea ?
Thanks
Related
I am developing a data-logging app using Android Studio. I want to save a file that will appear on the user's home screen.
Is there a way to save/write a text file that will appear directly on the home screen of the phone, rather than in internal storage? I don't want to just create a shortcut—I actually want the file to be saved on the home screen.
Is this possible? If so, how can I do it?
This isn't possible. The Android home screen (also known as the launcher) is just an app like any other app. It doesn't correspond to any location on the filesystem where you could store files.
A user may have multiple home apps installed (though only one can be set as the active one) each with their own independent home layout. Some launcher apps don't even take the sort of traditional icon-centric approach to a home screen that you may be used to.
The only way to achieve this feature would be to do what you said you do not want to do: create a shortcut that opens the file.
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?
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.
I want to ask user to select a file to open from external storage and receive it's path. Preferably I'd like to avoid excesive coding and use some standard method (well known, system-provided intent or similar).
Said file is to be SpatiaLite db file (*.sqlite), so it won't show in Gallery.
Unfortunately there is no Android native file picker, but you can get an open-source one to add in your project, then modify it to fit your needs. Check out this SO question for a good start.
I would also suggest that Android file pickers have intents that you can feel free to use. Unfortunately if the user does not have the proper apps on their device, your intent will not succeed. If this happens, you can always direct the user to download the app. Alternatively, you can check if the file picking intent will succeed (see this advice), and use the standard file picker if so (many users have ASTRO, for example, which I think has an intent you can use), and you can fall back on something included in your app, this will make for a perhaps nicer end to end user experience across apps on their device.
How can I open a folder navagation in my Android apps. I dont want to use any third party app like AndExplorer or ASTRO.
I want a button in my app and when click on it,a particular folder may be ("/sdcard/mywebfolder") should upen and user then can browser its content.
Please help me to accomplish it.
Thanks
Parvendra
Well without the use of third party apps you are going to need to code a file explorer or at least a view to display a certain folder's contents.
You could always just let the user select the program for the browsing via an intent, but I could understand not wanting to do that. Only downside is it means more work and more coding.