Implementing "Back" action

Ok, so I use UIWebView to browse web content from my application. I don't use built in loadURL method, because I have to authenticate and handle errors, so UIWebView's loading system is not good enough. I load the content I use this method:
– loadData:MIMEType:textEncodingName:baseURL:
but unfortunately when using this method the web view does not record the clicks, so it does not know when back and forward actions are available...
I was thinking of keeping track of visited urls and clicks manually, but that kind of solution may take more time than necessary, so maybe someone can give me some advice how to implement back action in this case?

Due to lack of other ideas I implemented this functionality myself by storing any loaded url in an array, and removing appropriate record when moving back. Wasn't as much work as I feared

Similar Messages

  • Best way to implement an Action Listener

    I have multiple anonymous classes for each button in my particular JPanel, this seems very... large and I am sure it is using a large amount of memory. Is there a better way to implement several action listeners to all these buttons so that they will still do their origional function but cut down on all the anonymous classes.

    Actually nothing of the sort. There is too much information to be able to be placed nicely on the Panel, so I have many buttons that open dialog boxes where the information is placed, buttons that perform specified tasks (adding, updating, loading, deleting, clearing all fields) on the database, and others, there is also action listeners on the jspinners comboboxes and others.
    Actually, I take back hundred, I recently extended JPanel to do my editing panels to go into my JTabbedPane cutting down on the line count in the FrameMain class (over 8K lines before the conversion) So there is only about 20 to 25 total action listeners per extended JPanel, instead of 150 or so declared in one frame.
    The biggest concern here is memory usage, as of right now it uses a ton, and by searching and reading, I belive its all the action listeners (which at the time I thought you had to have a brand new one every time you wanted it to do something different).
    Going back to the one action listener with the if/else statements obviously performace may be lost, but what is the ratio to performance lost to memory gain. Will the speed increase be negligable compared to the amount of memory usage that will go down?

  • Apple Mobile Device Service won't install, "rolling back action"..

    I reformatted my Windows Vista Home Premium (Service Pack 2 32-bit) and reinstalled iTunes. For some reason, my iPod Touch 3G wouldn't sync so I decided to uninstall then reinstall everything. When I reinstalled, however, AMDS was missing, and during a few more installations, I saw "rolling back action".
    So I dug around on here and Google and tried installing AMDS seperately (extracting iTunesSetup.exe). But it's not working and it's been taking me quite a while. Could anyone help me fix this issue?
    Add: I tried doing basic things such as saving the exe file instead of running, Running as Admin, rebooting.. I also tried sfc /scannow and it successfully repaired all files.

    I reformatted my Windows Vista Home Premium (Service Pack 2 32-bit) and reinstalled iTunes. For some reason, my iPod Touch 3G wouldn't sync so I decided to uninstall then reinstall everything. When I reinstalled, however, AMDS was missing, and during a few more installations, I saw "rolling back action".
    So I dug around on here and Google and tried installing AMDS seperately (extracting iTunesSetup.exe). But it's not working and it's been taking me quite a while. Could anyone help me fix this issue?
    Add: I tried doing basic things such as saving the exe file instead of running, Running as Admin, rebooting.. I also tried sfc /scannow and it successfully repaired all files.

  • Everytime i try to download itunes it says rolling back action and error . i dont know what to do please help . P.S. i have windows 8

    everytime i try to download itunes it says rolling back action and error . i dont know what to do please help . P.S. i have windows 8

    Hello there Unicornbarf534,
    Thank you for using Apple Support Communities.
    It sounds like you are unable to successfully install iTunes. I recommend the troubleshooting instructions in this article named:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Here is a general outline of where the troubleshooting will take you:
    General installation troubleshooting
    1. Empty your Temp directory and restart
    2. Completely remove iTunes and related components
    3. Install the latest version of iTunes
    Additional troubleshooting
    After performing each of the steps below, you will need to completely remove iTunes and related components and then install iTunes again to determine whether the issue is resolved.
    1. Make sure you have administrator account access
    2. Make sure your folder names don't contain strange characters
    3. Get the latest Windows updates
    4. Disable other conflicting software
    Additional Information
    If you only need to install QuickTime, or if iTunes installs but QuickTime installation did not complete
    Try downloading and installing the standalone version of QuickTime from http://www.apple.com/quicktime/download/. Be sure you download the version that does not include iTunes.
    If the steps outlined in this article don't help, you may be able to find a solution to your issue by searching the Microsoft support website.
    All the best,
    Sterling

  • Push back action not available in action drop down

    HI,
    I don't see the PUSH BACK action available in action drop down in bpm worklist. Is there some setting i have to do, to make this action available in system action?
    Thanks
    Manish

    You can usually find the imported IE Favorites in a folder ("From Internet Explorer") at the bottom of the Bookmarks Menu folder (Bookmarks > Organize Bookmarks).
    If you can't find them in the "From Internet Explorer" folder then try this:
    Export the favorites in IE to an HTML file (bookmarks.html): File > Import and Export<br />
    Import the HTML file in Firefox 3: Bookmarks > Organize Bookmarks > Import & Backup > Import HTML: From File
    http://kb.mozillazine.org/Import_bookmarks ("Import from another browser" and "Import from file")

  • Can't install itunes 11.0.1 on windows 7...get a Rolling Back Action message

    Hi...I cannot install iTunes 11 on my Windows 7 PC. The installation goes all the way through and I get a "Rolling Back Action" dialog at the end and the progress bar just goes backwards.
    Why is this happening?

    Not an error that I've seen. What stage of the process are you at when this happens?
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Reverse replication not implemented for action:

    Hi, we see a persistent error reported in our replication log:
    Reverse replication not implemented for action: TEST. Remote outbox path: /var/replication/outbox/1338320761214
    The node mentioned has cq:repActionType = TEST.
    The consequence is that this aborts the replication of nodes in the publisher node and our author and publisher seem out of sync because of that. Is this something anyone has come across before. How to prevent this?
    If I delete that node in the outbox it seems to resolve the issue, but I'd like to know what caused it to appear in the first place to make sure we don't end up seeing this issue in our production environment.
    Any help is greatly appreciated.

    I don't remember exactly when the TEST nodes are created but they are only when some tests are run.
    When it happened to me I had to delete once and then it never happened.
    D.

  • Reinstall Elements - "Rolling Back Action" Error

    I am trying to reinstall Elements 7.  I need to do this because I had a system problem and I needed to do a clean new Windows XP install.  As a result of the XP reinstall, I have had to reinstall all my programs.
    What happens with Elements is that I get to the screen that says "Registering Product" and the system stops, gives me a message that says "rolling back action" and the installation stops. 
    I called Adobe install help and they were less than useless.  They first had me run the Windows Installer Utility followed by the Adobe CS4 Clean Script.  Neither program found any problems and they did not help.  They then had me set up a new User ID on my computer and told me to log on as the new user.  Again - no joy.
    I have successfully reinstalled Elements 3, Lightroom 2,5,  Photoshop CS2 and Adobe Acrobat without any difficulty. 
    When I did a WEB search on this problem, the only useful thing that I found was Adobe Service note kb406851 which talks about removing a cache file.  I do have that cache file but the note also says that I may have to reenter the serial numbers for my other Adobe programs.  I am loath to take this step.
    Any suggestions would be appreciated.
    DON

    This might be happening because of some of the bits of PSE 7 which didnt got removed from the machine while you removed/uninstalled PSE7.
    Try following the steps mentioned in the below link and make sure that all the bits have been removed and then try to install PSE7 again.
    http://kb2.adobe.com/cps/405/kb405847.html
    Regards,
    Ankush

  • Installing itunes + quicktime rolling back action issues

    hey, i know this has been mentioned before, but i have been searching hours on end to try and fix this and nothing so far
    I just got an ipod touch, and when i go to the apple site to download the itunes and quicktime, i go to install and it keeps rolling back action and in the end it says that "quicktime was unable to install, itunes needs quicktime to install". I tried downloading both of the separately and they both keep rolling back actions. I dont have itunes or quicktime installed on my computer previously, and I am running them as administrators.
    this is really frustrating as I cant even turn on my ipod touch because I cant install itunes, any help with this problem?

    seein if anyone has a chance to help out

  • Implementing "Back" functionality

    Hi
    I am using VC and CAF for implementing certain functionality.
    The requirement is: I have many screens and all of them have a "Back" button.
    When i click on the "Back" button the previous screen must be displayed with its values.
    I think currently this may not be possible because, each VC screen is a callable object and is enclosed in an action. When we move to the next screen, the previous action is completed and the next action is triggered.
    Is there any way where i can dynamically choose the next action based on certain conditions using GP Runtime API ?
    or Is there any way in which i can go back to the previous action when i click on "Back".
    Any other way/logic i can use to achieve this?
    Hi Moderators
    Could you please let me know if such functionality ("Back") is posible with Callable objects/Actions ?
    Also please suggest any alternate ways in which this can be achieved.
    Message was edited by:
            aditya srinivasa

    Thank you for the inputs Chandan.
    I shall explain my requirement in detail:
    Lets say i have 3 screens (Screen1, Screen2 and Screen3).
    On Screen1 i have a form to enter user information (like firstname,lastname etc )
    On Screen2 i have a form to enter company information (like name,address)
    On Screen3 i have a form to enter user preferences information (like mailing address,permanent address)
    Each of the above three screens has "Submit Info" button. When clicked on this button the entered info on that screen is submitted to an Oracle table and the next screen is shown.
    Also Screen2 and Screen3 have another button - "Back". When this button is clicked on Screen2, Screen1 should be shown with the values (pre-populated in the form) previously entered by the user. When the "Back" button on Screen3 is clicked, Screen2 with its values (pre-populated in the form) should be shown.
    What i have done is:
    All the screens are modelled in VC. And each of them is wrapped in a callable object (iView) for integration in CAF GP.
    Since we have 3 callable objects, there will be 3 actions and a sequential block in this process.
    Now, Lets say i am on Screen1. I enter all the info and click on "Submit Info" button. Action1 is completed and immediately Action2 is triggered.
    Action2 has Screen2 callable object in it and hence displayes Screen2. At this moment if i click on "Back" button, i want Screen1 with the details i entered in the previous step to be displayed.
    Please let me know in case you need any further clarity on the requirement.

  • How2 implement back button

    Hi Everyone!
    I have a static webpage with a link to an htmldb application (no authentication, just a report).
    I would like to create a browser back button in htmldb, that does just this:
    onClick="history.back()"
    But all created buttons demanded a page (in htmldb - or url) to branch to.
    What would be the best way to implement such an back button?
    Thanks,
    Michael

    Hi Michael,
    i think your HTMLDB-page is a report. So do the following steps:
    1. Create a button
    2. Select the region for the button
    3. Select "Create a button in a region position"
    4. Give the button a name and a label and - that's important - select as action "Redirect to URL without submitting page"
    5. On the wizard page for branching select as target "URL" and enter the URL (at the bottom of the page) "javascript:history.back()"
    6. Click "Create button"
    That's all.
    Thomas ;-)

  • Stacks for implementing back command!

    This here is my Game class, everything works, but im trying to implement a back command by using stacks. I have imported stacks in and all that...The problem im having is that when i go into another room it adds the room in, but im trying to pop it from another method. Iv seen examples of popping within the same method but not from another method.
    private void goRoom(Command command)
            if(!command.hasSecondWord())
                // if there is no second word, we don't know where to go...
                System.out.println("Go where?");
                return;
            String direction = command.getSecondWord();
            // Try to leave current room.
            Room nextRoom = currentRoom.nextRoom(direction);
            if (nextRoom == null)
                System.out.println("There is no door!");
            else
                Stack stack = new Stack();
                currentRoom = nextRoom;
                System.out.println(currentRoom.longDescription());
                stack.push(currentRoom);              <<<<<<<<<<<<<<<<<<-----As seen here the currentRoom gets pushed in....but i need to pop out which im trying to do below
        private void goBack(Command command)
            if(previousRoom == null) {
                System.out.println("Sorry, cannot go back!");
                return;
            if(command.hasSecondWord()) {
                // if there is a second word, we cannot go back...
                System.out.println("I don't know what you mean...");
                return;
                stack.pop(); <<<<<<<<<<<<<<<<<<<<<<<<<<-------------- I cant get that syntax to access the above method and make them work togeather. It works within the same method, but 2 differnet methods its having a problem. Can someone give me the correct
                currentRoom = previousRoom;                     syntax so i can use that to pop it out from a different method. Thanks alot much appriciated!             
                System.out.println(currentRoom.longDescription()); //print method where you are
        }

    Because stack is now an instance variable, its scope is for the whole class. That means, every method has direct access to it. So, both goRoom and goBack methods will work on the same variable.
    I'll suggest to read about variable scoping in java.
    Now that the variable is an instance variable, in an application, this could easily lead to multi-threading synchronization problems, if your application is multi-threaded.
    So I'll wrap my stack operations in a synchronize block:
    synchronize
       stack.push (obj);
    }and
    synchronize
       stack.pop ();
    }

  • How to stop validation for Back action in ADF

    Hi,
    In ADF form, I have a 'Back' button which should just go back to the previous page. But when I select 'Back' button, the form is validated again and I do get validation error messages.
    How can I stop validation for these type of simple actions?
    Please do let me know.
    Thanks,
    priya.S

    You might find this blog post useful in finding a generic solution to your problem:
    http://one-size-doesnt-fit-all.blogspot.com/2007/02/jdeveloper-and-art-of-rollback.html
    CM.

  • Back Action

    I have 2 forms.
    From 1st form I am moving to next form.
    Then on 2nd form also, user enters some values.
    On 2nd form, On submit button, commit action is called.
    There is also Back button provided on the 2nd form, which navigates to the 1st form (Navigation is done by adfc-config.xml).
    But the problem is when user clicks Back button, all the values of 1st form gets cleared.
    But I need the values entered by the user to edit. How is this possible??

    What is the scope of your bean?
    use pageFlowScope then values will be stored.

  • ITunes 64 bit installer rolls back action on win 8 64 bit system

    I do not know what i am doing wrong, I just bought a new win 8 64 bit system and iTunes keeps rolling back before the install completes. I have tried running it as administrator and turning off firewall but it did not work. Please Help.

    Apple iPad appears to be under "Portable Devices" section and driver is from Microsoft. There is no driver under USB-section and instructions that provided in first reply I have gone thru and they are no go with this problem - they are more likely for older iPod etc devices and dot with issue to deal with 64bit/32bit things. The picture (image.jpg) gives me unfortunately just general error...
    --IKemario

Maybe you are looking for