Unable to close an application developed

Hello

I developed an application that makes repeated voice calls every 10 seconds. Here's the code-

Import mypackage. MyScreen;
Import net.rim.blackberry.api.phone.Phone;
Import net.rim.device.api.system.RadioException;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.system.EventInjector;
Import net.rim.device.api.system.EventInjector.KeyCodeEvent;
Import net.rim.device.api.system.KeypadListener;
Import net.rim.device.api.ui.Keypad;
Import net.rim.device.api.ui.component.Dialog;

/**
* This class extend the UiApplication class, providing a
* graphical user interface.
*/
SerializableAttribute public class Voicecall extends UiApplication
{
/**
* Entry point for application
@param args command-line arguments (not used)
*/
Public Shared Sub main (String [] args)
{
Create a new instance of the application and make the currently
who runs the thread of the application of the event dispatch thread.
PAP Voicecall = new Voicecall();
theApp.enterEventDispatcher ();
}

/**
* Creates a new object Voicecall
*/
public Voicecall()
{
running boolean = true;

Push a screen onto the stack in the user interface for rendering.
pushScreen (new MyScreen());

While (true) {}
try {}
Phone.initiateCall (Phone.getLineIds () [0], '45671234');
} catch (RadioException e) {}
Generative TODO catch block
e.printStackTrace ();
}

try {}
Thread.Sleep (30000);
} catch (InterruptedException e) {}
Generative TODO catch block
e.printStackTrace ();
}

final EventInjector.KeyCodeEvent pressEndKey = new EventInjector.KeyCodeEvent)
KeyCodeEvent.KEY_DOWN, Keypad.KEY_END, KeypadListener.STATUS_NOT_FROM_KEYPAD (char));
EventInjector.invokeEvent (pressEndKey);
try {}
Thread.Sleep (10000);
} catch (InterruptedException e) {}
Generative TODO catch block
e.printStackTrace ();
}
}
}
}

I'm not able to close this application once I start it

I am a beginner so please forgive my igonarance

See you soon

Rajat

I have a created a thread to introduce voice calls, and now I can see the option close

Thank you

Tags: BlackBerry Developers

Similar Questions

  • the application was unable to start correctly (0xc0000142). Click OK to close the application. Why?  Please help me!

    the application was unable to start correctly (0xc0000142). Click OK to close the application. Why?  Please help me!

    [Duplicate message deleted... post the same question more than once is confusing... MOD]

    [This is an open forum, not a direct line to Adobe support... you have to wait a response]

    Hi Jeff,

    Update for Premiere Pro CC 2015 (9.2) for a fix.

    Thank you
    Kevin

  • Failed to open the first Pro CC 2015.Windows are unable to connect to the Adobe server... This application failed to start properly 0xc000001d... Click ok to close the application

    Failed to open the first Pro CC 2015.Windows are unable to connect to the Adobe server... This application failed to start properly 0xc000001d... Click ok to close the application

    Hi qksdjhfb,

    For a fix, update for first Pro CC 2015 (9.2).

    Thank you

    Kevin

  • "The application was unable to start correctly (0xc000007b). Click OK to close the application. »

    I have a Dell all-in-one that I had to send for a new motherboard. While they have it, I got them the reformat. I'm trying to put Skype on it, but I get this error message once downloaded and when trying to install: " ", ", the application failed to start correctly (0xc000007b). Click OK to close the application. " I am running Windows 7 Home Premium 64-bit. None of my other programs I had to reinstall caused me a bit of trouble, but Skype won't move past this error message. Any help would be appreciated.

    I thought about it. I couldn't install it from Chrome, but I did of IE and it's fine now.

  • Unable to open the program. I get this: lightroom.exe - application error: the application could not start corrrectly (0xc000007b). Click OK to close the application.

    Lightroom.exe - application error: "the application could not start correctly (0xc000007b). Click OK to close the application. »

    I use lightroom 5.

    Please see the troubleshooting link: Solutions for Photoshop Lightroom 0Xc000007b error

    Kind regards

    Mohit

  • VSNClient.exe - the application failed to start correctly (Oxc0000022) click on ok to close the application.

    I have the - 'VSNClient.exe - the application failed to start properly (0xc0000022). Click OK to close the application ".» After having clicked on the desktop does not come and the background is also black.  I can get to the Task Manager and using safe mode. I tried several ways to get rid of him without success. It is the Vaio with Windows 7 64 bit. Can anyone help please?

    VSNClient. exe is part of a product called known as VAIOSmartNetwork.exe and it is developed by Sony Corporation.

    You will need to re - install or remove in safe mode.

  • JavaScript function to close the application

    Hi all, I did a very basic HTML5 form using WebWorks that allows users to fill out a load of options click on send (mailto, to send data to a database). This works well. However, after I sent the e-mail, the application is still open. Is it possible to close the application using javascript?

    you need this plugin:
    WebWorks plugin adds com.blackberry.app

    then, this function closed the application:
    BlackBerry.app.Exit)

    more info:

    https://developer.BlackBerry.com/HTML5/APIs/v2_2/BlackBerry.app.html#jbo1385148761859

  • The application failed to start correctly (0xc000007b error) click on Ok to close the application

    Error 0xc000007b when access to the game.

    I have a new laptop with windows 8 pro 64 bit OEM games

    I installed directx, C++, enabled Net Framework of windows features to play the souls and similar stuff

    each of these programs is updated, I need for speed most wanted 2 and Fary Cry 3 and I have installed on my computer properly

    Now when I try to run the game it gives this error again n again. I am tired, put it back, with compatibility mode does not change, I checked my anti-virus and firewall if they use shields to block some people, said that the application tries to load another bad dll files say that it's a 32 and a matter of 64-bit well honestly, I don't know what to do my friend has the same operating system windows 8 pro and everything works fine with it , I was hoping that you help me to find a way to solve the problem and try to properly load NFS and FAR CRY 3. This is the error

    NFS.exe - Application error (the application was unable to start correctly (0xc000007b). Click OK to close the application.)

    and I thank you.

    My laptop Specs are

    HP laptop pavilion g6 Core i5 2.50 Ghz 3rd generation, 4 GB ram, 500 GB HDD, ATI HD 7000 graphic card series 2 Gb GDDR5

    Kindly solve my problem, I'll be very grateful

    (new method also microsoft don't know)

    guys I have a solution to error 0xc000007b.
    you just just to

    1: Download "msvcr100.dll" in 32 bits.

    http://download.dll-files.com/0e37fbfa79d349d672456923ec5fbbe3/msvcr100.zip?0XEjQGdGiV

    2: stick to
    C:\Windows\System32 (Windows XP, Vista, 7, win 8)
    If you use a 64-bit version of Windows, you also need to place the .dll file in
    C:\Windows\SysWOW64\

    3: done

    If you have 64-bit windows then no problem you just download "msvcr100.dll" in 32 bit 64 bit not only then stick two directories mentioned above.

    Thankx

    (Sorry for my BAD ENGLISH)

  • I'm unable to use windows applications in my college. Is it because of the proxy connection?

    I'm unable to use windows applications in my college. Is it because of the proxy connection? Each app says I'm not connected to a network. Please let me know how to encounter this problem.

    Hey Brad,

    1. What is the accurate and complete error message you get?
    2. don't you make changes to the computer before this problem?

    There could be various reasons why you will not be able to connect to the Windows store.

    I suggest to disable the proxy server and check.

    (a) press the Windows key and the R key to open the prompt to run . Type inetcpl.cpl in the run prompt and press to enter.
    (b) in the 'Internet Options' window that opens, click on the tab "connections" at the top.
    (c) click on 'network settings' at the bottom of the section "connections."
    (d) if the "Proxy Server" box is marked with a check, click it to uncheck/disable.
    (e) click on 'Ok' to close the window "local area network (LAN) settings".
    (f) click on 'Ok' to close the 'Internet Options'.

    I also recommend a complete analysis using the antivirus program installed on the computer or by using the Security Scanner from Microsoft that this problem can also occur by malware.
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Safety Scanner WARNING: There could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.

    Hope this information helps. If you have any questions, please let us know.

  • I've just updated my CC Apps and Noah l get the following when you try to start Dreamweaver: the application failed to start correctly (0xc000007b). Click OK to close the application.  Help!

    The application was unable to start correctly (0xc000007b). Click OK to close the application.  Help!

    Please see:

    Flash.exe & Dreamweaver.exe error 0xc000007b

    How to repair (0xc000007b) error easily for all the works of Windows 7/8/8.1/10 (resolved) - YouTube

    I hope this helps.

    Concerning

    Megha Rawat

  • How to close open applications in Apple Watch (os3)

    How to close open applications in Apple Watch (os3)

    One thing to try-

    Have you tried to close them on the phone by double tapping the home button and then hit swipe to close the iPhone connected?

  • Red dot that closes an application becomes black and crashes when you click

    If I use a mouse Mighty Mouse or Magic Mouse or Magic Mouse 2, the small red candy that closes an application frequently darkens when I click it. It freezes the app. I can still move the mouse cursor, but nothing else open or close until I click on the desktop, then click again on red gumdrop for the APP. This happens on all sorts of applications, Apple and third parties. It happens almost every time, but not always.

    This started after I've upgraded to a new trio of Apple keyboard, mouse, and trackpad with rechargeable batteries. I used a Mighty Mouse Wireless before getting the Magic Mouse 2. Because the edges of the Magic Mouse 2 literally cause my fingers hurt, for a while, I used the two mice. Maybe two mouse active at the same time have caused the problem. I looked everywhere in my library to the appropriate to throw files user preferences, but it left me speechless. I even tried resetting the PRAM and SMC resets.

    This behavior has migrated to a second iMac when I used Migration Assistant to import my main user account to the new machine. This machine's human interface devices are an Apple wired aluminum keyboard and a wired Mighty Mouse. So I'm sure it's a corrupted preferences file, but I don't know which.

    The two iMacs are 27 "(end-2012 and the end of 2013), and both are running macOS El Capitan 10.11.5 with all the updates."

    Any ideas on what is happening or how to fix it? Thanks in advance.

    Have you tried to "Force quit" the app (s) affected as and when the problem occurs, followed by a reboot?

    If the mice are sitting close to each other they are likely to interfere, although the button color change is not something that I've met before.   Disconnect the old mouse because only Magic Mouse 2 will work correctly with El Capitan.

  • Windows 10 compatibility with applications developed in LabView

    We have deployed several applications developed in LabView that are running OK under Win7 and Win8.x.

    Are there problems of known incompatibility with 10 Windows and applications created with "LV2012 SP1 that read data from cards NiDaq". We should warn our clients to not upgrade their operating system or should we ask them to install a specific version of the runtime OR or NiDaq libraries?

    Best,

    Gerard

    Hatefk wrote:

    I have one is not concerned about the development environment as much as I'm worried about customers who use our products.

    Well the development and EXE run the same runtime for code execution, and the same things like DAQmx drivers.  If you upgrade to Windows 10, and something goofy happens to the TCP stack, you call up NOR help, but they say the solution is to pass some version of LabVIEW is supported in Windows 10.  The probability of this happening is slim, but more strange things happened.

  • Error: "address book has been locked by another application. Please, close other applications and try again.

    Original title: locked file on CD by an unknown application. How can I find?

    I burned my address book on a CD. When I try to open the file, I get the following message: "address book has been locked by another application. Please, close other applications and try again.  How can I find what is the other application?

    Hi JimSpell,
     
    This problem occurs if the Windows address book file used by Outlook Express is marked with the read-only attribute.
     
    Follow these steps to solve the problem.
     
    a. Click Start, point to find and then click files or folders.
    b. in the search for files named, type: *.wab.
    NOTE: If you find more than one .wab file, make the following changes for all files.
    c. click file .wab you find. On the file menu, click Properties.
    d. in the Properties dialog box, under attributes, clear the read-only check box.
    e. click on apply and then click OK.
    f. open Outlook Express and test a new e-mail message or try to access the address book.
     
    For more information, see:
    Note: The information provided in this article are applied to Outlook Express 6 in Windows XP as well.
  • Scripting question - how do you close an application

    I got an excellent script by Bill James that opens a series of requests after having timed delays (see below). I would like to adapt the script to CLOSE an application that has been opened, but does not know how to do this. Any tips? Thank you

    PJS

    Script delay, Bill James (http://billsway.com/vbspage/)

    SecondsToDelay = '5 '.
    ProgramToRun = 'iexplore' [insert the full path]
    Wscript.Sleep(SecondsToDelay * 1000)
    PROG = Chr (34) & ProgramToRun & Chr (34)
    CreateObject ("WScript.Shell"). Run (Prog)

    SecondsToDelay = "10".
    ProgramToRun = 'winword' [insert the full path]
    Wscript.Sleep(SecondsToDelay * 1000)
    PROG = Chr (34) & ProgramToRun & Chr (34)
    CreateObject ("WScript.Shell"). Run (Prog)

    Thank you. Will do.

    PJS

Maybe you are looking for