I have a simple "hello world" blackberry application. I want to put my compiled files (.jad,.jar or .cod) to my web server and let my application to be downloaded by my blackberry users.
I have tried to use .jad files for downloading. However when I click the button, the blackberry device displays the content of the .jad file line by line and nothing happens.
In short, I want to put a link on my page and when a user click it, my app will be downloaded his/her device.
How can I do that ?
Thanks
Your web server has to apply the appropriate MIME type to both the JAD and the COD files.
JAD = text/vnd.sun.j2me.app-descriptor
COD = application/vnd.rim.cod
See your web server documentation on how to specify MIME types for served files. Quite often you can do this with a .htaccess file.
Related
I got a requirement to show the one PDF file on button click. I added that document to the Content folder in the MVC project and added the URL to that button. When I click on the button the PDF opens fine in my local. But When I deploy it to the DEV server, getting 404 error. So I checked the Content folder in the web server, I can't find the PDF file I added. Do I have to change any IIS settings to include that PDF in the build?
Thanks
If your issue is the same as the one documented here you'll want to follow the instructions here under "Adding MIME Types to [IIS version]" to ensure that you have pdf enabled among the supported content types.
I'm currently working on a intranet webapp for a company.
I've created it so the administrators of the site are able to upload files
(.docx, .pdf, .xlsx, .ppt etc) up to the webapp, to provide easier access
to documents for the employees. It works very well, however my client wasn't
too fond of having to download the files, and wanted it to pop up in the browser,
or open up the file-spesific program instead of download.
I was playing with some ideas:
1. Somehow parse the files to JSON at upload, and then show the content in browser with html.
2. Generate a pdf from the uploaded file (which automatically launches in the browser).
3. Somehow use a previewer to show the filecontent in the browser
4. Clients computer launches the uploaded file automatically on download, however I think this is a bit more tricky...
What would be the best and most time-efficient way to go about this?
It feels like what you actually want/need is a javascript document viewer (only) such as http://viewerjs.org/.
I have published a Captivate 6 file in swf format. In one the slides is a button, that when clicked executed a small piece of javascript code to open a url , using the window.open command. This link opens fine, when i publish the project as a html5 output, ie mp4 file. however , when I publish it as swf, nothing happens on clicking the button. I read somewhere that flash security settings need to be updated and you need to add the folder where swf file is , as a trusted folder. I did that but still it does not work. Then I read that this problem comes only while developing since the flash player blocks access to local files and folder, so I published this swf on a web server on , but again same problem. Would be very grateful if anyone can provide some way to solve this. Thanks.
I'm using Captivate 7 and have had countless problems with javascript, but anyways... I'll avoid ranting about that.
When you publish it as an swf are you loading it from the .htm file? I've noticed that JavaScript only "worked"(haha, if you could...ok, no ranting..) by loading it in the .htm file. When I loaded the swf directly locally or from a web server it wouldn't work.
There are three or four files in Captivate 7: swf, htm, css, and js file.
When I put all of those on the web server, and load the .htm file JavaScript... uh, "worked'.. yeah
I built a blackberry app with Phonegap. Phonegap build website built my app and then sent me back a StandardInstall.zip. WHen I open it up, I have cod, alx , csl and cso files. Don't I also need a jad file in order for me to upload the whole app to my webserver for other blackberries to install my app?
If so, how do I create the jad file? If I don't need the jad file, how do I install the app? When I go to http://mysite.com/filename.cod, it just downloads the cod. It doesn't install?
Man, I wasted a whole day on this. So I ended up finding a random jad file on the internet which i"m posting here:
BlackBerryWebWorksSDK.exe* glww.jpeg
George Website .pdf jdk-7u3-windows-i586.exe*
Requirements.xls phonegap-phonegap-1.5.0-0-gde1960d/
Manifest-Version: 1.0
MIDlet-Jar-Size: 3329401
RIM-MIDlet-Icon-2-1: ____HOVER_ICON_[LOCAL URL FOR YOUR APP ICON],focused
MicroEdition-Configuration: CLDC-1.1
MIDlet-Version: 1.0.0
RIM-COD-Size: 70020
RIM-MIDlet-Flags-1: 0
MIDlet-Name: [NAME OF YOUR APP]
RIM-MIDlet-Icon-Count-2: 1
RIM-MIDlet-Icon-Count-1: 1
RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_bb_web_jse_api,net_rim_xml_org,net_rim_bb_
browser_field2_api,net_rim_os,net_rim_bbapi_phone,net_rim_bbapi_mailv2,net_rim_bbapi_push,ne
t_rim_bbapi_messagelist,net_rim_pdap,net_rim_bbapi_invoke,net_rim_bbapi_browser,net_rim_netw
orkapi,net_rim_bb_browser_field_api,net_rim_xml,net_rim_locationapi
MIDlet-Vendor: Unknown
RIM-COD-URL: [FILENAME.cod]
MIDlet-Description: [NAME OF YOUR APP]
RIM-COD-Module-Name: [NAMEOFYOURAPPWITHNOSPACES]
RIM-COD-Size: 51568
MIDlet-1: [NAME OF YOUR APP],[LOCAL URL FOR YOUR APP ICON],rim:foreground;WIDGET;
RIM-COD-Creation-Time: 1333316339
Replace anywhere you see [CAPS] with your values. Everything else I left the same. I have no idea if what I've done is a sustainable way for deploying cod files. I also don't know if there are any consequences for not changing any of the other values like creat dates, file sizes, etc...
I developed blackberry application. i have the myapp.cod, myapp.jad, myapp.jar and myapp.alx file. I want to install my application from my server to blackberry mobile. What are files are need to the web server. i created the link like http://myserver.com/blackberry/myapp.cod. Buy i cant download and install using this link. It shows the alert Download Failed. 907 invalid cod. HTTP Error 413: Request entity too large.
Please do reply for me
Thanks
Some things to check;
Does your jad file list all of the cod files? (I believe the tool is jadtool.exe or possible updatejad.exe and is included with the JDE -- it will update your JAD file with the individual COD files instead of one large COD file).
Are the individual COD files all in the same location as your JAD?