Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7669239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:33:01+00:00 2026-05-31T15:33:01+00:00

I am developing for Blackberry usign phonegap and I need to copy all my

  • 0

I am developing for Blackberry usign phonegap and I need to copy all my app files to a writable location (I assume the app file location is red only).

Setting up the plugin to do this is easy enough using Java, however the problem I am having is finding the location of these files specific to my app so that I can copy and move them.

From previous reseaerch it seems that Class.getResourceAsStream would work e.g.

getClass().getResourceAsStream("/index.html"); 

However do not userstand how this can be specific to my app.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:33:02+00:00Added an answer on May 31, 2026 at 3:33 pm

    BlackBerry application file is packaged as *.cod file. It is kinda modified java *.jar file with hierarchical structure (folders, packages inside of the archive).

    When you run getClass().getResourceAsStream("/index.html"); you get index.html file from the root package of your *.cod file. If there’s a file attached upon compilation process, then you will get it, otherwise the operation fails.

    As you want to use a writable media, then consider FileConnections API of the RIM SDK.

    cod files are stored to a special location (not the filesystem). But you will need to deal with the filesystem if you want to write files to the device memory or memory card.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a BlackBerry app which needs to read from an xml file.
Since I've started developing my Blackberry app, the biggest problems I've encountered all had
i am developing and app for blackberry and i need to send a Http
i'm developing an app for Blackberry OS5 using Phonegap + Zepto + Backbone. In
I am developing an application for Blackberry devices using Phonegap. I need to play
I am developing a BlackBerry Phonegap application. Therefore, I am using JavaScript. From a
I'm developing the blackberry app, and in that I want to implement TTS (Text-to-Speech)
I am developing a BlackBerry app in which users can purchase virtual goods (such
I am developing one Blackberry application using Eclipse, I need to show images in
I am developing a blackberry app and I am new to Blackberry. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.