Messages by Bloodyeye

2 topics, 3 messages
Kuix technical support » destroy a frame and clean up the memory

Hi,

I have a main menu with some Buttons, when I click on a button I call the frameHandler and push a new sub menu. The sub menu has a menuPopup with a few menuItems. When I choice a menuItem I call the frameHandler again and push the selected frame. And all the frames have a back function to remove the frame and get the top frame, like in the tutorial. After a few back and forward in the sub menu the memory space tops my heap size of 1MB. To convince myself I use the memory monitor.

 

So my question is how I can clean up the memory space of the selected frame?

 

Kuix technical support » Drawing basic graphics with a custom widget

Ok after a few more tries I get it started =) I only have to say

<screen>

    <mywidget>

        <_radius>@{radius}</_radius>

    </mywidget>

</screen>

 

Now I can start with my real project

Kuix technical support » Drawing basic graphics with a custom widget

At first thanks for the great framework.

So my problem is that I want to draw some basic graphics into my midlet. I think I need to use a custom widget. Ok this is not the problem, I can draw an arc like in the “create a custom widget” tutorial. But how can I change the size of the arc dynamical at the runtime?

For this I use the DynamicDataProvider to update the new value into my xml-file and my Widget, in that I draw the arc, get the new Attribute.

In the 5 tutorial you learn how to use dynamic datas, so I want to set my radius dynamic too. But I have no idea how I should do that.

But how I can set the following part dynamic? I know I have to use the @{} syntax to use a dynamic data and I have no problem to make a <text> dynamic.

<screen>

    <mywidget radius="50" />

</screen>

 

Or should I use another xml-parser like kxml?

Because I want to draw a state or bar graph with predefined x and y axis.

Sorry for my bad english but english is not my native language.

Thanks for your help.