I would like to create an application for Windows Phone with Silverlight C#. This application needs to create a file (possibly editable only by the application who created it as in Android with the private mode). This file can be either on the SD card or, if it is possible, in the application package as in Android. The file must not be accessible by the user. I need to create also a file that the user may read so it would be better if I could put it on the SD card. Thanks!!!
Isolated storage is what you are looking for
Related
Assuming I have an app on iOS that generates a data file, and I would like the user the ability to import/export that file, how is that best done?
Import from email in xcode/objc:
http://www.raywenderlich.com/1980/email-tutorial-for-ios-how-to-import-and-export-app-data-via-email-in-your-ios-app
Is this possible in Delphi? (i.e. register an ios app as file handler for a specifc file type)
(I am planning on handling export through generating an email attaching a file? I suspect this is probably possible although if anyone knows for sure, feel free to share)
It has been asked why import/export across email is useful.
Because legally EU/US law and cloud storage is difficult with personal data
You don't need any desktop computers
You can sync data between ios and android apps if user changes mobile
You are not bound to any specific cloud provider or anything similar
Quote from above article where author explains where the file path is passed to the app:
application:didFinishLaunchingWithOptions, passing the URL in the
UIApplicationLaunchOptionsURLKey, or via application:handleOpenURL.
But since I have not used Delphi for ages (for mobile), I would just like to know for sure if Delphi supports this or not before buying a new version
You can send files using email. I use the email component from D.P.F Delphi iOS Native Components to send file attachments using email. I don't see any reason why you should not be able to send your data file as long as it is not too big. Use a file extension that is unique to your app.
You could also use iTunes filesharing in order to give your users direct access to your data file. Just set the UIFileSharingEnabled key in your info.plist and store you data file inside of the documents folder. This does require a desktop PC, but it is still a very nice addition to sending backups by email.
Depending on your needs,
I would suggest looking at perhaps saving the file to a server using FTP and Indy and then on the other device you can retrieve it?
http://www.delphipages.com/forum/showthread.php?t=208397
Set the TidFTP connection parameters
Do a FTP put : // ftp.Put('testfile.txt');
Perhaps have a Database with a column that you specify a file version etc
Do a simple Get request if you want to retrive the file with the filename
or Alternatively you can save it to a blob field in a DB and have the other device read the blobfield if you don't want to do it via FTP
i need to create isolated storage for my windows phone app, it is a business app that shows you all your business documents, and from there you can reject and accept the business documents, now what my problem is i have no idea where to start with isolate storage? i have been through google, but it does not make any sense, so if anyone can send me a link or tutorial it will be awesome, and how can i make the isolated storage in my app.xaml file so i can use it over and over again?
this is the link that gave me basic understanding , but it is all on buttonclick?
There is a pretty comprehensive example at the msdn page for isoloated storage file. If you need to double check some of the files that you've placed there, there is isolated storage explorer tool that comed with the sdk.
Have you tried IsoStoreSpy ? It supports both WP7 and WP8
It works well on my WP8 emulator, too
See here http://isostorespy.codeplex.com/
public static IsolatedStorageSettings appSetting = IsolatedStorageSettings.ApplicationSettings;
if (appSetting.Keys.Count == 0)
appSetting.Add("key",value);
if (appSetting.Keys.Count > 0)
appSetting.Remove("TEACHER");
if (appSetting.Contains("key"))
...
I'm having a problem meeting a requirement for an Java app I'm developing. My client must be able to deploy the app to multiple BES servers without the need to resign the code (or have any interaction with the developers). Currently the web address of one of their BES servers is hard coded into the app but they require the ability to change this value at will prior to deployment. (it can be assumed they will administrate any BES server the app is deployed from)
I've tried attaching a text file to the project which is read by the app but this is packaged along with the app, meaning it can't be manually edited (as far as I'm aware), I've also tried having a custom property in the JAD file but this needs resigned after any change.
Am I doing any of these approaches wrong or is there a better solution I'm missing?
Also, is it possible to deploy a simple text file to a BlackBerry via the BES to a specific file location? If so I could have my app read this file which would solve the problem?
Thanks,
Implement custom attachment handler in your application.
And send email with an attached xml-config file to BlackBerry device.
User opens the received message and selects the custom menu item provided by attachment handler.
And you can parse this xml config and act accordingly.
An easier way is to use a user defined ItPolicy to provide the configuration information you need.
Hi i need to create an uninstallable background service that would run from application, if the user is registered otherwise wait until it will receive my condition to get installed?
1 ) how to create an uninstallable background service?
2 ) how to install it by user registered condition?
I would really appreciate the help!
Thanks in advance.
Note that any, even system .cod file, can be uninstalled via javaloader.exe utility that comes with JDE distribution package. Or via any application that utilizes relevant RIM SDK API calls. So there is no way to make a real uninstallable package.
It is possible to create a new cod file on the device using API calls.
Take a look at CodeModuleManager class. It is possible to download the service cod file to byte array and invoke
CreateNewModule method to make new cod file based on this byte array.
I wanted to list my application in the list of other readers installed in the iphone when I try to open the PDF from the email. What settings do I need to do on my project so that my application is also listed in it.
Are you looking for Implementing Support for Custom File Formats?
Applications that are able to
open specific document or file formats
may register those formats with the
system. When the system or another
application needs to open a file, it
can hand that file off to your
application to do so. In order to
support custom file formats, your
application must:
Register the file types your
application supports with the system.
Implement the proper methods to open
files (when asked to do so by the
system).