Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8484413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:22:28+00:00 2026-06-10T20:22:28+00:00

Is there any way to not show the default dismiss button when I set

  • 0

Is there any way to not show the default dismiss button when I set Alert to FOREVER?

I was following the following post but it shows me a button with no characters.
http://code-gotcha.blogspot.com/2011/09/dismiss-button-in-nokia-alert.html?showComment=1346738220258#c4876777871081894195

alert.addCommand(new Command("\u200B", Command.OK, 1));
//we dont like to see the DISMISS command, so adding an invisible command

I am using LWUIT forms but have just invoked j2me native alerts to give the app a native look and feel.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:22:29+00:00Added an answer on June 10, 2026 at 8:22 pm

    There’s no portable way to do that with MIDP 2 API.

    Neither Alert nor Command have any feature that would somehow ensure application developer that particular tricks to command label would make its button invisible.

    Even if some hack works at particular device, there’s no guarantee that it will work on another. This applies even if you limit self to Nokia devices only – Nokia MIDP implementers are not bound by any specification to adhere to that funny trick with "\u200B" that worked once upon the time with specific device, they “have a right” to change that in any other device and even more, in any newer version firmware for the same device.


    As for giving the app a native look and feel if you want this I would strongly recommend you to think twice before using hacks like one you mention because these could very likely have an opposite effect.

    Just think of it, users who’d recognize Alert look and feel as familiar one, are most likely used to it from multiple other MIDlets. But thing is, most of these other midlets most likely use non-hacked Alerts that have well defined behavior, when dismiss command appears in particular context.

    Now think of how your app would feel in comparison to these typical, regular midlets? Yeah Alerts will look familiar but behavior will differ. In situations when user would expect Alert to have dismiss command, it would not. This is basically a royal road to get users confused and feel bad about unexpected behavior.

    Oh that application, the one where routine screen behaves in the wrong way…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to set a cookie that is not readable on subdomains?
is there any way in EF not to DropCreateDatabaseIfModelChanges, only insert new colomns and
Is there any way to tell GCC to not initialize a particular global array
Is there any way to check that my page is not opened in another
Is there any way to get a TextBox in j2me not editable? Because I
Is there any way that parent tag styles do not apply to child tag
Is there any way to play progressive videos that is not safe for streaming
Is there any way to know in Servlet is JS is enable or not
is there any way to define objects in hibernate.cfg.xml by scope and not one
Is there any way of ajaxifying Drupal so that page reloads are not reloads

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.