Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (592)
Games in Android Showcase (168)
games submitted by our members
Games in WIP (645)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Locating Files  (Read 2412 times)
0 Members and 1 Guest are viewing this topic.
Offline Grofit

Junior Devvie

« Posted 2007-04-02 09:35:09 »

im working on what i thought would be a simple project, just load a given model up and view it. However ive recently realised that there is VERY little file support for CDLC devices. I was hoping for a openfile dialog or something so i could get the user to select what model they want to load but that seems to be out of the question.

so can anyone advise me on what the best method of getting the user to select a file held externally of the JAR file and on the local device?
Offline Abuse

JGO Knight

Medals: 24

falling into the abyss of reality

« Reply #1 - Posted 2007-04-02 12:38:01 »

You'll be needing the FileConnection API, which is part of JSR 75.
Be aware that not all handsets support JSR 75.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Offline SimonH
« Reply #2 - Posted 2007-04-02 12:41:43 »

Depending on the amount of data storage required you might look at using javax.microedition.rms for persistent storage rather than files.

People make games and games make people
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Grofit

Junior Devvie

« Reply #3 - Posted 2007-04-02 13:25:22 »

yeah i was looking at that FileConnaction API, but as you say its not supported on most phones, how much data can the RMS handle? as it could be a simple model or quite a complex one...
Offline Abuse

JGO Knight

Medals: 24

falling into the abyss of reality

« Reply #4 - Posted 2007-04-02 14:46:22 »

It varies tremendously between handsets, The limit is typically somewhere between 10kb and 200kb.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Za\'Anzabar (15 views)
2015-06-29 05:44:54

TritonDreyja (31 views)
2015-06-24 17:10:40

CopyableCougar4 (27 views)
2015-06-23 00:34:45

BurntPizza (32 views)
2015-06-21 20:36:46

cookiecompiler (74 views)
2015-06-11 15:42:53

cookiecompiler (38 views)
2015-06-11 15:41:14

NegativeZero (63 views)
2015-06-11 09:49:18

Fairy Tailz (88 views)
2015-06-11 01:59:47

chrislo27 (60 views)
2015-06-06 18:12:44

Burnsalan20 (72 views)
2015-06-05 03:00:51
How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!