Please do not mark this question as duplicated or already answered. I specifically need help with the Delphi, and there is NO answers with regards to the code (if I am wrong please provide me with it).
Also please note that I am looking for help with XE5 as specified in my tags.
I need help with code on sharing data between Applications on iOS. I have read the theory on this at Share data between two or more iPhone applications.
I now get the idea about how to share files, but I cannot find anything with regards to sharing data with Firemonkey. I did find some information on File sharing using Flexcell by TMS, but that is only related to opening document in other files.
I specifically want to share an XML like document between apps so that apps can communicate data via the XML (read and write data from the xml).
Has anyone been able to successfully do this using Firemonkey 3 and XE5?
Have you tried Indy components ? a idtcpserver on one app and idtcpclient on the other app you can send what ever you like between them.
Related
I am making an iphone application which is pretty much like forum. People can ask question and upload a pdf/doc file along with the question. Is there a way to access the pdf/doc file in iphone when user clicks upload button and send the file to server?
I have implemented the feature for image for which I used UIImagePicker to pick the image and send it to the server with http request. But I am completely lost and have no idea how to handle pdf/doc files in same manner.
Any help/suggestion really appreciated. Thanks in advance.
If you want to upload PDF and Doc files, then you can integrate Dropbox and Google Drive in your app and then select the files ,as Apple does not have centralised storage. If you notice Apple also chooses the documents from Google Drive while composing a mail.
So implementing and integrating google drive and Dropbox would be a good option.
Here is the link for Dropbox https://www.dropbox.com/developers-v1/core/sdks/ios
Here is the link for Google Drive https://developers.google.com/drive/ios/quickstart
Implementing Google drive is a bit hard but dropbox is quite simple.
Wish it saves your time. All the best!
I think you are looking for a combination of two things (both have been discussed here before and I include the links below).
(1) store a PDF. There are many options but the best way is to allow coredata to save outside the persistent store. Then store the reference to the file in core date. See: Insert a PDF file into Core Data?
(2) send the file to the server. There are many options for this as well. The fastest is probably to use a wrapper library such as ASIHTTPRequest. See: File Upload to HTTP server in iphone programming
So it is definitely possible to share data through the KeyChain. My problem now is to implement this with Firemonkey using Delphi. First, Is there a proper library or API to use with Firemonkey to share keys? Second, is there any sample code on doing this via Delphi?
I'm designing a new app for iPad for a small company. This app will use Core Data to store a local database and a database of products and prices. The last database needs to be always up to date since the prices can change.
This company, has a Excel file to keep this database of prices. So they don't have a SQL db to which I can interact from my app.
One option could be to export the Excel file in CVS and put that file in their server (accessible by internet). Then my app should parse the file.
I don't like very much this idea, though.
Do you have any suggestion?
I had a very similar problem to you. I recently got into a project where the client wanted to import information from an Excel file into an app. I know a lot of people say, just transform it into a CSV and parse it that way, but I really didn't want the client to go through yet another step and introduce a different file format - as simple as that may be.
I also really don't like having the information in the cloud, especially Google. Privacy is something that's important to most companies and I'd doubt they'd approve of you using Google to parse the info.
In order to parse the file, I created QZXLSReader. It's a drag-and-drop solution so it's a lot easier to use. I don't think it's as feature complete, but it worked for me.
It's basically a library that can open XLS files and parse them into Obj-C classes. Once you have the classes, it's very easy to send them to Core Data or a dictionary or what have you.
I hope it helps!
Here are a couple of options for you:
Use Google Doc as the intermediary. When the pricing Excel is updated by someone, simply upload the updated Excel to Google Docs. From your iPad app, you can read the latest data via the Goole API. If the company is up for it, they can move to Google Doc altogether and just modify the online Google Spreadsheet directly.
Use services like StackMob as the intermediary. You will have to write a tool to sync the pricing Excel with SrackMob but you can easily access the data via StackMob's iOS SDK.
I'm wondering if it is possible to display topics from a CHM help file in a form of my Delphi application? I know how to use the htmlhelp api but it launches the external help viewer. I would like to display the help topics within a form
Not tested, but...
If you pass the help url (like ms-help://embarcadero.rs2009/delphivclwin32/System__TDateTime__-#TDateTime_#const.html) to an embedded WebBrowser, it should work.
Another solution in case you don't want to use MSIE, could be to port the chm reader library from Free Pascal. It is written in the Delphi dialect, and should be fairly easily, and allows you to extract HTMLs from the CHM (and compress back if necesary) without additional external dlls.
Google offers various libraries for interfacing with the Google Data APIs. Currently these do not include Delphi (Win32) support.
Has anyone done any work on a Delphi interface to Google Data, or the underlying Atom/AtomPub protocols?
There is an open issue with Google suggesting that they create one.
Thanks for your suggestion.
This probably isn't likely to happen anytime in the near future, as we need to
concentrate our available resources in other areas.
However, GData is based upon standard XML and HTTP requests, so work on a Delphi
client library can certainly be done outside Google. I'll leave this issue open so
others can vote for it, and perhaps someone in the community can pick this up.
So you can vote it up.