Win a copy of Event Streams in Action this week in the Java in General forum!

sab son

Greenhorn
+ Follow
since Apr 26, 2006
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 sab son

Kartik Great Score !!

do you think it is absolutely necessary to go to JSRs for all topics?
aint' JK's book (beginner to proff...) and satya's notes enough?

congrats !!
12 years ago
Ko Ko,

One fellow rancher from j2me forum solved the doubt:

as per Girish Nagaraj:

1. select settings in the KToolbar
2. select user-defined tab & change URL

package application again
1. select project menu option
2. package --> create package
3. copy the jar file from bin folder to the real java device & run

this worked ! thought would be worth to share here.

-Sab.
Girish,

It worked !!!
thnx a tonne man, I am preparing for SCMAD, can I have your email for future questions in related field?

help is appreciated a lot man !!!
-Sab.
12 years ago
Ko Ko Man,
thnx for the help, I did change the code to:

String link = "URL http://r0k.us/graphics/images/4kSnake.png";
//String url = getAppProperty("ImageLoader-URL");
hc = (HttpConnection)Connector.open(link);

but now it says 'IllegalargumentException: Invalid Protocol Name'

any suggestion?

previously I did think that my .jad/.jar/.MF files are missing the property,so I did add
'MIDlet-ImageLoader-URL: "http://r0k.us/graphics/images/4kSnake.png" ' in them manually, but nothing happened.

any further suggestions?
Hi Ranchers,

Need help with Li and Knudsen's 'Begining J2ME , from novice to professional'.

Chapter 10 - Image loader example (page 148).
In order to render the PNG image on the phone, ImageLoader -URL, MIDlet propert has to be modified to a valid PNG image a URL.

I used the URL as in the following code snippet:

public void run() {
HttpConnection hc = null;
DataInputStream in = null;

try {
String url = getAppProperty("http://r0k.us/graphics/images/4kSnake.png");
hc = (HttpConnection)Connector.open(url);
int length = (int)hc.getLength();
byte[] data = null;
if (length != -1) {
data = new byte[length];
in = new DataInputStream(hc.openInputStream());
in.readFully(data);
}...........

As the link given in book is not working. The code compiles with no issues but when I run this on my WTK25 simulator, at run time is complains of illegal argument exception. How do I change the MIDlet property ImageLoader-URL? to render the image on simulator or a real java device?

thanks,
-Sab
12 years ago
Hi Ranchers,

Need help with Li and Knudsen's 'Begining J2ME , from novice to professional'.

Chapter 10 - Image loader example (page 148).
In order to render the PNG image on the phone, ImageLoader -URL, MIDlet propert has to be modified to a valid PNG image a URL.

I used the URL as in the following code snippet:

public void run() {
HttpConnection hc = null;
DataInputStream in = null;

try {
String url = getAppProperty("http://r0k.us/graphics/images/4kSnake.png");
hc = (HttpConnection)Connector.open(url);
int length = (int)hc.getLength();
byte[] data = null;
if (length != -1) {
data = new byte[length];
in = new DataInputStream(hc.openInputStream());
in.readFully(data);
}...........

As the link given in book is not working. The code compiles with no issues but when I run this on my WTK25 simulator, at run time is complains of illegal argument exception. How do I change the MIDlet property ImageLoader-URL? to render the image on simulator or a real java device?

thanks,
-Sab
Hi all,

I want to learn Java under Linux, can anyone help as to how to install the JDK and J2ME toolkit on Linux?

thanks a lot,
-Sab
Hi ,

U guys need to wait for SUN to dispatch your certification kits.
The kit will have all info as to how to get the logo.

In U.S. it takes about 10 days from the date of exam to get the certificate and the logo.

ciao.
Hi Reghu and Theodore,

thanks for the valuable guidance.
I will pick "Beginning J2ME..." and "Wireless Java -3rd ed..." as my starting point and reference.

JMAD + SCMAD simulators from Enthuware and whizlabs shud be enough.

My email is cool_sabson@yahoo.com, please kindly send me the notes from Satya.

thanks again-
Saurabh.
Ranchers,

when I try to access Satya's notes from

http://www.scmad.com/scmad-study-notes.php

I draw a blank !!

Can anyone help me in getting the notes??

thnx.
Hi Reghu + ranchers,

I touched down SCJP 5.0 and now need to pick SCMAD 1.0.
I have been reading all the posts so far, here at ranch about SCMAD prep material.

Reghu,from your post I believe you completed the SCMAD in about 1 months time and started the prep with "Beginning J2ME: From Novice to Professional by Jonathan Knudsen, Sing Li" book.
Is this book enough??

Besides this book and the exam simulators, what else did u go thru??

For fellow ranchers:
There are some posts about Wireless Java: Developing with J2ME, 2nd Ed
Jonathan Knudsen, as being a good book too !!

which is the best book to get started and complete the exam?
the website www.scmad.com seems can never be sailed thru.....the info there is vast as an ocean..

please help with reqd info !!!

thnx-
Saurabh.
Hi,

No probs and congrats !!

ciao..
13 years ago
Hi Ranchers,

Many thanks to you all, Kathy, Bert and Khalid M for helping me get certified. This was a wonderful experience. I have a full time job and am a Windows Mobile Developer, I took the exam for the luv of Java.

I could manage a score of 66% only but I am still happy to sail thru.
I devoted 2/3 hours on weekdays and 5/6 hours on weekends, for last 3 months. I think I could have given the exam 20 days earlier.

This is what I will advise all busy professionals to do for SCJP5.0

1st phase (1st 45 days):
1) I completed Khalid and Mughal book first (optional for u..).
2) Then completed K & B ( all 11 chapters, A to Z).
3) In K&B Solve the questions at the end of all chapters RELIGIOUSLY!!
4) For API contents, be very thorough with 5 code examples (3 pattern searching , 2 tokenizing from K&B).
5) For generics & collections memorize tables 7.4 and 7.5 in chapter 7, K&B. This comes pretty handy in exam.

2nd phase (next 30 days):

1) Get the whizlabs Java 5.0 simulator.
2) Solve all 6 mock exams RELIGIOUSLY !!
3) At the end of each exam, pause and go through your mistakes. Make a note of them.
4) Whatever you score in your final whizlabs mock exam, you will get 15-20%
in your real exam.

If you are able to get 50%+ in whizlabs last exam,and time is running out, go ahead and take real exam. I was consistently scoring 49-52% in whizlab mock exams.

That's all about it, from my experience of last 6 years of coding, the best of coders have ability to shrink the code in terms of size and make it more efficient. They are able to grasp logic in new files of code very quickly and develop it further, but when you take certification exams,it's a different ball game alltoghether, hence as long as you pass...be happy and relax.

Time to watch the world cup and wimbledon now !!

SCMAD will be next.
13 years ago
Ranchers,

I am a SCJP 1.5 aspirant.
My concern is that I am jinxed with a score of 50% in all whizlabs practise exams and the Master exam from K&B.

I am surprised that I always have 36 correct out of 72 questions.

I have read that real exam is bit easier w.r.t mock exams.
N on an average people hit 10-15% more on real exams.

Have a full time - stretched job and running out of time, shall I go for exams...for me passing wud be sufficient....not aiming for high score !!

anyone...any advise?

thnx-
Sab.
[ June 15, 2006: Message edited by: sab son ]