×

Discussion Board

Search:

Type: Posts; User: kululu123; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.19 seconds.

  1. Replies
    1
    Views
    5,576

    out of memory exception - memory leak

    I've written a game (game like zuma if you know it) and I'm getting out of memory exception, I've read that I can use WTK to find where are the memory leaks coming from but I've a problem all the...
  2. Replies
    3
    Views
    1,218

    Re: XML parser npe

    its not that I've already checked im getting the exception in the while loop so i tried to remove parser.next with nextTag but then im getting obviously a new exception XmlPullParserException:...
  3. Replies
    4
    Views
    1,223

    Re: recordstore question

    yea I wasnt working with the fileconnection api, well you answered my question thanks !
  4. Replies
    3
    Views
    1,218

    XML parser npe

    this is my xml :

    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0">
    <channel>

    <level>
    <backgroundimage>level_1_bg.png</backgroundimage>
    ...
  5. Replies
    4
    Views
    1,223

    Re: recordstore question

    i wasnt familiar with the api before so I didnt know you cant set record with specific ids, but I managed to do what I want anyway, thanks !
    off topic question instead of a new thread ill ask it...
  6. Replies
    4
    Views
    1,223

    recordstore question

    Say I have 5 records at the record store, so they're indexed from 1 to 5 (index = ids), but I want specifically add record at index 8, now setRecord doesnt work it throws exception because there's...
  7. Re: resources can get deleted somehow from the jar ?

    ok thanks, and its netbeans if it makes any difference and what should I do then if it doesnt get refreshed ?
  8. resources can get deleted somehow from the jar ?

    I never built an application using j2me and Im working on building my first one so I dont know how its working (I dont have nokia device) but I have an image in my res that I use using inputstream...
  9. Replies
    11
    Views
    4,024

    Re: j2me byte array to object conversion

    Point is my type aswell but I would like to know what you guys think this serialization and deserialization seems to costy because it my serializable class has an image in it and i think it'll be...
  10. Replies
    11
    Views
    4,024

    Re: j2me byte array to object conversion

    im starting to think this all thing doesnt pay off too much things have to be done and I lose what I want to achieve, the class reads data from the txt files located in the resources folder and use...
  11. Replies
    11
    Views
    4,024

    Re: j2me byte array to object conversion

    ok I have a little problem here, here are the fields of the class I want to deserializ :
    private Image backgroundImage;
    private Point point;
    private Point [] vertices;
    private String...
  12. Replies
    11
    Views
    4,024

    Re: j2me byte array to object conversion

    ok ill try to implement a serializable interface ill see how its going on. by the way when I see for example changes were made to the file by comparing the byte arrays ill have to read the file again...
  13. Replies
    11
    Views
    4,024

    j2me byte array to object conversion

    I have a file that holds values, these values are then read by inputstream to create an object.
    I dont want everytime the app run to read the file all the time if it hasnt been changed so what Im...
  14. Thread: image.getrgb

    by kululu123
    Replies
    5
    Views
    1,365

    Re: image.getrgb

    thanks both of you great explanations :) helped alot
  15. Thread: image.getrgb

    by kululu123
    Replies
    5
    Views
    1,365

    Re: image.getrgb

    thanks shai, im not so familliar with bits operation but I saw an example how to convert the int to the different channels


    now I see that hes shifting the current's channel bits he want to...
  16. Thread: image.getrgb

    by kululu123
    Replies
    5
    Views
    1,365

    image.getrgb

    I try to obtain the rgb data from a png image but Im getting weird values like -1 / 16777215 although I have white pixels in the picture as well as for red and green so something here is a bit off,...
  17. Replies
    6
    Views
    1,374

    Re: best way to change display between classes

    is it the best solution oop wise ?
  18. Replies
    6
    Views
    1,374

    Re: best way to change display between classes

    dammit .. edited my original post instead of replying
    for those who wonder what im asking the question is what is the best way to change displayables between classes
    make an instance of midlet in...
  19. Replies
    6
    Views
    1,374

    best way to change display between classes

    so you're saying create an instance of each class in every class ? this is the best way ? ;s
  20. Re: inputstream retuns null where it shouldnt ?

    got it solved for it added null characters to the string although I checked if char != '/u0000' it still added these null chars so I made some other checks and made it work :)
  21. inputstream retuns null where it shouldnt ?

    I print the input stream and this is what i get
    "/resources/sprites/levelsbgs/level_1_bg
    .png
    "
    and if i check that the inputstream is null the result is true .. I dont know if it has anything to...
  22. iterate between files in your app folder

    I need to iterate between files in my app folder for 2 reason to get inputstream of every file in a specific directory and to get how many files are there in a directory, I plan to write new files to...
  23. Re: recordcontrol.setStream(output) throws NullPointerException

    EDIT : I abandoned this method of recording the audio because I realized I don't need it, sorry for all the trouble I made :o
    my original intentions were to analyse an audio file to obtain its...
  24. Re: recordcontrol.setStream(output) throws NullPointerException

    im using netbeans and I read about someone having the same problem and someone suggested using YOURCLASS.class.getResourceAsStream(locator) instead of getClass.getResourceAsStream(locator) and it...
  25. Re: recordcontrol.setStream(output) throws NullPointerException

    Ok used System.getProperty("fileconn.dir.tones") like you suggested now I have couple of questions and problems :
    1. ("fileconn.dir.tones") can contain folders in it ? because I want to scan the...
Results 1 to 25 of 28
Page 1 of 2 1 2
×