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.
Related
I am developing a simple android app, I want to use file picker when I press button, so how can I implement file picker in my app.
I spent some time earlier figuring this out so to wrap up
Intents provide the ability to hook into third-party app components
for content selection. This works well for media files, but if you
want users to be able to select any file, they must have an existing
"file explorer" app installed. Because many Android devices don't have
stock File Explorers, the developer must often instruct the user to
install one, or build one, themselves. aFileChooser solves this issue.
You can clone it from iPaulPro/aFileChooser.
I'm developing an app with phonegap and i want to add text size option for users. but i want this text size change saves to app so when the user reopen the app the text size stays the same he/she choose the last time?
Look at phonegap localstorage, it could be what you're looking for:
http://docs.phonegap.com/en/edge/cordova_storage_localstorage_localstorage.md.html
Alternatively you might want to write some kind of an user configuration file using the file api:
http://docs.phonegap.com/en/edge/cordova_file_file.md.html#File
What I want to do is simple, but I don't know if it's possible. I want my app to open a specific area of another app. This specific area of the other app is a form; my app contains information to complete this form. I want my app to open this form with the information in the editable text boxes. Does anyone know if that is possible?
The other app I'm trying to open is a bitcoin client open source.
Code: https://github.com/schildbach/bitcoin-wallet/
Google Play: https://play.google.com/store/apps/details?id=de.schildbach.wallet
If you open this app (the bitcoin client) and click on "Send Bitcoins", the form I'm trying to open will appear. There are 3 editable text boxes there and I have the information to fill then in my app.
That's it guys, hope someone knows.
PS: I successfully opened the app using:
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("de.schildbach.wallet");
startActivity(LaunchIntent);
But I didn't opened the form, so it was useless.
During automated testing using Selenium-2 we are clicking on the link and which opens the "File Download" window. And I want to click on "save" button and save the file to the disk.
Selenium2 doesn't support handling of filedownload on its own. So I have written a AutoIT script to click on the save button and it works successfully if we are testing the web application on the local machine. In remote machine if I am running this script it hangs if I close the Remote Desktop (RDP).
One thing is we don't know what will be the link which will be clicked. We will be only knowing that one "File Download" window is existing and which may not be on the top or active. But I need to click on save button.
So, is it possible to handle file download popup window in other way?
If we can handle it AutoIT then its very good. but other than AutoIT suggestions are also welcome. Like if we can do using some other APIs or scripts. But to run the script/solution it would be good if we do not need to install any other software.
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.