You Are Here:

Community: Developer Discussion Boards

#1 Old Application working on one phone but not the other - 2006-06-30, 14:35

Join Date: May 2005
Posts: 26
Location: Skelleftea
Send a message via ICQ to davidrenstrom Send a message via MSN to davidrenstrom Send a message via Yahoo to davidrenstrom
davidrenstrom
Offline
Registered User
Hi,

I've got a strange problem with an application working on the older Nokia 6600 (CLDC 1.0, MIDP 2.0) but not on the newer Nokia 6630 (CLDC 1.1, MIDP 2.0). On the Nokia 6630 you get the startup screen and you can choose the Continue item from the Options menu, but then the application exits (no crash). On the Nokia 6600 it works just fine, i.e. the next screen appears. What could the reason be?

Regards,
/David R.
Reply With Quote

#2 Old Re: Application working on one phone but not the other - 2006-06-30, 16:45

Join Date: Mar 2006
Posts: 518
wang_shui
Offline
Super Contributor
Hi,

It can be due to a variety of reasons..

u may be using something which is not supported in 6630.
Sometimes the recordstore got corrupted..

please check all these

Wang
Reply With Quote

#3 Old Re: Application working on one phone but not the other - 2006-06-30, 20:39

Join Date: Nov 2003
Posts: 3,641
Location: Bangalore , India
Send a message via Yahoo to balagopalks
balagopalks's Avatar
balagopalks
Offline
Forum Nokia Expert
Please check that you have enough memory remaining in your 6630. So that your app can run fine. Also as wang suggested, check for corrupted record stores.

If you are using a canvas based app try initialising a variable and change the values in different check points in your code and draw the value in canvas so that you can identify at which point is the code hanging.

Regards
Gopal
Reply With Quote

#4 Old Re: Application working on one phone but not the other - 2006-07-01, 02:57

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Kevin,

could you post that part which handles user interaction ("continue" case),

thx,
regards,
peter
Reply With Quote

#5 Old Re: Application working on one phone but not the other - 2006-07-04, 15:04

Join Date: May 2005
Posts: 26
Location: Skelleftea
Send a message via ICQ to davidrenstrom Send a message via MSN to davidrenstrom Send a message via Yahoo to davidrenstrom
davidrenstrom
Offline
Registered User
Hi,

I'm not using any RecordStore components. Neither am I using the canvas - just a simple Java MIDlet. I don't think that there is an memory issue because the same software is running on both phones and the 6630 should have more memory, not less than the 6600.

Below is part of the code that I think causes the problem (part of actionCommand()). It may not make sense to you, but it's a Swedish word game which randomly puts together sentences. The random generation stuff may seem weird, but the 6600 doesn't seem to support nextInt(int v) function. I guess it's a CLDC 1.1 feature, but I don't quite remember from the docs.

if(c == cmdContinue)
{
switch(currentForm)
{
case 0:
appForm.setTitle("Adjectives");
for(int i = 0; i < 5; i++)
{
appForm.append(txtWords[i]);
}
break;
case 1:
adjectives = new String[5];
for(int i = 0; i < 5; i++)
{
adjectives[i] = txtWords[i].getString();
}
appForm.setTitle("Names");
break;
case 2:
names = new String[5];
for(int i = 0; i < 5; i++)
{
names[i] = txtWords[i].getString();
}
appForm.setTitle("Verbs");
break;
case 3:
verbs = new String[5];
for(int i = 0; i < 5; i++)
{
verbs[i] = txtWords[i].getString();
}
appForm.setTitle("Prepositions");
break;
case 4:
prepositions = new String[5];
for(int i = 0; i < 5; i++)
{
prepositions[i] = txtWords[i].getString();
}
appForm.setTitle("Substantives");
break;
case 5:
substantives = new String[5];
for(int i = 0; i < 5; i++)
{
substantives[i] = txtWords[i].getString();
}
frmResults.deleteAll();
int num;
for(int i = 0; i < 5; i++)
{
while(((num = rnd.nextInt() % 5) < 0) || (adjectives[num] == null));
String sentence = adjectives[num];
adjectives[num] = null;
while(((num = rnd.nextInt() % 5) < 0) || (names[num] == null));
sentence += " " + names[num];
names[num] = null;
while(((num = rnd.nextInt() % 5) < 0) || (verbs[num] == null));
sentence += " " + verbs[num];
verbs[num] = null;
while(((num = rnd.nextInt() % 5) < 0) || (prepositions[num] == null));
sentence += " " + prepositions[num];
prepositions[num] = null;
while(((num = rnd.nextInt() % 5) < 0) || (substantives[num] == null));
sentence += " " + substantives[num];
substantives[num] = null;
frmResults.append(sentence);
}
appDisplay.setCurrent(frmResults);
break;
}
if(currentForm < 5)
{
currentForm++;
for(int i = 0; i < 5; i++)
{
txtWords[i].setString("");
}
appDisplay.setCurrentItem(txtWords[0]);
}
}

Regards,
/David R.
Reply With Quote

#6 Old Re: Application working on one phone but not the other - 2006-07-04, 20:43

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi David,

6600 is CLDC 1.0/6630 CLDC 1.1,
so you are correct,
there could be different reason, including setCurrentItem(..) exception from last line,
could you enclose your code into single try/catch and handle possible exception to Alert?
best,
Peter
Reply With Quote

#7 Old Re: Application working on one phone but not the other - 2006-07-06, 17:17

Join Date: May 2005
Posts: 26
Location: Skelleftea
Send a message via ICQ to davidrenstrom Send a message via MSN to davidrenstrom Send a message via Yahoo to davidrenstrom
davidrenstrom
Offline
Registered User
Hi,

Ok, I could try enclosing the setCurrentItem() statement in a try block. What exceptions do you suggest I try to catch? I'll have to wait though because I don't own a 6630, so I need to borrow one.

Thanks,
/David R.
Reply With Quote

#8 Old Re: Application working on one phone but not the other - 2006-07-06, 17:33

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,

general one (Exception ex) and simply check error message you get if any,
regards,
Peter
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-run phone application using Timer euglena9 Mobile Java General 1 2006-05-03 15:36
Restrict Symbian application installation for a given phone model josephtkc General Symbian C++ 3 2006-03-06 10:29
How to use own Phone application? csm General Symbian C++ 1 2005-03-14 09:32
Application error due to answering a phone call mikeaf Mobile Java General 0 2003-04-24 19:09

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia