I have been trying to find a way to have a preference option where you can select a zip file from a file browser. How can I implement that in an app?
I also want to use the openrecoveryscript to flash that zip using TWRP recovery.
I can't seem to find any clear and definite answer.
I am also assuming my app will need root privileges to do all this. How do I implement that?
Any help would be appreciated. Thanks.
Related
I'm currently working on my android app that can zip the selected files in a listview and later can be upload in google drive for backup purposes. one the objective of my app is to put a password in the zip file that will be created, so that only authorize person can open it.
Is it possible to create a password-protected Zip file in android? I read some questions here that is related to my question just like this and it really got me confused. please enlighten me guys. I'm kinda new in this Android development. so if it is possible can you give me an example of how to do this, or is there a simple ways on how to do this?
thank you in advance! I really appreciate it.
I searched a lot on net to find a way to programmatically access .VCE file in android, but didn't find anything.
So is it possible to open .VCE file in android programmatically?
If yes then how can I open it. Please give any reference link if anybody knows.
I want to allow the user to choose a file in the explorer. (Specifically a PDF file only)
I searched a little, but I don't arrive to find something in the developer doc Android.
There is nothing to do it easily ?
For example, I want something like GMAIL uses when the user wants to join a file to a mail.
Thx for help,
Sadfully, you have to write an fileexplorer yourself or us an external fileexplorer (which isn't always present). As I've got the same problem the last days, this might help you: https://stackoverflow.com/a/25724970/3960095. It's a filebrowser in a Fragment. Feel free to use it :)
I am new to Android and Eclipse development, but not new to software development in general.
As my first real project, to get over the learning curve, I am modifying the SDK example soft keyboard.
I would like to add a macro capability. So far so good.
I have created a Permissions file to hold the macro string definitions and store that in the getApplicationInfo().dataDir – which turns out to be something like "/data/data/…". I can write then read back a single key-value pair – so I know the file exists. But, I can't see the file using Astro file manager or an FTP program looking at the Device. I have a feeling I may not have the access permissions to view the directory and I don't have root.
I would have liked to edit the macro definitions in this file on a PC and then save it back to the proper location – that would've been the easy solution. I think my other options are to create a simple key-value parameter by parameter editor or somehow use intents to open the file using some already available text file editor. I am guessing the second option will also encounter the file permissions problem.
A third option would be to store the file in some publicly available directory. I tried using a few "get DIR's", but they required a higher level SDK than I was using – I would like to stay compatible with version 6 and below.
Can somebody offer suggestions on how I can edit the key-value pairs or find a public place to create this file? And, where to look to find an example of how to implement the suggestion?
Thanks much,
Barry.
You can save any data in the SD card. Please read the SDK here, where there is a code snippet which may help you.
Try saving the file on your SD card.
http://androidgps.blogspot.com/2008/09/writing-to-sd-card-in-android.html
I am just starting with Android. And my boss told me to find some good way to lock/unlock a folder with password in Android. Does anybody know how to implement this.
Any help will be greatly appreciated.
Thank you
In Android you only have "one user", (you have root too, but here doesnt count), so you cant lock a folder, because its your self. But if you are use one file with permisson to write, other app cant write. And if you want make something that you only open with a pass, like a FoldeGuard, you can make a file, that have your information with some Formatter, and You are the only person that can open that file, you can too asociate the file with you app and open automatically your app. So the simple way for me is, make a BD, that there you have all information you need and put password in the bd, or make a file that you asociate your app, and later when you open a file and put the pass you extract all information for a folder... I hope that ideas help you :)