How to stop the program for a while?

Hi,
I've created a small prog that the only thing it does is to ask for a given password before granting access to certain data. It works fine on the WTK emulator (from Sun of course), but it crashes on a Nokia 6600 due to a bug in the Nokia's MIDP2.0 implementation. Now I need to trace/find the exact point of the program where it crashes (in the mobile phone - where the app gets closed). MY PROBLEM is that I need to insert into the program some kinda code that stops for a while the program saying "I am at the Nth step and running fine", but I can't stop the program from executing, because I can't find out how, I've tried the
display.setCurrent( someAlert );but it doesn't seem to stop the program like it would in an HTML JavaScript page. And:
Thread.currentThread().sleep( 2000 );doesn't stop for some reason the program either..
Can anyone give me a tip or a workaround of how I can temporarily stop the prog? Please help

Try putting the current thread to sleep right after setting the alert:
yourAlert.setTimeout(3000);
display.setCurrent(yourAlert);
try {
   Thread.sleep(3000);
catch(...)

Similar Messages

  • How to customize the program for maximum performance on my system?

    How to customize the program for maximum performance on my system?
    My system: i7-5820k processor, motherboard msi x99s gaming7, DDR4 RAM 8GB ,videocard MSI 970/

    What program?
    Mylenium

  • How to stop the process for some time

    I want to stop the process for some time can any one give the package or keyword or example for the same
    For suppose two programs A and B.. .B will run based on output of A. What i need is... When A is executed the process will stop for 5mins then B has to execute...

    You can use signals with DBMS_ALERT to "wake up" a procedure.
    Procedure A is something like this:
    DBMS_ALERT.REGISTER('B_FINISHED');
    do logic...
    when finished - send a signal
    DBMS_ALERT.SIGNAL('A_FINISHED','B you can start');
    now wait until B is finished
    DBMS_ALERT.WAITANY(...)
    continue logic hereAnd Procedure B is
    DBMS_ALERT.REGISTER('A_FINISHED');
    wait for a to finish
    DBMS_ALERT.WAITANY(...);
    do logic...
    when finished, signal A it can continue
    DBMS_ALERT.SIGNAL('B_FINISHED','A can continue');This is useful if u they need to wait for each other within the code. if they just need to wait - call B from A.
    Hope this helps.
    Edited by: Pyrocks on Nov 8, 2010 8:50 AM

  • How to stop the program flow

    Hi all,
    i need to stop the program flow control without entering into the start-of-selection.
    i am using some manual conditions for validating some parameter fields...
    i used Leave list-processing--->but it dosint works
    call selection-screen 1000--->it works but when i click the back button the control goes inside the start-of-selection can any one help me with this....

    If you want to stop the program flow in case one condition is satisfied, you can use STOP or EXIT command. Else, if you want to stop the program and debug it just but BREAK command where ever you want to stop the program. Also, if you want to validate the program selection at the time of entering the selection before the start of selection, you need to add AT SELECTION-SCREEN event block before the start of selection.

  • How to run the program for specified time

    Dear Friends,
    I have a small problem, I want to run my labview program for specified amount of time, Say for example it might be 1 hour or 5 hours or 10 minutes or even milliseconds(The time will be specified by the user).
    How to write programs for this
    And I want to get the system time in an instance, how it can be achieved,
    Could you please help me?
    Regards,
    Rathan

    Hi,
    Herewith my screenshot attached. There are thre inputs thres, tempX, xValue, it is in side the while loop.'xValue' will be acquired every iteration, It will be saved through shift register and acquired to 'tempX' for the next iteration, 'thres' is a constant value. I'm doing some logic, and calculating the dvalue and convert it to a string and concatenate it with end of line character, then after writing it into a file.
    In the logic, inside of the functional logic  I'm assigning some values dValue, if the logic is true or else dvalue will be 0
    What I require is I don't want to write the dValue in to a file, if it is equal to zero. Could you please help me, how to tackle this problem?
    Thanks.
    Regards,
    Rathan   
    Attachments:
    writing except 0.GIF ‏9 KB

  • Problem in stopping the process for a while

    Hi all,
    I am facing problem in stopping the process when i call *.exe from java. here i am explaning my problem in detail.
    main(){
    m1();
    m2();
    m1(){
    Runtime r=Runtime.getRuntime();
    Process p=r.exec("solve1.exe");
    // this exe file will create a text file (temp.txt), and it is creating it with out any problem.
    m2(){
    using temp.txt here.
    problem is when i call m1() it will create temp.txt , but by the time i call m2() temp.txt is saving into the disk and m2() is not able to find the file.
    here what i need is there should be some time gap to before i call m2(); and i tried even with
    p.waitfor(); in m1() -if i use this the program is not exiting out of runtime??
    any one kindly hepl me
    bye.

    A test app(if you don't have sol, then pick another app)
    public class WaitForTest{
        private WaitForTest(){
            try {
                Process p = Runtime.getRuntime().exec("sol.exe");
                System.out.println("Waiting....");
                p.waitFor();
                System.out.println("Done waiting") ;             
            catch(Exception e)
                    e.printStackTrace();
            static public void main(String[] args){
                new WaitForTest();
    }

  • How to stop the charging for i cloud

    how do i stop the charging of extra storage of icloud?

    Downgrade to the free 5GB plan. See: http://support.apple.com/kb/TS4009

  • How to find the program for append structure upload

    Hi all,
    I am facing a issue that one Char. in a ODS, I have found the source field for this Char. in R3 in a extract structure. But this field locates in an appended structure, so this means the value of the field must be updated by ABAP. My question is How I can find the ABAP program(BADI or User exit?)
    Thanks
    Leon

    Hi,
    First u identify the type of DS, then according to the type of DS, go to CMOD, provide the project name then select the enhancements there it will display the four Exits, select the appropriate one,
    if DS is of Type,
    Transactional - EXIT_SAPLRSAP_001
    MD ATTR - EXIT_SAPLRSAP_002
    MD TEXT - EXIT_SAPLRSAP_003
    MD HIER - EXIT_SAPLRSAP_004
    double click on the particular one then select the include program there u will fild the code fro all the DSs.
    Hope this inflammation help u.............
    Assinging Points is the way of saying Thanks in SDN
    Regards
    Ramakrishna Kamurthy

  • How to 'Stop the Clock' for SLA when in customer action?

    Hi
    Does anyone know if the functionality exists so that when a support message goes into 'customer action' or 'solution proposed' status the SLA stops counting down until the message is put back into 'in process'?
    The SLA is out of your control when it is waiting for an action from the user so it should be possible for the clock to stop on the SLA automatically when this is the case and the SLA should re-start and re-calculate the new 'completion by' date.
    I know that this is standard in many other types of Helpdesk software but can't find the way to do this with Service Desk.  Can anyone help?
    We are on SM7 SP22. 
    Thanks very much for your help.
    Regards
    Ashley

    Hello Ashley,
    Have you seen this document [Advanced Quick Guide for VARs Service Desk (Jan 2010)|https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000722612&_OBJECT=011000358700000122472008E]   ?
    You might want to reference section 5. Service Level Agreements.
    Regards,
    Paul

  • How to get the program name from transformation id.

    Dear Folks,
    Could you kindly share to me how to make it please .. ? :-).
    As we know that every update rules/transfer rules has it's own program.
    Do you know how to find the program for particular update/transfer rules .. ? If i'm not mistaken there is particular comprising about this information.
    Could you share to me what table is that and how to find it .. ?
    Tks a lot ..
    Regards,
    Niel.

    Hi Sumit,
    Tks a lot for your quick response, why i can't fetch the data from that table... ?
    What i did is like this ..
    1. tcode rsa1.
    2. expand the tree for info-provider.
    3. ctrl+c, in tech. names for update rules.
    4. Open rstran table, and input for that tech. id.
    5. Execute it.
    But no data i get.
    Does this happen only for business content ? Or Could I fetch the data even this is for customized object ..
    Still need your guidance.
    Btw, i'm now running BI 7
    Regards,
    Niel.

  • How to stop the message "press 1 for ..."

    Hello, while I'm at it...does anyone know how to stop the instructions that get attached to my outgoing voicemail message?  You know, the one that says, press 1 for __, press 2 for __, press * to send a fax.....in my old phone (also with Verizon) it didn't have that message. 
    Thanks all!

    I took this problem to a genius.  He removed the SIM card and added a new "blank" card from AT&T.  Using this SIM we went to setting an turned cellular data off.  Then we put the Apple SIM back in the machine.  Now you can turn off the cellular so you will no longer get the messages.  To end this practice, sign up with a carrier.  Just click the button in the Settings... menu.

  • How to check RBS maintainer is running or not and how to stop the RBS maintainer for a specific content db.

    HI
    how to check RBS maintainer is running after deleting orphan blobs and  while deleting the blobs from rbs storage,
    and also how to stop the RBS maintainer for a specific content db.
    when I run below query  I found the orphancleanup value true
    SELECT [config_key],[config_value] FROM [mssqlrbs_resources].[rbs_internal_config]
    where config_key='orphan_cleanup_in_progress'
    adil

    HI
    the  RBS maintainer was run from one of web front end server  And for one content database , that fine
    but I  now know this information only this did by other administrators.
    Now I did not found this Maintainer running in windows task scheduler, but blobs are decreasing from content database RBS storage folder, and  also I found this maintainer running I checked from  when  run sql queriy in  sql
    server
    SELECT
    [config_key],[config_value]
    FROM
    [mssqlrbs_resources].[rbs_internal_config]
    where
    config_key='orphan_cleanup_in_progress’
    it  given me true
    here now  I want to stop this orphan cleane up , what settings and script I will run?
    adil

  • How can I stop the program from going through all of the text previously put in.  It is making the process very slow.

    How can I stop the program from going through all of the text previously put in.  It is making the process very slow. 

    while True:
    and just indent everything else under it
    Ends when you press ^C.
    if you wish to have a way to break out of the loop, say, when you press enter at the VPC number without entering anything, add the following after your vpc input:
    if not vpc:
    break
    which will break out of the while loop and end your program.
    Last edited by buttons (2007-12-14 22:03:06)

  • My sound keeps scrambling and blaring without warning before I either restart or stop music/videos for a while. It's without warning and happening on different programs. Is this happening to anyone else?

    My sound keeps scrambling and blaring without warning before I either restart or stop music/videos for a while. It's without warning and happening on different programs. Is this happening to anyone else?
    I thought about resetting the nvram/pram, but before I do that, I wanted to check here. It might not be the issue. My startup looks fine and the sound is great up until the discrete moment when it's suddenly scrambled and nonsense.

    I did try a safe boot once before, which didn't stop the occurrences. I can try it again to make sure, and see if the problem stops happening.
    Never installed extra audio or plug-ins, though.
    It happened just once not long after I bought the mid-2013 MBA, which I think came with 10.8.4, but I assumed the noise was because I was moving the computer around on a surface that created static, since the noise stopped after I picked it up off the surface. However, that must have just been a coincidence, because it happens more frequently now without moving or touching anything.
    Trying the safe-mode boot and restart, and testing it out for day or so to see if it happens again.

  • In VB Programming code -- How to access the formula for suppressing a field

    In VB Programming code -- How to access the formula for suppressing a field
    I am using Crystal Reports 2008 v1
    Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
    My problem is that I am unable to access the formula used to dynamically suppress a field.
    The following code is working:
    mySections = rd.ReportDefinition.Sections
    For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
       ' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
       iloop = 0
       For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
               If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
                   myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
                   myTextObject.Text = "new field text goes here"
                   mySection.SectionFormat.EnableSuppress = True
                   '  Here is where I want to change the formula for the Suppression
                End if
                iloop = iloop + 1
        Next
    Next
    I can not find any reference to the actual suppression formula in the SDK help file.
    Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten.  The results of the formula determine the suppression.
    Is there a way to reference this formula.  I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.

    Hello, Mark;
    If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
    If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
    Elaine

Maybe you are looking for

  • Variable screeen popup with button in bex

    Hi , When I try to display variable screen using a button in bex, I get the following error. has anyone come across this. pls advise. BExItemButton.RenderData01: Unable to get the Item property of the OLEObjects classErr: Unable to get the Item prope

  • Task activities not getting generated properly in BPEL

    I am using the Jdev 11g TP3 (from OTN). Installation went through fine. However I observed a interesting issue with HumanTask/BPEL and I was wondering if someone faced similar such problems before, if so, how to rectify the issue. Here is the descrip

  • Directly print PDF form in WebDynpro ABAP

    Hello folks, one little question. Is it possible to directly print an PDF form in an WebDynpro Abap Application? Thanks, Alex

  • Closing of inbound delivery...

    hi all, we are having problem with our archiving of our inbound delivery. it won't archive documents with header or line items (vbup, vbuk) when not all status = 'C'. we are considering BAPI to update the status manually. can u help us? regards, sid

  • Software for making MP3 phone tunes any idea`s

    Hi There Folks Not sure if anyone can help me out here but I am looking for a program that I can make MP3 Phone rings ..... Jut 15-20 sec MP3`s from my iTunes Library Thanks