Question about field API browser

I want to use the function of net.rim.device.api.browser.field.HistoryEvent against individual members of a group of fi statements (that are called by action on a ButtonField) so that no browser history accumulates in the standard BlackBerry browser.

The if - else statements look like this:

If (field == IMAButton) {}
Private site = Browser.getDefaultSession ();
site.displayPage ('http://www.whatever.com');
}

The JAVADOC for HistoryEvent reads as follows:

HistoryEvent

public HistoryEvent(Object src,                    String url,                    int type)

Constructs a new instance of HistoryEvent for the Remove of URL.

This constructor assumes that the event is created as a result of programmatic action.

Parameters: src - Source for this event. URL - URL to add or remove, this story.

type: Type of event history; must be TYPE_ADD_URL or TYPE_REMOVE_URL. 

Since: JDE 4.0.0

_____________________________________________________________________________________

I am just placing the code at the bottom of each of the code if/else blocks so that the URL is removed from the browser history as soon as it is created but not having luck. (Usually, I get an error complaining that the TYPE_REMOVE_URL cannot be resolved.)

I searched the forum by using search terms of 'Historic event', "HistoryEvent" and "Clearing browser history", but it doesn't seem to be anything else.

I tried to use the ButtonField, private, Member Browser.getDefaultSession () &
site.displayPage as a source for the event - I'm being literal object CBC requirement?

This is my 2nd request for help. Can anyone give me a suggestion on how to proceed?

In response to the earlier thread that I posted, I said that it is not possible to use this feature against the standard Blackberry browser, that's why I couldn't get it to work.

Tags: BlackBerry Developers

Similar Questions

  • Question about the API

    Dear all,

    I have a question about getting this line of code to the JSF API.
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    Locale defaultLocale = facesCtx.getApplication().getDefaultLocale();
    I don't know what locale will be this line give me?
    My hypothesis is that, this returns the locale of the server in which the application has been deployed?

    Currently, it returns the locale of my current computer. But I would like to know, what happens if I deploy
    This in another computer to another region?
    Can anyone confirm my doubts please? Thank you

    getDefaultLocale returns the locale by default in the form of installation in the config.



  • question about rest api. user name and password is not valid for rest api.

    I installed the vCloud director v1.5.1 trival version, and I can browse the version by https://127.0.0.1/api/versions information.

    When I use the https://127.0.0.1/api/login, IE needs me at the entrance of username and password. I did, but it was not valid.

    Can I use the user name and password to log into vCloud Director web page, it is the system administrator.

    Using the wrong username and password? What should I do?

    concerning

    Hello

    The user name must be in the form of "username@organization" instead of the name of the user.

    If you are using a system administrator, then the name of the Organization should be 'system '.

    Kind regards

    Todor Todorov

  • Questions about the Internet browsing GRE tunnel ISPec

    I am faced with Internet navigation problems when distened to the customer's internet traffic. mail.Yahoo.com does not open on the client, while yahoo.com works very well. Same streaming and apps from apple works does not on iphone, but distened for data center traffic works very well. If I remove the protection of IPSec of GRE tunnel then everything works fine.

    Please guide what to do, I have attached a diagram of scenario

    Hello

    It is difficult to suggest, but MTU issue could be the reason for the problem.

    Do you have the command of setting-mss tcp ip on both interfaces of tunnel?

    If not, please try to add:

    Tunnel X interface

    IP tcp adjust-mss 1300

    If it helps, you can try to increase the value of 1300 to 1360 MMS (which is recommended by Cisco)

  • Question about the program clearing browser history

    Aftre the class implementation and the instructions to import appropriate, I can access URL in an application using these instructions:

    {Private site = Browser.getDefaultSession ();
    site.displayPage ("http://www.whatever.com");

    Is not indicated some managers ButtonField, listeners and a group of if/else instructions that serve the U.I to select a half dozen of them hard coded URL.

    The problem is that whenever the user selects a URL, the selection to become a historic event in the history of the BB browser.

    If I have Import net.rim.device.api.browser.field.HistoryEvent, I would be able to eliminate all the history entries that accumulate in the history of the standard browser or that will not work with this ease of use of the browser?

    If you have done this, you have an example constructor and method of your implementation that you would share?

    Thank you.

    This is not supported.  You cannot programmatically change the browser history.  The class that you reference is designed to be used with a browser field, not the browser BlackBerry itself.

  • General question about the Browser element

    Will look for an alternative, I found the Browser element and now I have a few questions about that:

    As I am not yet experienced on the Interfaces of Java development, I was wondering if following senario is possible:

    Have some HTML Pages which do the job of the Interface.

    If you submit a form, the JAva Base program (the Master application) process all Information.

    If you are viewing a list, the info is from a json of the Base program output.

    As the Communication Server Client HTML, the only difference is, that all communications remains inside the app.

    Is this possible?

    I can't speak to the idea of dealing with the entry of html, but I can confirm that it is possible for an application program to create a html page and providing the BrowserField for display.

  • Question about to browse the lines of a viewobject

    I want to iterate over the lines of a viewobject. So, I use the following code snippet to do:

            String amDef = "model.service.TestAM";
            String config = "TestAMLocal";
            ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
            ViewObject vo = am.findViewObject("EmployeesView1");
            RowSetIterator iterator = vo.createRowSetIterator(null);
            iterator.reset();
     while(iterator.hasNext())
            {
                Row currentRow = iterator.next();
      System.out.println("Value: " + currentRow.getAttribute(1));
            }        
            
     iterator.closeRowSetIterator();
     Configuration.releaseRootApplicationModule(am, true);
    

    Now, I had a question about this code snippet. He get all records from the table of data to the model layer, that is, to the application server? If so, what part of the code for this? vo.createRowSetIterator maybe?

    Your example of code appears that I wasn't there. The default iterator and one that you get by vo.createRowSetIterator are different.

    And do not forget to close the iterator, you created as you lose in other resources.

    Timo

  • Question about *.aud in audit_file_dest fields

    A node 3 RAC 11 g 2 on Linux 5.2, we recently had a full disk because of too many files in audit_file_dest. The parameter audit database is such
    SQL> show parameter audit
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    audit_file_dest                      string      /u01/app/oracle/admin/prdcch/adump
    audit_sys_operations                 boolean     FALSE
    audit_syslog_level                   string
    audit_trail                          string      DB
    With audit_sys_operations = FALSE, I don't expect operating SYS written to audit_file_dest. But in fact we still see a lot. Here are my questions about sys audit
    (1) how really turn off sys audit
    (2) I see much usefule sys files in audit_file_dest of the audit. A typical such file contained as (removded header)
    Sat Jul  2 19:15:22 2011 -05:00
    LENGTH : '155'
    ACTION :[7] 'CONNECT'
    DATABASE USER:[1] '/'
    PRIVILEGE :[6] 'SYSDBA'
    CLIENT USER:[6] 'oracle'
    CLIENT TERMINAL:[0] ''
    STATUS:[1] '0'
    DBID:[10] '2362038599'
    From what I understand, it tells me the time and duration of the session SYS. It don't me didn't say where machine (which can help to identify who connected in a SYS), not the activities
     I find this info is useless. I must missed something important, hope some one can shine some light here.
    3) If cannot stop the SYS audit, I would like to redrect the audit_file_dest to a differnt drive with larger space. Is there anything thing need special attention when doing it in RAC. Can each instance has differnt audit_file_dest?
    
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Although audit_sys_operations is false, some actions are audited by default in 11g. See also DBA_AUDIT_TRAIL.
    (1) you can't turn it off
    (2) TERMINAL CLIENT is empty, it means that the connection of the server itself. In your example someone logged on locally as "/ as sysdba".
    (3) audit_file_dest is instance specific. You can put each in their own directory or put them all in a share. If the files are very small, according to the activity of DB there could be millions of them. In my environment remove us periodically as they age (more than 3 months).

  • Ask questions about the HP Pavilion 14-V041TX Bluetooth

    Hello, sry for asking questions about simple things.

    How to activate bluetooth for laptop HP Pavlion 14-V041TX?

    Or how to bluetooth to detect other bluetooth devices?

    coz already try to use my smartphone, but cannot detect any bluetooth device or laptop.

    for what I know, I already install the driver for bluetooth.

    Maybe there's another driver, that I'm missing?

    Thank you.

    SRY for my bad English.

    HI @Ton1_qrenz ,

    Welcome to the HP Forums!

    It's a great place to find answers.

    You have the best experience in the HP forum, I would like to draw your attention to the Guide of the HP Forums Learn how Post and more

    No worries about your English.  I believe that I understand your question, and if not, you can specify if you must post back.

    I understand that you are unable to detect Bluetooth devices.

    Here is a document to help you with this company. There are links that it contains other documents that can also be of assistance.

    Understand and troubleshoot Bluetooth wireless technology (8.1 Windows, 8, 7, Vista, XP)

    If the problem persists, try the following steps.

    Step 1. Go to Device Manager
    Step 2. Right click on "Bluetooth device" you want
    Step 3. Select "update driver software... »
    Step 4. Choose "Browse my computer for driver software".
    Step 5. Choose "Let Me pick from a list of drivers for devices on my computer.
    Step 6. Select "Ports (COM & LPT)"
    Step 7. Select "Microsoft" to the list of "manufacturers".
    Step 8. Finally select "Standard series via a Bluetooth connection.

    If you are unable to connect to a Bluetooth device, try the following:

    Step 1. Search for 'Change device' in the start menu in Windows 8.
    Step 2. Click on where it says change device installation settings.
    Step 3. Select No, let me choose what to do option.
    Step 4. Check the automatically get the device app option
    Step 5. Click on save changes to save the settings that you select

    So, you can try this

    Step 1: Go to RUN (Windows Logo + R) and type "services.msc" and Enter
    Step 2: Now find 'Bluetooth Support Service' and double click it
    Step 3: Now click on the Log on tab and type "Local Service" without the quotes
    Step 4. Click on "account".
    Step 5: Now remove any authorization of passwords the password field blank
    Step 6: Below the upper left title should be a hyperlink 'Start' click

    You can also view tab management power and unchecked the box "Allow the computer to turn off this device to save power."

    If it is still not resolved, I suggest contacting HP support for further assistance.

    Please contact our technical support at the 800-474-6836. If you are outside the United States / Canada region, please click the link below to get help from your region number. Phone goes everywhere in the world

    Good luck!

  • Field of browser pointing to html content in my device

    Hi all

    I'm currently exploring the field of browser and its related APIs and met an interesting query.

    Scenario: I have a file HTML bundled with my cod file, and when the browser field is called, that the HTML content must be displayed in the field of the browser instead of seek it from the internet.

    Can this be achieved? If so, how can I go about it?

    Thank you...

    Thanks for all the suggestions, guys...  They really helped me sort this one out... Just to sum everything up, there are 3 ways to make the HTML content in the browser field.

    1. Using the "cod://ProjectName/FileName.html" as the url for establishing the HttpConnection where the name of the file is placed in my project .cod file.
    2. Provide the HTML in a string, convert it to a ByteArrayOutputStream, encode it with the Base64OutputStream and challenges in the form of url for the opening of HttpConnection.
    3. Simulate an implementation of the HttpConnection and use it instead of the original HttpConnection. (However, this only works for static HTML content, it is to say no links or references should be included in this happy)

    All of these solutions have worked with JDE 4.0.0 and I used the BrowserContentManagerDemo and the BrowserFieldSampleApplication (packed in the JDE) as reference implementations.

    I hope this helps everyone who crosses with the same requirement...

    See you soon,.

    Solène...

  • Questions about discussions...

    Hello

    I have a new app to do that requires network access.

    I have read this EXCELLENT post from peter_strange:

    http://supportforums.BlackBerry.com/T5/Java-development/connecting-your-BlackBerry-http-and-socket-c...

    Because I can't use BIS - B because I'm not a partner of the Alliance, I wanted to take a look at the new OS 5.0 network API and see how it works.

    I know that network connections should be performed in a separate thread.

    I'm far from being an experienced Blackberry developer... so I have a few questions about discussions.  I looked around the Internet, read on the forum, read the documentation, did some tests and so far, I came up with this code:

    SerializableAttribute public class HTTPConnection extends UiApplication {}
    Public Shared Sub main (String [] args) {}
    HTTPConnection PAP = new HTTPConnection();
    theApp.enterEventDispatcher ();
    }

    public HTTPConnection() {}
    pushScreen (new HTTPConnectionScreen());
    }
    }

    class HTTPConnectionScreen extends form {}
    public HTTPConnectionScreen() {}
    setTitle ("HTTPConnection");
    Add (new RichTextField ("choose a type of connection :"));

    final RadioButtonGroup = new RadioButtonGroup() rbGroup;
    RadioButtonField radioButtonF1 = new RadioButtonField ("Direct TCP", rbGroup, false);
    RadioButtonField radioButtonF2 = new RadioButtonField ("WAP 1.0/1.1", rbGroup, false);
    RadioButtonField radioButtonF3 = new RadioButtonField ("WAP 2.0", rbGroup, false);
    RadioButtonField radioButtonF4 is new RadioButtonField ("BES/MDS", rbGroup, false);.
    RadioButtonField radioButtonF5 = new RadioButtonField ("BIS-B", rbGroup, false);
    RadioButtonField radioButtonF6 = new RadioButtonField ("WiFi", rbGroup, false);
    Add (radioButtonF1); Add (radioButtonF2); Add (radioButtonF3); Add (radioButtonF4); Add (radioButtonF5); Add (radioButtonF6);
             
    FieldChangeListener listener = new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
    ConnectionThread ct = new ConnectionThread (rbGroup.getSelectedIndex () + 1);
    CT. Start();
    }
    };
             
    ButtonField buttonField = new ButtonField ("Connect", ButtonField.CONSUME_CLICK);
    buttonField.setChangeListener (listener);
    Add (buttonField);
    }

    / * method of onSavePrompt override default to avoid being asked if I want to record every time * /.
    protected boolean onSavePrompt() {}
    Returns true;
    }
    }

    class ConnectionThread extends Thread {}
    private int transportType;
    public ConnectionThread (int n) {}
    transportType = tt;
    }
        
    public void run() {}
    ConnectionFactory connFact = new ConnectionFactory();
    ConnectionDescriptor connDesc = connFact.getConnection ("URL", transportType, null);
    If (connDesc! = null) {}
    try {}
    HttpConnection httpConn = (HttpConnection) connDesc.getConnection ();
    httpConn.setRequestMethod (HttpConnection.POST);
    httpConn.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");
    OutputStream out = httpConn.openOutputStream ();
    out. Write (Integer.ToString (transportType). GetBytes());
    int responseCode = httpConn.getResponseCode ();
    If (responseCode == HttpConnection.HTTP_OK) {}
    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    Dialog.Alert ("- SUCCESSFUL CONNECTION-");
    }
    });
    }
    If (httpConn! = null) httpConn.close ();
    } catch (IOException e) {}
    System.Err.println ("IOException Caught:" + e.getMessage ());
    }
    }
    }
    }

    In fact, this code works very well... but I want to improve it, and I have a few questions:

    1. I think that right now, every time I click on the 'Connect' button, I start a new thread. I would like to end this thread in the "run" method, but I don't really know how to access the variable 'ct' from there.   Counsel on how to do it?  Or maybe always use the same thread until my application is closed?

    2. in the FieldChangeListener of my "Submit" button, I want to access the value of radio box.  I did work, but I had to do my 'final' variable  What is the right way to do it?

    3 - to display a dialog box with 'Successful connection', I just wanted to write something in my main screen.  How I do that?

    I'm just a bit confused as to just what set up when you use a separate thread.

    Thanks for your advice!

    Edit: Hidden URL I connect to...

    That's what I call a good question! (now I'm wondering why the forums do not work with opera correctly, in any case, here my baldy to the answer format): 1. your thread "dies" when it's over, no need to close it. 2 Yes 3. You can use a reminder. See for example http://www.javaworld.com/javaworld/javatips/jw-javatip10.html

  • Some General Questions about the externalization of authentication

    We plane to outsource the APEX authentication so that it would be linked to the credentials of the end-user network. Were do because:

    It is more in line with the expectations of the users.
    It will simplify maintenance by the user.
    When the user leaves the ice, their APEX access will be automatically disbanded as their network connections are disabled.

    We found some very good articles on the subject, for example http://www.greenit.li/greenIT/Willkommen_files/Oracle_APEX_ProofOfConceptNTLMPLSQL.pdf (other suggestions would be welcomed and encouraged). However; We have a few questions:

    The first is authentication and authorization. We get how end users can be authenticated based on Active Directory. However, within the APEX now, create us a new user and specify if who are developers, who, team development Application Builder, SQL workshop, they can access. schemas are accessible to them, etc. This page requires, of course, a password.

    How will this work if the authentication is outsourced? We always create the same user in the APEX?
    If so, what should we put the password related areas?
    If this is not the case, how do we control authorization once authentication completed successfully?
    If not, how to make the application available for users (authenticated network) and not others?
    If the application allows the user to pass a password (assuming that they are properly connected to the network), what should happen when a person clicks on logout?

    Thank you for any input,

    -Joe

    Joe Upshaw wrote:

    One of the elements of game here (great requirements above) is to make sure that the APEX applications are directly linked in the cycle of creation/decommissioning of the user of the organization. In other words, the desire is that deleting or disabling a user account in the central directory (Active Directory) have the effect of disabling access to all enterprise systems. We do not expect to allow some "heavy" end users the ability to access the SQL browser. Is there something that can be done, perhaps with the authorisation schemes, which would allow their access is automatically revoked if it network id have been revoked? Can authorisation schemes be applied to the APEX development pages maybe?

    Laughing out loud

    The only thing that comes to mind is running a scheduled task on your databases which retrieves users APEX in the APEX_WORKSPACE_APEX_USERS view, checks the user account is still valid in AD using dbms_ldap (assuming that the user IDS match, or there is a convention to get from one to the other) and removes , expires or to block those who are not using the APEX API. The problem which is the

    To perform this procedure, the current user must have administrator privileges in the workspace.

    restriction to the user of apex_util API. Comply with the scheduled job will have to Re: create a session programmatically (that is to say, outside the APEX)., who is skating on or above the line about the API without papers/not taken in charge. This may be frowned upon by the great above and Oracle. (However, in this case it is less of a concern that the use of such methods in your APEX applications, which certainly, I would not recommend.)

  • How can I change my HTTPS thing, so it isn't always pop up and ask questions about the sites Web secure when I play some games?

    Feel free to change the title

    How can I change my HTTPS thing, so it isn't always pop up and ask questions about the sites Web secure when I play some games?

    You're talking about Facebook?

    Try the gyration of the Secure Browsing

    http://www.Facebook.com/help?page=1079

  • Person to contact with questions about the presentation of the app world

    If I have a question about the app that I submitted, anyone knows how do I contact someone about this? I can't find anything on the site and respond to notification emails gets me nowhere.

    Hey miss breeder,.

    that will be tough. If you browse the App World his hell out there because of the new development forums and people have a lot of problems with it. I've read people were emailing RIM all week and no responses were received. But if you post a question here MShom (one of the moderators) usually responds in a timely. The support email is [email protected] I believe. Good luck!

  • A few questions about FileConnection/JSR 75

    [I posted these issues some time ago, but got no response]

    I am writing an application that targets the 4.2.1 and upward. After reading everything I can find (api docs, forum, kb, guides, web search), I still have many questions about the BlackBerry file system:

    1. Are store / and SDCard / internal name of the memory and the SD card root on all BlackBerry devices?
    2. JSR 75 leaves open the question of whether an application sees the virtual roots that are private to itself or if all applications share the same roots. How does on BBs? I have seen many examples where the path name starts by "/ store/home/user/app_name /" or "/ SDCard/BlackBerry/app_name / '. Is this necessary, or can my request simply use "/ store /" or "/SDCard/" and add the file name? If the former, are there best practices documented anywhere to manage collisions between app names?
    3. If the files are visible in many applications, there are layers of security available to protect data (I think something similar to how a PersistentObject can be encapsulated in an object ControlledAccess using the PersistentStore) or do make us our own?
    4. I read on this forum somewhere that store / is not available when a device is connected via USB and mass storage is active. Is this and other information like this documented somewhere?
    5. May restrict the COMPUTER strategies how an application uses FileConnection, particularly to the store / and SDCard /? If so, is there any guidance on common restrictions that developers should know when you write applications for general use?
    6. What restrictions are there on the names of files (allowed characters, length, etc.)?

    Any guidance or pointers will be appreciated!

    Hi Ted,

    I'm not sure on your remaining questions, but I'll try to answer as best I can:

    1. did not have different names on the devices until today.

    2. you have no problem on SD card and you are allowed to save files anywhere it. Not quite sure

    shop around, but you should be able to save files on the file system visible and own created folders. There will be

    some folders inaccessible devices that require internal processing (installed Te of applications etc..).

    3. you can open files as readonly etc. but elsethere it is not the layers of security installed. If you have data

    issues of security, you must save this Te using the RuntimeStore class!

    4. I don't know, but it's a fact. But for this purpose, you can detect the toggling of mass storage

    programmatically.

    5 see point No. 3

    6 see restrictions as specified in JSR 75.

    Kind regards

    Jochen

Maybe you are looking for

  • question to iCloud with El Capitan

    I searched but could not find a relevant answer.   I recently did a wipe on my Macbook air and clean installed El Capitan.   But every time he asks me a different password of my iCloud.   When I got to the control panel user account and click on chan

  • Prolonged use of the external monitors only

    I have a macbook pro and 2 external monitors connected through a USB hub. The views tab shows 3 screens and I don't want my laptop appears as an extended display. How to use only 2 external monitors with El Capitan on a MacBook pro in 2011? Thank you

  • move my toolbar

    For some reason any my start menu/toolbar low-pressure on the side of my screen vertically.  I want it that way - I want that it down at the bottom of my screen horizontally as before, but I can't figure out how to move?

  • Problems with my Windows 7 OEM serial number.

    Recently, I bought Windows 7 OEM. I installed and activated on this computer. A month ago, I get a pop up saying that Windows cannot validate my copy of Windows and enter my serial number. When I re-enter my serial number, it says invalid number.

  • I want to print PostScript in illustrator, then put the Distiller how to add print on the list?

    I want to print PostScript in illustrator, then put the Distiller how to add print on the list?