How to make a pause between an Alert and a plateformRequest ?

Hello,
I' programming a class which realize a download from an URL called downloadURL. An overview of my code is :
public class SoundDownloader implements CommandListener{
             private Alert downloadAlert2;
             private String downloadURL;
                   private MIDlet midlet;
             public SoundDownloader(String downloadURL, MIDlet midlet){
               this.downloadURL = downloadURL;
                        this.midlet = midlet;
                   try {                       
               //download code using HttpConnection and openInputStream()                       
                   } catch (Exception e) {
                        downloadAlert2 = new Alert("Download error !");
                        downloadAlert2.setType(AlertType.ERROR);
                        downloadAlert2.setString("Download error : "+e.toString());
                        downloadAlert2.setTimeout(Alert.FOREVER);                      
                        display.setCurrent(downloadAlert2);//show the Alert  
                        downloadAlert2=null;
               //I'd like to stay here until the user dismisses the Alert     
                        this.midlet.platformRequest(downloadURL);
                        this.midlet.notifyDestroyed();
}When an exception is caught, I display an error alert and I'd like to make the user wait until he dismisses the alert before launching a download by the mobile browser (platformRequest).
I don't get this result now! The alert is displayed, but just after (without any delay), the platformRequest method is automatically launched!
Could someone help me please?
Thanks in advance!
/arkienou

I would try catch block code with [Alert.setCommandListener|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/Alert.html#setCommandListener(javax.microedition.lcdui.CommandListener)], roughly like below:
  downloadAlert2 = new Alert("Download error !");
  downloadAlert2.setType(AlertType.ERROR);
  downloadAlert2.setString("Download error : "+e.toString())
  downloadAlert2.setTimeout(Alert.FOREVER);
  downloadAlert2.setCommandListener(new CommandListener() {
    public void commandAction(Command c, Displayable d) {
      if (c == Alert.DISMISS_COMMAND) {
        midlet.platformRequest(downloadURL);
        midlet.notifyDestroyed();
  display.setCurrent(downloadAlert2);//show the Alert  
}

Similar Messages

  • How to make optical connectivity between Catalyst 4948 and 10K router ?

    Hi,
    I am Ratheesh P D, network Manager of one project in Motorola. We have one catalyst 4948. Its going to get one 10K router. Our requirement needs optical connection between these two. The document of 4948 says, its compatible with 1000BaseX SFP and 10K is with 1000BaseSX SFP. Could you please tell me how to make these two compatible?

    For information regarding the optical connectivity in 4948 cat switch follow the url ,
    http://www.cisco.com/en/US/products/ps6021/products_installation_guide_book09186a008023fa89.html
    For more information on h/w capability and connectivity of 10 k routers follow the url ,
    http://www.cisco.com/univercd/cc/td/doc/product/aggr/10000/hdwr/index.htm

  • How to make HTTP connection between a midlet and a php server?

    As the title above, can anyone share how to make a HTTP connection between those 2? J2ME and PHP. Thanks a lot!

    Can you be a little more specific on what you really want.
    When i started doing j2me application, i was required to be able to comunicate to a oracle client database, and my first though was using PHP based pages to comunicate and do the query. Later they would just generate the answer and get it on the cellphone. You can communicate with a PHP server via either GET or POST. I'd choose POST as is more secure IMO.
    Here are quite a good ammount of examples of how you can do it
    http://www.java2s.com/Code/Java/J2ME/Networks.htm
    They aren't PHP based examples, but you have can an idea of how it can be done

  • EH&S: How to make a link between tables PA0002 and  T7EHS00_ANA_HEAD

    Hi all, I need to make an Infoset for EH&S  and a I can't link tables PA0002 and  T7EHS00_ANA_HEAD, i search values in tables an the values in the field PRNR in both tables are different. I need to know if there is a table that contains some reference of a the data of an employee so i can make the link an obtain the data of an employee. Thanks.
    Edited by: Albio Vivas on Mar 5, 2009 4:16 PM

    Hi Albio,
    Check the compatability of the remote cube & edit Phrase Sets. You can display additional information for a phrase set by choosing Utilities - Administration Info. To display the phrase set-to-attribute assignment, choose Utilities - Attribute Assignment.
    However, i suggest to go throught he links, which are helpful.
    [http://help.sap.com/erp2005_ehp_04/helpdata/EN/a7/2871000a6c11d28a220000e829fbbd/frameset.htm]
    [http://help.sap.com/erp2005_ehp_04/helpdata/EN/8d/c8fa3a4dbdf428e10000000a114084/frameset.htm]
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/85/b70bdba5944cab8ed7967ec3aea807/frameset.htm
    with regards,
    mahesh

  • How to make a connection between an application and a Coherence Grid?

    Hello,
    We're starting with Oracle Coherence.
    How do I connect an application (for example running in JDeveloper) to an existing grid?
    I used the following tutorial to get started with Coherence.
    http://www.oracle.com/technology/pub/articles/vohra-coherence.html?msgid=6521631
    Within JDev an Coherence instance is started, data is entered and queried.
    Next I'd like to connect this to a running Coherence instance, (started with [Coherence home]\bin\coherence.cmd)
    When I start the coherence.cmd and run the application from within JDev, I can see a connection is made
    Map (?):
    2008-05-13 13:15:24.667 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, member=4): Member(Id=5, Timestamp=2008-05-13 13:15:24.484, Address=10.35.1
    4.150:8090, MachineId=10134, Location=process:4612@WBNL71033) joined Cluster with senior member 1
    Map (?):
    2008-05-13 13:15:24.934 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, member=4): Member 5 joined Service DistributedCache with senior member 5
    Map (?):
    2008-05-13 13:15:25.630 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, member=4): Member 5 left service DistributedCache with senior member n/a
    2008-05-13 13:15:25.630 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, member=4): Member 5 left Cluster with senior member 1
    I am, however, not able to retrieve the data which is entered via JDev.
    (1) What do I need to do to distribute the data entered via the Jdev application to the Coherence grid
    (2) How can I get access to the data within the Coherence Grid(do I need to to change the Cache, Map or something else)?
    Thanks in advance
    Regards Leon

    Hi Leon,
    In order to see the entries created by the sample application within JDev, you will need to do several things:
    1. Ensure that at least one storage enabled Coherence node is running, by executing cache-server.cmd at least once (coherence.cmd starts storage-disabled console only).
    2. Run coherence.cmd and change to the appropriate cache from the console:
    Map (?): cache VirtualCache
    (the name should be the same as the one defined in cache-config.xml and Java code)
    3. Execute commands against the cache:
    Map (VirtualCache): list
    This should give you a list of all the entries within a VirtualCache.
    HTH,
    Aleks

  • How to make a link between Visual C++ and LabView?

    I want to use my labview program to read the data generated by visual C++ program to perform some control to digitial oscilloscope. I have read your homepage. I know it is using ActiveX to get everything done. However, I dont know where to get started!The data is just a simple number, 1 to 8. So what should I do right now? Where Should I start?
    thanks for helping me.

    Possible alternatives to ActiveX calls:
    If you program can save the data to a file, then you could read the file from LabVIEW and act accordingly.
    If the data is generated by a function that is in a .dll, you can make a call to the function from LabVIEW using the "Call Library Function".
    If you have the code of your C++ program, maybe you can work a CIN that will work directly from LabVIEW.
    There can be other alternatives.
    Regards;
    Enrique
    www.vartortech.com

  • Please Help!  I have been writing using - Pages - app for years.  I still can not figure out how to make single spaces between paragraphs.  Pages automatically double spaces between paragraphs.

    I have been writing on - Pages- app for several years.  Pages automatically uses double space between paragraphs. I can not figure out how to make single space between paragraphs. Tried everything.  Please help!  

    Pages User Guide >  http://manuals.info.apple.com/en_US/Pages_UserGuide.pdf
    Open the user guide then press Command + F on your keyboard.
    Type line spacing in the search field top right corner of that window.

  • How to make the link between the technical version and the packaging vers.

    Hello,
    Does anyone know how to make the link between the technical version number and the packaging version number ?
    For exemple, I can download on the SAP Market Place the version B1iSN 8.8 PL7 but if I look into the B1iSN the version information, it returns B1iP_3.0_SP04_HF03.
    This is quite confusing.
    Thank you.

    Hi Gordon,
    In fact this information is usefull for me. I was looking for a customer installation but he did not remember which version was installed. They are facing some problems. So I don't know if I have to update B1iSN or not to solve it.
    B1iSN returns only the technical version number, but I would like to know which version was downloaded from the Market Place.

  • How to make a Integration between jdev10.1.2 and vss

    How to make a Integration between jdev10.1.2 and vss to enable a version control.the help document tell to make a extension file, but how to do? thank you!

    http://www.oracle.com/technology/products/jdev/101/htdocs/partners/addins/905resources.html
    There is a link there to:
    Creating a Version Control System Extension
    A project with sample code to get you started

  • How do i transfer photos between my macbook and i phone 5s wireless, how do i transfer photos between my macbook and i phone 5s wireless

    how do i transfer photos between my macbook and i phone 5s wireless, how do i transfer photos between my macbook and i phone 5s wireless

    Place the photos into iPhoto on your Mac.  Then when syncing your iPhone using iTunes, clock on the "Photos" tab behind your iPhone's summary tab and make sure the sync instructions are set correctly.

  • How to test the connection between DSD backend and DSD connector

    Dear all,
    I am configuring the MDSD scenario .. and i want to insure that my customization is correct
    How to test the connection between DSD Backend and DSD connector ??

    Hi Viren,
    The problem is:
    We have a new BW system. The basis people asked me to check the connection between this BW system and the R/3. There is only one client for now(100). I have logged into 100 and tried executing RSA1 to check the connection, but it gave a message box saying "You can only work in Client 000". Then I have treid logging into 000(just to make sure) and tried executing RSA1. Even here I got a message saying "The SAP BW system must not be operated in client 000". Now, I am not sure of what is wrong in clien 100. I am not sure if I have to do some settings before I access RSA1 or any other BW transaction. Could you please help me in this.
    Also, I just checked the RFC destinations in BW. There is a destination created for our R/3 and I have noticed that they have given a remote UserID and password for remote login. I tried to check the Remote UserID in SU01 but there is no userID with that name. Could this be a problem?
    Thanks,
    RPK.

  • How to Set Up SSO Between IBM WebSphere and SAP EP Using JAAS

    Hi
    I have read the article on SDN called "How to Set Up SSO Between IBM WebSphere and SAP EP Using JAAS", which is also the name of my posting.
    The reason why I post this is that I've tried to follow the links in the PDF to get the file WebsphereEpSsoLib.zip but I get an error 403, which tells me that the file is not there.
    Does anybody know where this file went or can somebody tell me an alternative place to get this file?
    Jacob

    Please open the associated whitepaper, and you can find the download link to the .ZIP file on page 4.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ibm/how to set up single sign-on between an ibm websphere portal and the sap enterprise portal using jaas.pdf
    Hope that works!
    Elise

  • How can i create link between ipad(xcode) and webserver?

    Hi, I'm a new to iPad development and i need help,
    i'm not good with english but i try to explain my question:
    how can i create link between ipad(xcode) and webserver?
    (the webserver ".NET" with driver odbc is connected with DB Oracle)
    so, how can my ipad application access to the Oracle DB?
    Create a webservice (.NET) to be place between iPad and DB, is this correct?
    how can i do it?
    which are libraries to include in the xcode's framework?
    thx

    I think the following URL will be your best answer:
    http://stackoverflow.com/questions/3510468/connecting-iphone-to-an-odbc-database

  • How to create the relationship between ESSBASE 11 and DM in OBIEE11

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok.
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

  • How to create the relationship between ESSBASE 11 and DM  in OBIEE 11G?

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

Maybe you are looking for

  • How can I choose to confirm calendar changes??? - 8120, DM 4.6, outlook 2007

    I use 'Outlook on the Desktop' to keep my outlook calendar showing at home (which is pretty neat by the way).  My family all posts to this calendar so we know who's doing what when.   My teenage kids post their appointments, work days, etc.   My husb

  • Report with difference of prices from Inventory Valuation

    Hello! I need report with result from Inventory Valuation: Difference of prices= New price - Current Cost. Report can show last 7 documents and i should choose item code. Can u help me? Greetings from Poland

  • Tomcat 4.1.x not working under JDK 1.2.2

    We are trying to test our web application on all versions of JDK starting from 1.2.2. We use Tomcat as the servlet engine and after upgrading from Tomcat 3.2.x to 4.1.24 (we've tried 4.1.18 as well) we have noticed that the new Tomcat does not start

  • Batch determ error

    I use MSC1N create one batch Z011, production date:29.10.2010, in process order, I attach this batch Z011, but when I save, it says: Invalid batch, does not match the selection criteria in batch determinat. Message no. 40086 Diagnosis The batch does

  • I want to open only one JInternalFrame

    How do I control the MainGUI (JDeskTopPane) to open only ONE listenInputWindow (JInternalFrame)? There is my wrony code, but I do not know how to correct. I can open another listenInputWindow even one is already on Desktop. public class MainGUI exten