开发者

Adding files during installation of Blackberry apps

开发者 https://www.devze.com 2022-12-11 08:37 出处:网络
I have a BlackBerry app that, when installed, needs to also copy over so开发者_JS百科me files(.htm, css, images).

I have a BlackBerry app that, when installed, needs to also copy over so开发者_JS百科me files(.htm, css, images).

How is this done? Is it some attributes that need to be defined in the .alx or .jad files?


Installing your app only adds modules to the device - you can't create arbitrary files in the file system (at least during install time). There are a few ways you could accomplish what you need:

  1. When the app first starts up, create files on the filesystem from resources compiled into your COD. This would work well as long as your files aren't too big (you want to try to avoid bloating your COD file if possible).

  2. When the app first starts up, download the required files over HTTP and copy them into the filesystem.

0

精彩评论

暂无评论...
验证码 换一张
取 消