java mobile phones programming

i will like to know how to make games that is compactable to various mobile phones and models.

In that case,

Don’t use device specific APIs in your code (almost impossible for good performance) or use pre-processor to deal with the differences.

The distribution process is similar to all phones.

yeah, i noticed, there is a full pdf here which lists a lot of them and some workarrounds but i can’t afford to switch to another phone now.
I have had very litle experience with other devices (7650 and 3650 mostly) since i don’t know many people who will pay the connection fee to download a test aplication from an untrusted web page and very few devices will accept and install a jar/jad sent by bluetooth or ir.
there are not many midp2 devices out there (there are on the shelves, but not on the hands of my friends and potential testers :P) so i allways stick to the base, midp1 cldc1.0.

the memory problems i had was creating new Graphics each loop, but i got it fixed as soon as i ran the profiler. the source is avaliable, search on the j2me games showcase, it’s an old post.

hmmm forum nokia does not like me (it bitches when I want to download it)

7650 and 3650 are just as bad and for the rest of the device landscape: it does not get better!
My fav is 7650’s (dunno which version) setGain()… I would understand if the method, becaus it does not work, would not do anyhting but … here it comes… it crashes the device…

[b]hi my friends,i really appreciate your effort over me.thanks i do appreciate.I have installed ,i have seen examples on the snake games.pls give me step by step simple keynotes of the Important tools needed in the Java NETBEANS IDE 5.0 windows to create my games please explain each.

how can i see views of what i have created

I opened netbeans ide5.0,i went to mobile>various games and also worm.java,i saw the various source codes for the snake game i (run) the source codes and a (+5550000 Default color phone came out on the phone was the snake game)
I have some questions
1.can i use these same sourcecodes to create a well
advanced snake games? are they copyright laws or restrictions?

2.was the snake created by using programming language or by using paint tool to design the snake,its food and the background.that is how do i work graphically?

3.how do i change backgrounds and put more effects.

4.in the snake example on the java Netbeans IDE 5.0 The source codes are divided in to sub sections example worm.java,wormfood.java,wormlink.java. pls how can i divide my codes in to subsections.

pls i need help how do i create games using netbeans ide 5.0
how do i create animation. am totally new to net beans and its not easy pls i need guide on how to startt createing mobile for games using the design mode