I registered some file-extensions for my AIR-Android-App, so when a file is selected, my app receives an Invoke-Event in Flash/AS3 with the path to that file.This works fine for files/downloads/links.
However, some Applications provide a a content-uri instead of a direct file-path (e.g. eMail-attachments before they are downloaded).
e.g:
content://gmail-ls/houseatreides#gmail.com/messages/6/attachments/0.1/BEST/false
QUESTION:
How can i turn this into something i can load in AIR/AS3.
Or how can i order the other application to catch the file for ?
If its not possible in AIR, does anyone know of an ANE that gets the job done ?
I found a post how to do it native in JAVA:
How to create a file using content?
Confirmation that is not possible in AIR is also welcome.
Thank you.
verdave
Related
How can i know which java file is used at the current time at that current interface. I know we can do this with a logcat when we know the source code , we can make everything log.i and stuff. but what happens when we don't know the source code or while assessing a black box android app
If you don't have access to the files how you supposed to know which file you are getting?
The best way to achieve what you want is to use a decompiler in your APK and do a debug.
http://www.decompileandroid.com/
I had a problem with my pc and I had to format the c drive without being able to access it, good things is that i only lost my app files, bad news is that I lost my app files hahah (not really laughing at all, more like a crying laugh). I used to test my app in my phone so i have it installed there, i have half of the progress I've made backed up (too bad i didn't change the app's folder, I am gonna do it from now on) but i would reaply like to recover it, so... Is there any way that can be done? If not well... learned the lesson the hard way I guess
You may be able to retrieve the java classes and resources from the apk. First, you can try pulling the apk from your Android device:
How do I get an apk file from an Android device?
Second, try retrieving java files from the apk:
how to extract code of apk file
It is called reverse engineering.
Here's a tool that might help you: https://ibotpeaches.github.io/Apktool/
Hope you will recover your code ;)
As the title says - is there something in iOS that lets you say 'this file is allowed to be accessed by other apps' - preferably only readable, but read/write would be good enough.
Basically I am trying to place a file outside the sandbox so other apps can read it - preferably via the openURL that points to a local file rather than an http address.
Thanks
Edit:
I just received an answer from Apple Tech support and they told me that this is currently impossible (just after iOS 6 released)
I don't think it's possible to do it the way you describe. Last I checked, apps can only write inside their sandbox dir and cannot read inside other apps' sandboxes (though IIRC there used to be a few other writable directories).
What, exactly, is the end result you are trying to achieve?
If you know the app you want to read the data, you can use a custom URL scheme.
If you have a file of a certain type (extension/content-type, I think), you can use UIDocumentInteractionController to let the user pick an app to open it in.
If you just want to share some data with any app, the closest I can think of is a custom UIPasteboard. OpenUDID does this for a slightly dubious purpose.
I've already asked this question before, but I never got an answer, so I'm trying again.
I'm trying to figure out how to mount a virtual drive into my android file system. By this I mean that I want to make a new folder (that doesn't really exist) appear somewhere in my Android file system tree and have all requests to view the contents of, read data from or write data to that folder (or any of it's supposed children), from all other apps, handled by my custom app.
I assume that to do this I will somehow have to override whatever part of Android handles requests to access files for reading and writing (e.g. FileInputStream and FileOutputStream), test whether the requested file is part of this virtual file tree, and if it is, handle the request, or else, pass it to the default handler.
The trouble is, I don't know what part of Android actually handles these calls. Can anybody help me?
I doubt you can go so deep in unrooted phone. It's kind-a possible with modified kernel: http://forum.xda-developers.com/showthread.php?t=1306336 . Unless you want to put changes into AOSP and compile it yourself, in which case I can't help you : ( .
Basically I want to add my application to the application chooser list for files with the type .php, .java, .js, .html etc. so that users can browse for a file using any file browser and use my app to open it.
I've looked at tutorials for Broadcast Receivers but none of them have shown how to do this, they've just shown how to listen for the phone state changing and stuff.
Help! :(
Thanks,
Alex!
Although I never used it, I think this might help you: Intent-Filters.
And also this thread from anddev.org.