Blackberry Install background service from UI application? - blackberry

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.

Related

iOS "Plugins" with sounds

Let's say a "plugin" is a collection of 5 sounds:
1.mp3 2.mp3 3.mp3 4.mp3 5.mp3
My app needs to support such plugins to switch between different sound-themes.
On Android ecosystem, I can simply create a new application that only contains those 5 mp3-files in the assets folder. It will be a plugin. Let's say its package name will be com.mysite.plugins.test
From my main application, I can list all installed apps (plugins) with package prefixes com.mysite.plugins.*. And easily access any of their assets.
I'm new to iOS world... And need something same. As far as I have researched, it's not possible... There can't be an app that contains only sounds, accessible from my main iOS app.
The only way seems to host sound-packages on my server (cloud) and download them from the main app.
However, this way requires payments for data transfer.
Am I missing some more elegant solution? Like hosting sound-packages directly on Apple servers?
Thank you!

Delphi iOS import/export data file using email

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

Is it possible for a user to send me their whole app-directory for analysis purposes?

Is it possible for an non-beta user of my app to send me their whole app directory for analysis purposes?
I know the way via the Xcode Organizer to download the whole app directory. But is this also possible for a end user to save/export a package of the app including all document files and send me this package via email?
The application directory and its contents are not end-user accessible without the use of a third-party tool such as PhoneView or iExplorer.
Yes. I am sure there are many cheaper ways to do this, but I find PhoneView really handy for browsing the device and copying complete app folders.
Another approach I suppose - easier for the user but tougher for you - is to implement file sharing so that the user can drag stuff from your app via iTunes. It depends on how much / what kind of data you need from the user how you would implement this.

How to write file in Windows Phone 7.1?

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

Config file to change values within an app

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.

Resources