×

Discussion Board

Results 1 to 6 of 6

Thread: cool alert

  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    84

    Exclamation cool alert

    dears

    i have 2 question:
    first one: i there any way in the j2me to display alert ( cool alert ) not the Alert knows ( like windows live messenger alert for new chatting msg) or any other idea ???

    second one: how i can let the application running in the back ground???


    form more details: i'm trying yo build an application (J2ME based) to run in background and display alert when new info become available

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: cool alert

    Quote Originally Posted by m-lamaa View Post
    first one: i there any way in the j2me to display alert ( cool alert ) not the Alert knows ( like windows live messenger alert for new chatting msg) or any other idea ???

    second one: how i can let the application running in the back ground???
    First: Yes there is the concept of the alert in java me.Please read more about this here,
    http://developers.sun.com/mobility/m...s20/index.html
    For source code examples
    http://www.java2s.com/Code/Java/J2ME/Alert.htm

    Second; to set a j2me app to the background use the following in your midlet class:

    Display.getDisplay (this).setCurrent (null);

    to get the screen back use the following:

    Display.getDisplay (this).setCurrent (myCanvas);

    Where myCanvas is your canvas instantiation

    p.s. You can still use a thread or timer to do things in the background while your midlet is hidden.

    p.s.2: this does not work on all models. (Works on Nokia s60, SonyEricsson, but not on Nokia s40, Samsung and some others.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    84

    Smile Re: cool alert

    thx raj.



    i case of alert i'am allready working with these code. but i need alert in a new way (example: smalla icon on the top of screen the case is used by kasper sky and msn messenger
    Last edited by m-lamaa; 2010-04-29 at 11:04.

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: cool alert

    Quote Originally Posted by m-lamaa View Post
    i need alert in a new way (example: smalla icon on the top of screen the case is used by kasper sky and msn messenger
    Not possible with J2ME (JME).

  5. #5
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: cool alert

    but you might have a look at a third partu GUI library like LWUIT and J2ME Polish if they support something like that

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: cool alert

    Popup dailog in LWUIT can be customized to give you very good alert screen with, what ever things you want on it.

    http://java.sun.com/developer/techni...e/lwuit_intro/

    thanks,
    ~Amitabh

Similar Threads

  1. LCDUI Alert on an LWUIT Form
    By slugger_2003 in forum Mobile Java General
    Replies: 0
    Last Post: 2010-04-18, 13:01
  2. Change language for alert soft button in j2me
    By trandinhduy in forum Mobile Java General
    Replies: 2
    Last Post: 2009-05-04, 07:49
  3. Using images within an Alert
    By ayushv2005 in forum Mobile Java General
    Replies: 2
    Last Post: 2008-09-18, 09:01
  4. Alert confusion
    By Peanuts1971 in forum Mobile Java General
    Replies: 2
    Last Post: 2007-05-29, 04:40
  5. Bug in Commands of an Alert
    By matrix1982 in forum Mobile Java General
    Replies: 5
    Last Post: 2007-05-19, 01:39

Posting Permissions

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