How to make a popup of General Conditions and start the application later

Hello

Make a popup terms without white background my static main (String [] args) branches off to an instance of the Application to display the context menu.

The user then hits accepts the T and C, and then my GUI application should start.

What I did to start the GUI is to plan the same application and then exit. The next time static hand (String [] args) starts I then branch to the UIApplication and launch my main application.

It works, but the time for the app restart must be at least 5 seconds.

Is there a better way to display a popup T and C without white background, and when the user accepts the popup, the GUI starts?

I can't believe that I fell for it, but...

I want to dedicated this to all non-believers out there:

package mypackage;

import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.Dialog;

/**
 * This class extends the UiApplication class, providing a
 * graphical user interface.
 */
public class MyApp extends UiApplication implements Runnable
{
    /**
     * Entry point for application
     * @param args Command line arguments (not used)
     */
    public static void main(String[] args)
    {
        MyApp theApp = new MyApp();
        theApp.invokeLater(theApp);         

        theApp.enterEventDispatcher();
    }

    /**
     * Creates a new MyApp object
     */
    public MyApp()
    {
//        // Push a screen onto the UI stack for rendering.
//        pushScreen(new MyScreen());
    }

    public void run() {

        pushGlobalScreen(new Dialog(Dialog.D_YES_NO, "T & C", 0, null, Dialog.GLOBAL_STATUS), 1, MyApp.GLOBAL_QUEUE | MyApp.GLOBAL_MODAL);
        System.out.println("This line should be printed only after the dialog is closed");
    }
}

Remember that you should check the user input and respond accordingly.

E.

Tags: BlackBerry Developers

Similar Questions

  • How to make a video DVD of myself I use the webcam for laptop?

    How to make a video DVD of myself I use the webcam for laptop? I never did a video before, and I am a teacher who wants to put my sessions on DVD now. How and what do I do?
    Thanks in advance.

    Hi Sdashe,

    You need to browse for some third-party applications that could support the web cam video, and you can use windows media center media player to burn DVD.

    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Center

    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Player

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

  • My panels disappeared.  How to make a comeback?  (I all checked, including the histogram, layers, actions and adjustments)

    My panels disappeared.  How to make a comeback?  (I all checked, including the histogram, layers, actions and adjustments)

    Hello madeline,

    Please check that you have selected the correct "essentials" workspace, if you already correct then try to restore Photoshop preferences to default.

    Steps to follow:

    To re-create the Photoshop preferences files, start the application while pressing Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop settings file?"

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • How to transfer pictures from iphone to PC and keep the date, time and place

    How to transfer pictures from iphone to PC and keep the date, time and place

    Hello Grumpelfuerer,

    Thank you for using communities of Apple Support.

    If I understand your message that you want to import your photos from your iPhone 6 s, as well as for your Windows PC. I would like to save my photos on my computer as well. There are two ways to do this. You can use the iCloud photo library allowing to synchronize photos between your devices or import your photos to your PC using Windows Photo Gallery. This article will provide you with the steps that you can use for both options:

    Import photos and videos from your iPhone, iPad or iPod touch

    Best regards

  • Once an unapproved site is added as an exception, how can I go back and delete the exception later?

    Once an unapproved site is added as an exception, how can I go back and delete the exception later?

    Thank you, Jefferson. You addressed the issue beautifully and delightfully complete.

    I found and deleted the server where I got the exception.

    "In the future, I suggest, by making an Exception, uncheck the box that adds a permanent exception. In this way, when you exit Firefox, the exception is removed automatically. »

    AHA. It's very good to know. I missed it when granting the exception today.

    The exception I gave (and now deleted) today wasn't really a risky site. I know the owner. Just a little problem in their relationship.

    Thanks again. And thanks Toddy... I did not say clearly what type of exception.

  • installed the game CD Gears of War on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.

    original title: Gears of War for PC (Vista)

    I installed Gears of War game CD on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.  I've been on the net and does not know what is the problem and why this game will not run.  I've installed, uninstalled, reinstalled tried to run as administrator, got the latest patch, all the things that have said all sites to do - anyone have any ideas?  Any help would be appreciated!  Thank you!

    Hi NoOneSpeciale,

    It is very possible that your CD may be damaged.  Is it possible to get another copy to try on your machine? Or try this copy on another machine to see if it works or not.
    Also check in control panel--> system--> for you Device Manager make sure that there is no yellow/red icon next to the CD player and it's function correctly.

    Let us know the result, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I filled out a form on the page 8 and he saved several times along the way, and now when I open this file, the form is empty?  How can I save my work so I can open the form later and it contains all my data?

    I filled out a form on the page 8 and he saved several times along the way, and now when I open this file, the form is empty?  How can I save my work so I can open the form later and it contains all my data?

    Hi Eileen97933052,

    The PDF form must be extended drive in order to have this feature to save & print the form data.

    Please confirm by the PDF Creator is the PDF reader or not extended.

    Otherwise, if you have Acrobat installed on your system, you can reader extend PDF form yourself.

    Kind regards

    Nicos

  • How can I delete large groups of photos and save the ones I want to keep?

    How can I delete large groups of photos and save the ones I want to keep?

    Rickw salvation,

    You must select all the images you want to remove in now CTRL + click in Windows and command-click on Mac.

    Once this is done, you can press the delete button to delete the catalog.

    It will also give you the option to delete the computer as well.

    Please click the link for information detailed below.

    Adobe Photoshop Lightroom Help | Manage photos in folders

    I hope this helps.

    ~ UL

  • question on "How to call a method once when starting the application"

    Hello everyone.

    I'm trying to implement that article "How to call a method once when you start the application" by Frank suggests.
    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_invoke_a_method


    Suppose I want to have a single entry point, so in my login.jpsx I have the below:
    <f:view beforePhase="#{login.onBeforePhase}">
    In the 'onBeforePhase' method, I have to pass the phaseEvent, since the signature is as follows:
    public void onBeforePhase(PhaseEvent phaseEvent)
    But how do I know the phaseEvent during the call to the login.onBeforePhase? How the call should be?

    Thank you very much!


    PS. I use jDev 11.1.2.1.0

    You must not pass something to this method, this method is called before each Phase except view restoration
    Just write logic as Frank suggested to the phase in which you want the code to run. You can get the PhaseId analogues

    PhaseId.RENDER_RESPONSE

    public void onBeforePhase(PhaseEvent phaseEvent) {// from Frank's doc
     //render response is called on an initial page request
      if(phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE){
    ... etc
    
  • How to make a transfer of general accounts in R12?

    I'm looking for general ledger, version 11.5.10.2 report, she found herself in the Recievables Manager > Interfaces > accounting. In R12, I'm not sure on how to run this same report. Where is located the report?

    Thank you.

    R - 12 to make the transfer of receivables accounting information of Oracle subledger to Oracle General ledger accounting, run the program create accountants in the final
    mode. When you create the final report, the accounting program create transfers data on your adjustments, releases of flow, assets, liabilities, debit notes,.
    invoices received at a table interface subledger accounting and, depending on the other input parameters, manages the log import and record journal entries in general
    General Ledger. Or, you can create a project accounting first; later, when you create the final account, you can complete the transfer and validation process. Project accounting entries cannot be transferred to the General Ledger.

  • How can I go into a used computer and change the username to the mine and to make a new password or delete the old user of my computer completely? (preferably get rid of the former user)?

    I need to know how to solve this problem in detail please

    I bought a computer with windows xp service pack 3 and when I start it the old user keeps popping up asking for a password. I want to know how to enter and change the username to the mine and to make a new password or delete the old user of my computer completely (preferably get rid of the former user)?

    See the following link to delete the account: http://support.microsoft.com/kb/279783

  • How to make a music CD is inserted, added to the list of Windows Media Player library?

    Windows media player

    How to make a music CD is inserted added to my list of Media Player library? No installation of 'Add' seems to be available.

    How to make a music CD is inserted added to my list of Media Player library? No installation of 'Add' seems to be available.

    It is called 'rip '.

    Insert the CD > when Windows Media Player starts to play, click on Rip to the toolbar > music CD menu appears > check mark to one you want > bottom right, click Start Rip

    Once completed, check another > click Rip > and so on... For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • How to make a program available to all users if the program was installed for a user

    Basically, the problem is that I created another user account, but only a few random apps appear on it and I was REALLY looking FORWARD to having to reinstall some programs + 50 so my computer can function normally on my secondary account.  I am able to find a lot of programs installed by snooping around in Explorer and have been able to run some by creating shortcuts, but many of them (Spybot, Itunes, Google Chrome, THE LIST GOES ON!) nothing do when the .exe is open and are unusable (on this account).
    Also, I want to say there is no page support for Windows 7 that cover this topic (that I could find by using the provided search engine), and the more those (as for windows 2000) do not apply because they tell you to move files Windows has more, but it is a known problem and Microsoft should incorporate a simple way to add or remove accounts without uninstall/install programs just to be able to check a box... _ Perhaps there could even be an option for this in a very obvious place, as installed programs list of the filth or user account settings.

    Emzzey wrote:
    > Fundamentally, the problem is that I created another user account, but only a few
    > random applications appear on it and I was REALLY looking FORWARD to having to reinstall some
    > + 50 programs while my computer can run normally on my secondary account.
    > I am able to find a lot of programs installed by snooping around
    > Explore and have been able to run some by creating shortcuts, but a large number of
    > (Spybot, Itunes, Google Chrome, THE LIST GOES ON!) don't do nothing when the .exe
    endered useless (on this account).
    >
    >
    > Also, I want to say there is no page support for Windows 7, which deal with these
    > subject (that I could find using the search engine provided) and older
    > (as for windows 2000) do not apply because they tell you to move files that
    > Windows has more, but it's a known problem and Microsoft
    > should include an easy way to add/remove programs of accounts without
    > uninstall/install just to be able to check a box... _, may be
    > could even be an option for this in a very obvious place, like user account
    > settings or the bitch list installed programs!

    Any application that is properly designed to work on Windows 7
    either would give the person making the installation option to
    make the application available to all users, or do it automatically.
    by default. It is entirely the responsibility of an application
    programmers and out of Microsoft's control. Thus, the easiest way, of
    of course, is to use an application that is designed for a multi-user operating system.
    But, unfortunately, this is not always an option, where companies must rely on
    existing proprietary applications.

    If you install the legacy application places its shortcuts
    only in the start of the person performing the installation, all the
    You may need to do is to move these Start Menu entries to the same
    location in the C:\ProgramData\Microsoft\Windows\Start start\program
    folder and/or the C:\Users\Public\Public Desktop folder.

    In addition, such an incompatible application can offer additional
    "challenges:

    You may experience problems if the software has been designed to
    Win9x / Me, or if it was intended for Windows NT / 2 K/XP, Vista/Win7, but was
    poorly designed. Quite simply, the application 'knows' how
    manage individual user with different security permissions profiles
    e going to
    'banned' sections of the Windows registry or Windows protected
    system folders.

    For example, the saved data is often stored in a subfolder under the
    folder of the application in C:\Program Files - a place where it doesn't
    the inexperienced user or limited should never have write permissions.

    It may even be that the software requires 'write' access to the parties
    the registry or the files/folders to systems protected are not normally
    accessible to regular users. (He * didn't * happen if the application is)
    correctly written.) If this does not prove that that is the case, however, you
    often left with three options: either grant the required users
    privileges of senior access (either as users with power or local
    Administrators), explicitly grant privileges for normal users
    the relevant records and/or parts or the registry or replace the
    request by another who has been properly designed especially for
    WinNT / 2 K/XP/Vista/Win7.

    Some programs do not work if you connect limited account
    http://support.Microsoft.com/default.aspx?scid=KB; EN-US; q307091

    In addition, here are some tips suggested, in response to a
    another post, MS - MVP Kent W. England:

    "If your game or your application works with administrator accounts, but not with."
    limited accounts, you can set it to allow limited users to access to the
    folder Program files with 'change' ability rather than 'read' that
    is the default value.

    C:\>Cacls "Program Files\appfolder" /e /t /p user: c

    where "appfolder" is the folder where the application is installed.

    If you want to undo these changes, then run

    C:\>Cacls "Program Files\appfolder" /e /t /p user: r

    NOTE: On Win7 Icacls.exe gives more control.

    If you still have a problem with the delivery of the program or save the settings
    on limited accounts, you may need to change the permissions in the registry
    keys. Run regedit.exe and go to HKLM\Software\vendor\app, where
    the key of the Publisher of the software used to your own
    program. Change the permissions on this key to allow users full control. »

    --

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty for a little temporary
    safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest was
    has killed a large number of philosophers.
    ~ Denis Diderot

  • How to make Custom Bitmap ButtonField background transparent and not black?

    I have a buttonfield bitmaps customized using a png with transparent rounded corners. It appears as a black rectangle with the image on it. How can I make transparent blackground? I think that my problem lies in this code and I tried to use "alpha" with no results:

    Protected Sub paintBackground (Graphics Graphics) {}

    try {}
    graph.setGlobalAlpha (0);
    graph.setBackgroundColor (Color.BLACK);
    Graph.Clear ();
    }
    Finally {}
    }

    I'm sure it's a simple answer, but thanks anyway for the help!

    So I tried to do the same thing to paint override, and now the buttons are not displayed at all the haha. In any case, another programmer has helped me too and came up with the following code, it works and the problem is resolved. Thanks for your help guys, I'll put 'likes' for you. If anyone needs the code here, this is:

    SerializableAttribute public class BitmapButtonField extends {field}
    _onPicture private bitmap;
    _offPicture private bitmap;
    private int id;

    public BitmapButtonField (Bitmap onImage, Bitmap offImage) {}
    Super(Field.FOCUSABLE |) Field.FIELD_HCENTER);
    _offPicture = offImage;
    _onPicture = onImage;
    }

    {public setButtonImage Sub (onImage, offImage Bitmap Bitmap)
    _offPicture = offImage;
    _onPicture = onImage;
    }

    {} public void setButtonId (int id)
    This.ID = id;
    }

    public int getButtonId() {}
    return this.id;
    }

    public int getPreferredHeight() {}
    Return _onPicture.getHeight ();
    }

    public int getPreferredWidth() {}
    Return _onPicture.getWidth ();
    }

    protected void drawFocus (Graphics g, boolean on) {}
    }

    Protected Sub layout (int width, int height) {}
    setExtent (Math.min (width, getPreferredWidth()),
    Math.min (height, getPreferredHeight()));
    }

    Protected Sub paint (Graphics Graphics) {}
    graph.drawBitmap (0, 0, getWidth(), getHeight(), isFocus()? _onPicture: _offPicture, 0, 0);
    }

    protected boolean navigationClick (int status, int time) {}
    fieldChangeNotify (0);
    Returns true;
    }

    {} public boolean keyChar (key char, int status, int time)
    If (key == Characters.ENTER) {}
    fieldChangeNotify (0);
    Returns true;
    }
    Returns false;
    }
    }

  • Re: How to make a video to a Web site on the first

    bit of a luddite here.  first pro has just started, it's a blank slate.  How to make a video of a website in preview?

    [Branched out in a new thread, mod]

    Hi Eric,.

    At the bottom of the video screen, there are tools for users to modify and use portions for your personal use.

    I tried. You must have an account first. Then, drag the handles to pick your snippet. The clip will be saved in your account page. At the bottom right are the download options. Only the version low quality is free. The superior quality that would work very well in Premiere Pro require a small fee. Pay for the file download and then import them into Premiere Pro. Hope that helps.

    Kind regards

    Kevin

Maybe you are looking for

  • Re-enable the backup automated in iCloud

    To save the size, I deleted a backup of my camera.  From: iCloud: delete a backup device iOS to iCloud If you delete your backup for your iOS device, iCloud will stop automatically backup of the device. Instead of backup of your iCloud iOS device, yo

  • Increase in CPU abruptly when you open my main VI

    Hi, this may be a silly question. I develop a GUI recently and I that when I opened my main VI (is not running), the CPU usage increases significantly more 40%. I'm using Labview 2015. Does anyone have an idea of how this happens? PS: The CPU is redu

  • HP Envy 5534: Printer drivers to print copies without borders

    I normally print borderless photos, but the printer above does give me the option. Is there a method to add copies with no margin for all sizes to this printer

  • My sreen screen is upside down? How can I fix it?

    my screen on my laptop turned 180 degrees, so everything on it is backwards? any help would be great, because I'm pretty rubbish on computers! Thank you

  • (Redirected) The Dell technical support is catastrophic.

    I got an Alienware M14x end may, 2013. A few months, about 3 pixels grilled and a USB port stops working. Instead of just replace parts and sending it to me, they're sending me a 4th gen 14 Alienware, brand new, top-of-the-line. It was but a curse in