I want to read data from a file with .efi extension and transfer that data from Android.
I tried copy pasting the content but missing (nul) and some other characters. Could someone help me to read efi file in Android Studio??
Related
For school, I'm working on an android app which is supposed to deal with some files. I've done the code app by putting files into the assets folder.
Now the problem is that the files need to be updated by getting replaced by the file from an URL of this shape : "http://ade6-ujf-ro.grenet.fr/jsp/custom/modules/plannings/anonymous_cal.jsp?resources=1120&projectId=2&calType=ical&firstDate=2018-03-30&lastDate=2018-03-30".
I've tried a lot of download functions that I found here but they are all dealing with text files which they get from the URL and write, line per line, them down to the internal/external storage.
So my question is, how can I download the file to an "app folder" on the internal storage.
Thank you so much for your future help !
Convert your file to String.And encrypt it with your password.
How to convert a File object to a String object in java?
https://stackoverflow.com/a/12559960/6533179
I currently have an Android and iOS app that downloads and reads an epub file stored in a remote server. Currently the epub is fully downloaded before being unzipped and displayed.
Now, the client requested for a way for the user to be able to read the content of the epub while the epub is being downloaded. Is there any way to accomplish this?
Thank you in advance.
No, there is no way to achieve this, if you download a (zipped) EPUB file. You can "stream" if you store the EPUB in uncompressed form on your server, and provide a suitable API for retrieving its parts as said by deathyr.
BTW, the latter is what Readium cloud reader does. See https://github.com/readium/readium-js-viewer
I want to find a way to save captured picture and recorded sound in custom file-type(s) then open them in my app. I don't want to other apps could open my files (for example gallery app don't open my pictures).
Is there any way to encode and decode my files in my app for example by writing a string at end of files.
Thanks
There is no need for custom file types. If you save your files in Internal Storage, no other application can access them. You can also save files in the External Storage that are private, by calling getExternalFilesDir().
Details are here: http://developer.android.com/guide/topics/data/data-storage.html#filesInternal
Use a file extension no one else uses, then use this answer to open all such files with your app.
I'm trying to develop an iPhone version of an Android app I made. In the Android version you can import spreadsheets to use as templates into the app by copying the file into your sd card from your computer and loading it through an open file dialogue through the app. What would be the a similar way I can do this for non-jailbroken iPhones and iPads to achieve this same functionality?
My goal is to do this without the use of a second app to import them; etc.
You can use file sharing. To activate it you have to check UIFileSharingEnabled in your plist file. And you cad drag files to your document directory and out of it via iTunes. You can even specify what data types your app wants to support and you can even register the app to open specific file so if someone, for example send you an email with this file you can press on the file attached and if your app is installed on the device you will be able to use your app to open this file.
What are the type of your file ?.
You can use the UIWebView to display files with this extensions :
Excel (.xls)
Keynote (.key.zip)
Numbers (.numbers.zip)
Pages (.pages.zip)
PDF (.pdf)
Powerpoint (.ppt)
Word (.doc)
Where to store your file ?
It depends of your business and your application.
You can store it in a server and the application can load it.
You can store it in the Application sandbox.
For example, you can store it in the application's bundle and use this code to laod your file and display it in a UIWebView :
NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
I am not sure I understand your question but have you consider converting your spreadsheet do a .csv file?
After that you can read your csv and transform it into array.
Take a look at this tutorial. It has code that converts a CSV into arrays of the strings in each column / row.
I have followed the sample code below to upload a zip file in the blobstore. I am able to upload the zip file in but i have some concerns reading the file.
Sample Code http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App
My zip file has 6 CSV files where my system will read the files and import the values in the datastore. However i am aware that there are some restrictions to read the file which must be less than 1MB.
Can anyone suggest how i can go about reading the zip file and process the CSV file? What will happen if my data saved in the blobstore is more than 1MB?
Hope to hear from you. Advance thank.
Individual API calls to the blobstore API must be less than 1MB, but you can read as much data as you want with multiple calls. See this blog post for an example of using BlobReader to read the contents of a zip file from the blobstore; it's written using Python, but BlobReader is available in the Java SDK too, and the same technique applies.