Imagine I have a jQuery script to listen for drag and drop action and then upload them. If I open my webpage in a WebView , how can I drop a File object into that area? (basically fake a drop given I have a File object or path to that File
for example I use the camera to take a picture, then I save that image. Now I would like to upload that image purely using browser capabilities (without httpClient requests on android side). Or If I could add my file to a file upload input (which I couldn't find a way to achieve).
Related
How to add a file with the extension svg and be able to change and edit all its items?
I mean, I want to add a svg in Java code and make changes to it.
I'm trying to create simple site scraper using Java and jsoup or htmlunit.
I have chosen vk.com as a target site.
My goal is to go through the audio tracks and download them. I started investigation and figured out that there is no URL of tracks in DOM. Track is somehow dynamically downloaded after pressing "play" button.
My question is: how can I capture dynamically loaded file?
so basically what I am attempting to do, is to create a PDF that information can be inputted by the user of that document. and when all the information is entered, be able to click the save button below on the PDF document, and a window prompt open allowing the user to "save as" the document to a certain directory.
I currently have the button working for Windows OS, and the prompt comes up to save as, however when opened on Adobe reader on an android phone and the save button is clicked, nothing happens.. is there a java script code that differs from the Windows version to what android would look like.
If you would consider Xamarin for android app development then you could take a look at the following blog post showing how to create PDF file with arbitrary content on Android and iOS using the same library.
I know you can use
Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, null);
to get the blackberry camera application to be shown and allow the user to take photos. From which you can use a FileJournalListener to find any created files.
(As shown/implied in this forum post: http://supportforums.blackberry.com/t5/Java-Development/How-to-use-FileJournalListener/td-p/295424)
There are times however, when the user chooses not to take a photo but selects one from the file system. Since this wasn't created at the time I opened it, using the FileJournalListener is not going to meet my needs.
What should I use to get the selected file?
EDIT: The functionality I'm trying to produce I've seen in the Twitter for blackberry application
I think you should create a file picker first,
http://docs.blackberry.com/en/developers/deliverables/11958/Create_a_file_picker_856986_11.jsp
After that in the application, user could select whether to capture new picture or browse from their storage.
If user select the later, open up this file picker and for every images found user can view the image, and the application can save the path where the images located for further processing.
I have this new requirement to develop a software which is a large scale image up loader in a web application. I was able to do the same using swing contains several feature like drag and drop, progress bar, remove file / files , modify, limit file size, verify file information, timer, verify at run time ..and its a very powerful tool which uploads images.
I would like to do the same in web based app, like user selects 200 images process it and click upload and it should start uploading, like to know any feasible frameworks or any API's which help me do this faster and achieve the same kind of functionality. Please point me in correct direction.
-PD
You can do upload apps, but not fancy stuff like drag and drop with run of the mill HTML. HTML5 on google chrome maybe, but I doubt you want code that only works on chrome.
Have you looked into turning your image uploader app into a java applet? Applets generally have a bad rep, but this is one of the very (in my opinion) valid uses of one...
Either turn your uploader into an applet or use a 3rd party image upload applet, such as JumpLoader. You then just embed this applet in your webpage. Turning your uploader into an applet should actually be a piece of cake since you've the UI apparently already ready. You can make use of deployJava.js script to reliably deploy an applet.