Chris Bilinski

Greenhorn
+ Follow
since Sep 06, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Bilinski

Hello,
I don't know why reference between an attribute and an element doesn't work. Maybe you can tell me, whether there is something wrong with this code or this is just one of schema constraints.
Here you have a part of schema:
<xsd:key name="keyExampl">
<xsd:selector xpath="...path.../example_key"/>
<xsd:field xpath="@id"/> <!-- Note, that "id" is an attribute. -->
</xsd:key>
<xsd:keyref name="ref_example" refer="keyExampl">
<xsd:selector xpath="...path.../example_ref"/>
<xsd:field xpath="id_ex"/> <!-- Note, that "id_ex" is an element. -->
</xsd:keyref>
and here goes sample xml:
<example_key id="1">
<element1>...</element1>
<element2>...</element2>
...
<example_key>
<example_ref>
<id_ex>1</id_ex>
<element1>...</element1>
<element2>...</element2>
...
<example_ref>
it seems, that if I make id_ex an attribute (not the element) then the reference works perfectly. Could you help me with it.
The reason, why I'm asking about it is that I want to make many references from one node. Something like:
<example_ref>
<id_ex>1</id_ex>
<id_ex>2</id_ex>
<id_ex>3</id_ex>
...
<element1>...</element1>
<element2>...</element2>
...
<example_ref>
Thanks,
Hi,
I have a problem with phisically disconnecting wireless ethernet card from MIDlet. I'm using Handspring Visor Neo with Xircom Wireless Ethernet Module.
Here is part of code:
StreamConnection c = null;
DataInputStream socketIn = null;
DataOutputStream socketOut = null;

c = (StreamConnection)Connector.open(serverUrl, Connector.READ_WRITE, true);
socketOut = c.openDataOutputStream();
socketIn = c.openDataInputStream();

// reading and writing data
//---------- finalize ----------

try {
socketIn.close();
socketOut.close();
c.close();
c = null;
System.gc();
} catch (IOException e) {

}

The problem is, that when I close the connection, the Xircom card is still acting and the only way I can put it in "standby mode" is to choose "disconnect" from MIDlet menu.
Is there any other way to do it? Please help me, it is urgent.
Chris Bilinski
16 years ago
If you are using Canvas, you cannot place any of standard Items on it. You must do all dravings and event handling completly by yourself.
16 years ago
Dear all,
I've already posted this question, but haven't got any answer. It is very important for me. I'm using CLDC/MIDP for PalmOS, and it seems that 64kB is the maximum memory I can assign to an application. At the beginning I thought, that it is due to POSE, but it behaves the same way on real Palm . Maybe I've missed something, but I really cannot go through it. Is there any way to increase MIDlet's memory. Please help me.
Thanks.
16 years ago
Hello,
I'm quite new to Java and I work in rather limited environment (not much memory). I know that Java has mechanisms to release some objects, which are not used anymore. Can You tell me how it actually works, do I need to invoke garbage collector manually, or is it some background process which works independently. Maybe You can provide me some link, where I can find more information concerning this subject.
Thanks,
16 years ago
Hello,
I've got serious problem. I've designed an CLDC/MIDP application, but it is quite demanding and I need some extra heap size. The default, maximium value for JavaHQ is 64kB and it is not sufficient. Could you, please, help me with that? I've tried also make some garbage collection (System.gc()), but it seems not working . Is it not yet implemented?
Thanks,
16 years ago
Hi,
Is there any way to use the whole palm screen (160x160) and not only 160x142? This bottom space is used for commands I think and I don't want use them, so another few lines available would be nice. I use Canvas, but it is clipped (0,0,160,142)
Thanks,
16 years ago
Thanks,
Another few questions and doubts:
- Do I need to draw the whole screen?!
- As I see, I cannot mix standard components with my own. True?
- So, I connot use Form class. True?
- So, I need to make the whole bunch of components, like buttons, lists, editBoxes... to make it work. True?
If all this is true, then I need to make the whole framework
It is hard work, as I see ((
Best regards
16 years ago
Hi!
I would like to know, how to create a new component, which can be added to Form or Alert. I browsed the MIDP documentation, but haven't found what to do. I suppose I should overwrite few methods: "paint()" (both of them?), "keyPressed"... and I don't know what more. Is there any good tutorial concerning this subject?
I'm using MIDP for PalmOS.
Thanks,
16 years ago