You Are Here:

Community: Developer Discussion Boards

#1 Old Question How to make a midlet run in the background on S40? - 2009-06-29, 14:46

Join Date: Jun 2009
Posts: 4
leg0
Offline
Registered User
Hello!

I tried searching for solution, but the only message I could find was dated 2006 something and saying that this was impossible. Regardless I think it must be possible. I have Nokia 6212 Classic as a test phone. This phone contains applications such as Stopwatch, Calendar and Alarm Clock that all can be run in the background. At least it seems so. What mechanism do these applications use to achieve the effect? Reference to appripriate APIs would be great.

Thanks!
Reply With Quote

#2 Old Re: How to make a midlet run in the background on S40? - 2009-06-29, 14:50

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Online
Forum Nokia Champion
Hi,

In every thread about this I have seen on this forum, the conclusion was always the same: it isn't possible to run apps in the background on Series 40 devices. Only S60 ones can do it.
Reply With Quote

#3 Old Smile Re: How to make a midlet run in the background on S40? - 2009-06-29, 15:06

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Quote:
Originally Posted by leg0 View Post
Hello!

1.Regardless I think it must be possible.

2.This phone contains applications such as Stopwatch, Calendar and Alarm Clock that all can be run in the background. At least it seems so. What mechanism do these applications use to achieve the effect?
Thanks!
1.How,if the particular API/activity is not supported bu the device itself,then how you will implement the same.Rather you will be just wasting the time.Series 40 devices does not let the application runs in the background at all.Thats not possible dear,

2.watch,calender,and rest of the application are the native applications and might be Nokia has made the restrictions for the user applications.They have just install the application and they keep on running in the background,being the native application.However, for the user application they have just denied due to the specific reasons,like the performance of the device,and so on.
But at the end of the day,you can not run the application in the background,at any cost.

Nokia guy's,If I am wrong while explaining the second point,then please forgive me,and correct me.But I would say that question asked by the starter of the thread,make some sense.Please explain this thing in details.


Thanks

R a j - The K e r n e l
Reply With Quote

#4 Old Re: How to make a midlet run in the background on S40? - 2009-06-29, 15:38

Join Date: Jun 2009
Posts: 4
leg0
Offline
Registered User
Ok, if making midlet run in the background is really impossible, then would it be possible to let the OS lock the keypad while my application is running? Or does the "locking" have to be part of my application?
Reply With Quote

#5 Old Smile Re: How to make a midlet run in the background on S40? - 2009-06-29, 15:51

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Quote:
Originally Posted by leg0 View Post
Ok, if making midlet run in the background is really impossible, then would it be possible to let the OS lock the keypad while my application is running? Or does the "locking" have to be part of my application?
Hi,
Using Java ME thats also not possible.


Thanks

R a j - The K e r n e l
Reply With Quote

#6 Old Thumbs up Re: How to make a midlet run in the background on S40? - 2009-06-29, 19:07

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
whats the result if we not use any kind of displayable in application. Is application without any displayable seems to be running in background???


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#7 Old Re: How to make a midlet run in the background on S40? - 2009-06-29, 19:13

Join Date: Jul 2008
Posts: 329
Location: Faridabad(Delhi NCR)
Send a message via MSN to ansh.chauhan Send a message via Yahoo to ansh.chauhan
ansh.chauhan's Avatar
ansh.chauhan
Offline
Regular Contributor
In my opinion we cant run application on S40 devices.Because when we press red key on mobile while your application running it always say us to exit application.I took this as assumption but this can be run only on S60 devices


Anshu Chauhan
J2me Developer
Reply With Quote

#8 Old Smile Re: How to make a midlet run in the background on S40? - 2009-06-30, 08:24

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Hi,
Whatever you display or not,or you do anything,thats not possible so far.


Thanks

R a j - The K e r n e l
Reply With Quote

#9 Old Re: How to make a midlet run in the background on S40? - 2009-06-30, 09:28

Join Date: Apr 2007
Posts: 1,756
Tiger79's Avatar
Tiger79
Online
Forum Nokia Champion
shortly :
- you cannot run an application in the background on a S40, because it's not a multitasking OS... On the other hand the S60 OS is multitasking hence on that particular platform you can run an application in the background, even though it might not work correctly consistently on ALL S60's...
- unfortunately you cannot lock (or unlock for that matter) the keypad from within a J2ME application... This is because of the sandbox principle which is applied to the J2ME language/environment... The appllications simply shouldn't be able to get control over a mobile...
Reply With Quote

#10 Old Re: How to make a midlet run in the background on S40? - 2009-08-06, 11:39

Join Date: Aug 2009
Posts: 2
surfa
Offline
Registered User
I'm not correcting all misinformation below, but have you tried instructions given in this PDF:

http://download.gceclub.sun.com.cn/e...47/TS-4447.pdf

That document is pure S40 informative and has JAD tag changes example that should make it possible to background a MIDlet.
Last edited by surfa : 2009-08-06 at 11:50.
Reply With Quote

#11 Old Re: How to make a midlet run in the background on S40? - 2009-08-06, 13:12

Join Date: Nov 2007
Posts: 251
arungupta_2jan
Offline
Regular Contributor
I think in seris 40 we cant run application on background ...
Reply With Quote

#12 Old Re: How to make a midlet run in the background on S40? - 2009-08-06, 13:41

Join Date: Dec 2005
Posts: 1,886
Location: Brazil
Send a message via MSN to juarezjunior Send a message via Skype™ to juarezjunior
juarezjunior's Avatar
juarezjunior
Offline
Forum Nokia Champion
Hi,

Check this page at FN Library to know what is possible for Series 40 and S60 regarding your requirement.

http://library.forum.nokia.com/topic...7-20DE4A538FB8

Best regards,


Juarez Alvares Barbosa Junior - Brazil
Reply With Quote

#13 Old Re: How to make a midlet run in the background on S40? - 2009-08-06, 14:04

Join Date: Aug 2009
Posts: 2
surfa
Offline
Registered User
Quote:
Originally Posted by juarezjunior View Post
Hi,

Check this page at FN Library to know what is possible for Series 40 and S60 regarding your requirement.

http://library.forum.nokia.com/topic...7-20DE4A538FB8

Best regards,
I at least am aware of that site, but the information there seems to conflict with the presentation I pasted earlier. The PDF itself seems to be Nokia originated so I'd consider it rather reliable too.

It oppositely seems to present the ways to backgrounding of an S40 MIDlet even that it's dated 2006, I'm pretty confident that features such as that wouldn't be removed if provided once.

I know that plenty of people *think* that it isn't possible, but I'd like to see someone trying the instructions in the PDF. I kind of have a feeling that forum Nokia articles such as above, aren't completely up to date considering S40 context.
Reply With Quote

#14 Old Re: How to make a midlet run in the background on S40? - 2009-08-06, 14:09

Join Date: Dec 2005
Posts: 1,886
Location: Brazil
Send a message via MSN to juarezjunior Send a message via Skype™ to juarezjunior
juarezjunior's Avatar
juarezjunior
Offline
Forum Nokia Champion
Hi,

I agree with you, but the vast majority of what is promised on the PDF never made to Series 40 phones, as far as I know...have you tested it? ;-D


Juarez Alvares Barbosa Junior - Brazil
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
6212 NFC midlet crash when user access phonebook and make a call. Avistamagnus Near Field Communication 2 2009-06-25 13:30
How to run midlet in background deveshwani Digital Rights Management & Content Downloading 2 2009-05-20 07:51
How to make the background of a Custom Canvas Transparent markchua_99 Mobile Java General 4 2008-09-30 03:57
How to create .sis file...? satishkatta Carbide.c++ IDE and plug-ins 25 2008-09-04 13:43
MIDlet: Can't Install, Run, or Delete davidmanpearl Mobile Java General 7 2007-04-25 18:23

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