IOS update image every second?

Hello,
I am very new to app development, so apologies for the simple questions.
I have an image on a remote server of which updates every second, now I would like to put that image in a view in an app and have it effectively refresh every second.
Currently its done using javascript and I just reference the image on the remote server with a time stamp on the end of the image like:
image.jpg?Tue Jul 03 2012 10:57:08 GMT+0100 (GMT Daylight Time)
Now I have this working with a local html file and a webview, I just wanted and think it should be possible using native iOS objects like the timer and image view.
Just not sure how to achieve this.
Any help is much appreciated.
Thanks

Any one?

Similar Messages

  • IOS updates - fails *EVERY* single time, completely wipes out all apps

    Ok, so I'm trying to be calm and collective about this but it will be extremely hard.
    I updated the iOS version on my iPad (v1) today to 5.1.1.  Since I have had troubles every time I've updated iOS (regardless of device iPod, iPad, iPhone) I made 2 separate backups of my iPad before continuing... and specifically DID NOT CLICK on the "Hey there's a software update for your device" when it popped up when I plugged in the device as my very first experience with updating iOS on the iPad was done this way... and the backup failed, and thus never worked on the install.
    So my device has 98% charge, I do 2 separate device backups (just in case)... hold my breath, and manually request an iOS update.
    Progress goes smoothly, the device reboots, all looks good... no apps
    Ok, not to worry, the update likely just gives me a clean image... (plus my wallpaper)... I'll just restore from 1 of my backups....
    Restoring.... Rebooting....
    Now its asking me to pick or setup an Apple ID... ok, fine... enter my ID/password.... re-state all my settings for wireless, location settings, iCloud (has always been NO)... and Booted....  STILL NO APPS
    Repeated the restore backup process several times with each backup file... no luck... including a few clean reboots just to be sure.
    ZIP, Nada, Zilch... All apps, all data, all music, all videos, all games, all game progress... you know... the efforts made over the past 6 months on several "resource management games"... all COMPLETELY GONE!!!
    Now I used the feedback option in iTunes to send a similar message directly to them... but shy of a rant here I have no idea what I can do.
    If all my data is lost forever... this ABSOLUTELY *****... not just because I lost it right now... but I don't ever want to buy/download another app now... if I know that there is a very, very high probability that I will again completely lose everything in the next iOS update.
    So now I seem to have 2 options....
    1.) Never update iOS on any device ever again due to fears it will fail and erase everything
    2.) Simply shelf the device because I have no faith that I'll be able to maintain the data on it long term
    Please tell me there is another option... a manual backup or restore option outside of iTunes.... or a way to look inside a backup file and make sure it really does have all the content you think it should have in it... in it.
    I censored myself in this post... but for anyone working at Apple that wants to really understand my "mood" when writing this... insert 2-3 4 letter curse words before every CAPS or bold words... to get an idea of how insanely frustrating this whole process is.

    1st off, thanks @turingtest2 I do appreciate your efforts it has helped explain some of this mess.
    Well... as much as I'm ashamed to admit it... this does seem to be the case.
    So, a "Backup" of an iOS device puts the "settings" back on your PC...
    An "OS Upgrade" wipes your device of all content and updates the OS cleanly to the next level
    A "Restore from Backup" effectively does next to nothing.... because in order to get all your stuff back... that you "Backed up"... you actually need to re-sync all your Apps, all your music, all your videos etc. manually once your "Backup" is complete.
    You also need to figure out which apps were actually on this device because it maintains 1 list per account, not a list per device... thus manual hand picking is required.
    Likewise you need to manually re-pick through your music and video collection because these settings too were not "really" backed up.
    Seems completely messed up to me that the backup step doesn't save a list of the media (songs/videos) you had on the devices and automatically syncs them when performing a restore.  Ditto for apps.
    I'm so glad my non-Apple devices don't follow this crazy 1/2 baked backup/restore scheme.
    As a software developer myself... there's no way I'd release software this messed up....

  • Updating JTable every second, want to ignore these events in my listener

    I have a JTable that I update every second using
    table.getModel().setValueAt(data, row, col);I'm also reacting to when the user clicks on a row in a the table, using a ListSelectionListener:
    public class MyTableListener implements ListSelectionListener {
              public void valueChanged(ListSelectionEvent e) {
                   if (e.getValueIsAdjusting()) return;
                   //do stuff
    }And of course I've done this:
    table.getSelectionModel.addListSelectionListener(new MyTableListener());Problem is, every time I update the table data it generates an event handled by valueChanged() above. I need to prevent this.
    Do I need a customized table model for this?
    Thanks!

    Found the problem: I forgot I was using JXTable, not JTable. Here's my example:
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    import org.jdesktop.swingx.*;
    public class Test {
         JXTable table = null;//change this to JTable to fix
         public class MyTableListener implements ListSelectionListener {
              public void valueChanged(ListSelectionEvent e) {
                   System.out.println("event="+e.toString());
         public Test()
              JFrame frame  = new JFrame();
              String columns[] = {"one", "two"};
              Object data[][] = {{0, 0}, {0, 0}, {0, 0}};
              table = new JXTable(data, columns);//change this to JTable to fix
              table.getSelectionModel().addListSelectionListener(new MyTableListener());
              frame.add(new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED),
                          BorderLayout.CENTER);
              startThread();
              frame.setVisible(true);
         public static void main (String args[]) {
              Test test = new Test();
         public void startThread()
              class RefreshThread extends Thread {
                   public void run() { try {
                             while(true) { SwingUtilities.invokeLater(new Runnable() {public void run() {
                                       updateTable();
                                  sleep(1*1000);
                        } catch (Exception e) {e.printStackTrace();}
              RefreshThread rt = new RefreshThread();
              rt.start();
         public void updateTable()
              TableModel model = table.getModel();
              try {
                   for(int row = 0; row < model.getRowCount(); row++)
                        model.setValueAt(System.currentTimeMillis(), row, 0);
                        model.setValueAt(System.currentTimeMillis(), row, 1);
              } catch (Exception e) {
                   e.printStackTrace();
    }When I change it to a JTable, valueChanged() is not called every time I programmatically update the table.
    If it's a JXTable, valueChanged() is called with every update. Annoying!
    To compile/run the JXTable version you'll need something like
    java -cp swingx-1.0.jar:. TestAs for the events themselves, I added print statements with e.toString() and the events are not distinguishable from user interaction. I wonder if this is a JXTable bug or feature.
    Thanks!

  • Reload the same Image every second

    Has anyone load an Image and refreshed it automatically?
    What I would like to do is....
    1. Load Image on document creation.
    2. Refresh the image every 100 ml secs
    3. Its the same image.... another app that we wrote writes
    over the original
    thanks in advance
    This doesn't work at all
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    initialize="initTimer()">
    <mx:Script><![CDATA[
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    public function initTimer():void {
    // The first parameter is the interval (in milliseconds).
    The
    // second parameter is number of times to run (0 means
    infinity).
    var myTimer:Timer = new Timer(1000, 0);
    myTimer.addEventListener("timer", timerHandler);
    myTimer.start();
    public function timerHandler(event:TimerEvent):void {
    var url:String = "
    http://localhost/frame.png";
    var urlReq:URLRequest = new URLRequest(url);
    framePNG.url= sURL; //to avoid caching
    framePNG.send();
    ]]>
    </mx:Script>
    <mx:Image id="framePNG" />
    </mx:Application>

    OK - my guess is that it was to randomize the url to prevent
    caching. As much as I don't like the workaround, try something like
    this: take away your sURL and make it correctly load the image
    once.
    Once this is working, try to set the url like this:
    var url:String = "
    http://localhost/frame.png?dummy="
    + (new Date()).time;
    trace(url); // Just so you can make sure it changes every
    time
    What this is doing is changing your url every time it's
    requested so it's never found in the cache. Perhaps the cleaner way
    of doing this is correcting your server so the headers set
    immediate expiration.

  • Updating images on a second monitor

    I am sending 4 different fringe patterns to a second monitor using a VI whose front panel I've configured to open on that monitor.  I'm then using a camera to capture these images. This works reasonably well with the exception that I am limited to updating the image every 200 millisecs before the camera image quality begins to degrade,although not all images are affected int he same way. The resolution on my second monitor is set to 1280 x 720 and the refresh rate is 60Hz. My graphics card is an nVidia K2000 quadro. 
    Ideally I would like to update the image every 100msecs and still obtain acceptable image quality. Any suggestions as to how I might be able to speed up my image display and capture without image degradation?  
    Thanks LW   
    Attachments:
    RIM_GetImages.vi ‏23 KB
    Fringes.docx ‏601 KB

    I'm not sure that I understand your suggestion. I am using the image in the subVI to display my fringe pattern on a second monitor. I don't want to create an image of my subVI front panel or save it anywhere. The for next loop in my subVI displays my sequence of fringe patterns in the image window which is expanded to fill the whole of the monitor. My second monitor is a pattern generator in effect.
    There seems to be a limit as to how fast I can update the displayed image before I start to see image corruption from the camera. As of now I'm not sure what the root cause is. It could be that LV takes some time to send the image to the monitor, maybe it's windows not responding in a timely fashion to an instruction to update the image, maybe the it's the camera, the graphics card or the fact I'm using a subVI. Given that computer games must be updating monitors at high frequencies routinely I'm puzzled as to why a monitor update rate greater than once every 200 millisecs should be causing me problems. 
    Is there a way that LV can write an image directly to a monitor and bypass any delay brintroduced by windows?

  • Second screen for  MacBook Pro with new IOS update?

    I have a second screen for my MacBook Pro and after doing the IOS update it does not work.  I went to preferences and it does not appear as an available display.

    No can't be done.
    I would like to see the links to anyone that says it can. So please post one or 2 of them. Thanks.

  • Blurr images after ios update

    Hi,
    is it true that after ios update some will experience blurred images for images previously existing in the iphone before the update? If so, what is the cause and resolution?
    thanks!

    by "using itunes to remove the photos" do you mean syncing an empty folder?
    No. With your phone connected, itunes running, just un-check all the photos/albums, currently on your phone, under the photos tab in itunes. Hit the apply/sync button. This will remove all the photos currently synced to your phone. Once complete, just sync them back.

  • How to read two files (one is updating every second, the other is constant) simoltaneously

    Dear All,
    I will appreciate if somebody help me.
    I want to read two files, one is temperature wich is updating every second, and the other is hysteresis energy which has specific rows and is constant.
    I got a program in discussion forum which read a file as it is updating. I checked this program in my case and it works.
    Then I added reading hysteresis energy file to the existing file. But while i am running the program, the hysteresis energy file is read with all rows.
    But the aim is that everytime which temperature updates, I need to read just one row of the hysteresis energy file.
    so, in this way in every second i have a new temperature data and one row of the other file.
    I tried to used "for loop" inside the program, but it did not work, becuase reading temperature will be stopped untill for loop ends.
    I attached the program.
    Could somebody help me how to read just one row of hysteresis energy file everytime temperature updates?
    Solved!
    Go to Solution.
    Attachments:
    Readfiles.vi ‏23 KB

    I do not understand relationship between your two files.
    You have another VI or app that is writing data to both files and when new temperature data added you wish just to read the new data and then read one new line of the hysteresis file?????
    But is one is constant, why do you need to keep reading it?
    Anyway…
    The “Read From Spreadsheet File.vi” preformed an Open and a Close for each time it is called (if you will open the VI up and drill down and you will see). So that resets the file pointer back to the beginning and there for will read in the whole file from the first to the last each time if you do not set the start of read offset or number of rows.
    Now the Read from Binary File does not reset the file pointer and leaves the file pointer just past the last byte read so it will start with any new bytes automaicly only giving you the new data.
    I do not think you need to do the math with the Previous EOF=0 and the File size to get what I think you are trying to do.
    Plus use shift reg for the Data string instead of local var
    Set the mechinacl action of the stop botton to Latched
    So you do not need to init the two controls
    Also, I do not get the End of file encountered error (4) from the Read from Binary file if I attempt to read past. It just returns and empty string.
    Omar
    Attachments:
    Readfiles.vi ‏22 KB

  • I am trying to update my iPad 3 with iOS 6. Every time I do, it updates for about 20 minutes, then says an error ocurrs. Please help

    I am trying to update my iPad 3 with iOS 6. Every time I do, it updates for about 20 minutes, then says an error ocurrs. Please help

    Classic. Make sure that you've got the latest version of iTunes.
    Good luck!

  • My iPhone automatically recovers some deleted images after iOS update

    Some months back I deleted few images off my iPhone. I understand that photo stream was 'On'. I noticed that my iPhone was recovering the images now and then. I put 'Off' all the sharing services, photo streams etc etc still my iPhone recovers these images after an iOS update. These are some sensitive photos and I would be in big trouble if this continues.

    What exactly have you tried?
    What happens when you try those things?
    What is the exact wording of any error messages received?

  • HT1688 itunes is not able to download apple ios update . every time a msg pops out saying timed out????

    itunes is not able to download apple ios update . every time a msg pops out saying timed out????
    how can i solve it..
    pls help!!!

    Saying what timed out?
    Try this... search the forums using the search box in the upper right corner of this site for the EXACT error message, you will find a resolution.

  • Updating a JFrame's Background every second

    Hello all,
    What i want to achieve here is very simple, I have a class which extends JFrame. In my constructor, i create my GUI (background and buttons etc.), so here is my code :
    //other imports goes here
    public class TestBg extends JFrame implements ActionListener{
         //constructor
         public TestBg(){
              //.. other codes go in here
              //set the first background
              setContentPane(getImage());
              //create a timer which is invoked every second
              Timer timer = new Timer(1000,this);
              timer.start();
         //close constructor
         public void actionPerformed(ActionEvent e){
              //print a statement to see if method is invoked
              System.out.println("Method invoked");
              setContentPane(getImage());
    }//close classlets say the method getImage() returns a JLabel, which set it to the JFrame's background.
    The actionPerformed method is invoked every second, but the background isn't changing ( getImage() returns a different JLabel each time)
    what extra code do i have to add ? thanks.
    NOTE : I just discovered something, i think the JFrame needs to be repainted. Because whenever i resize the Frame, the background changes!, but i do not know how to 'referesh' the JFrame without resizing it.
    Message was edited by:
    TrAnScEnD3nT
    Message was edited by:
    TrAnScEnD3nT

    That's because You add them to container that is an original content pane. Then when You call setContentPane this container is thrown away with all it's content and new "empty" container is put in that place.
    I advise using a JPanel as a contentPane and don't change it on the run. Insted you can use the timer to repaint that panel with some image specified.

  • HT5654 Every time I have an iOS update, my iphone (5) crashes

    Every time I have an iOS update, my iphone (5) crashes. Why? I turn off security but still no luck.

    Then you didn't read it carefully enough. Here is the applicable part of that page:
    If you're running software update 1.1.3, please note that tapping the 'Gmail' button will automatically configure Gmail IMAP. Here's how to set up POP:
    Tap Mail from your iPhone's Home screen.
    Tap Other.
    Select POP from the tab menu.
    Enter your name, email address, and password in the appropriate fields. The Address field should be your full email address ([email protected]). Google Apps users, enter your full address in the format 'username@your_domain.com.'
    Under Incoming Mail Server, fill in the Host Name field as 'pop.gmail.com.' Google Apps users, enter the server names provided, don't add your domain name in this step.
    Under Outgoing Mail Server (SMTP), fill in the Host Name field as 'smtp.gmail.com.'
    Tap Save. Now you're done!
    If you notice that POP access isn't working properly, please ensure that all your settings are correct by following these instructions:
    From the Home menu, tap Settings.
    Select your Gmail address.
    Scroll to the bottom of the page and tap Advanced.
    Ensure that your settings are as follows:
    Incoming Uses SSL: ON
    Outgoing Uses SSL: ON
    Authentication: Password
    If you're accessing your Gmail from multiple POP clients, we recommend setting Use Recent Mode to ON.

  • Cursor only updates every second row

    Hello Helpful Peoples
    I have a table with a set of delivery dates, and am wanting to add a date on which a reminder flag should be raised by the system. The delivery dates are already populated and I'm wanting to add functionality where the end user can set how many days prior they are reminded.
    I've opened a cursor to retrieve all the current due dates from my source table. When I loop through this cursor and update the reminder date and reminder text, my code is only updating every second row.
    I can't work out why this code seems to skip a row every time it updates a record. Is anyone able to assist?
    declare
    v_date rep_delivery.reminderdate%type;
    v_rownum number;
    CURSOR reminder_cur
    IS
    SELECT DEL.DUEDATE
    FROM REP_DELIVERY DEL
    WHERE DEL.REP_ID = :P212_REP_ID:
    FOR UPDATE OF DEL.REMINDERDATE;
    begin
    FOR x IN reminder_cur LOOP
    FETCH reminder_cur INTO v_date;
    EXIT WHEN reminder_cur%NOTFOUND;
    v_date := v_date - to_number(:P212_REMDAYS);
    UPDATE REP_DELIVERY DEL2
    SET DEL2.REMINDERDATE = v_date
    WHERE CURRENT OF reminder_cur;
    UPDATE REP_DELIVERY DEL3
    SET DEL3.REMINDERTEXT = :P212_DESCRIPTION
    WHERE CURRENT OF reminder_cur;
    END LOOP;
    commit;
    end;

    Oolite,
    Use this code:
    DECLARE
       v_date   rep_delivery.reminderdate%TYPE;
       CURSOR reminder_cur
       IS
          SELECT        ROWID, duedate
                   FROM rep_delivery
                  WHERE rep_id = :p212_rep_id
          FOR UPDATE OF reminderdate;
    BEGIN
       FOR x IN reminder_cur
       LOOP
          v_date := x.duedate;
          v_date := v_date - TO_NUMBER (:p212_remdays);
          UPDATE rep_delivery del2
             SET del2.reminderdate = v_date,
                 del2.remindertext = :p212_description
           WHERE ROWID = x.ROWID;
       END LOOP;
       COMMIT;
    END;and it will work for you.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • My mail will not open up after doing the latest iOS update.

    My mail crashes every time I try to open it and check email. It's just started after I did the iOS update last night. HELP!!

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Setting Up An eMail Account
    http://support.apple.com/kb/ht4810
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

Maybe you are looking for

  • Need suggestion for Column update in query results

    While generating reports using Oracle 10g SQL Query, we need to update the few of columns data with business calculations. We are processing large amount of data. Kindly suggest us, for the best method to achieve this.

  • Servive Freight in Import PO

    Dear Grurus I have very common import scenario.I expalin it with the following example. I import material from foreign vendor whose cost is say 100 dollars.This is to be paid to foreign vendor.As PO is in name of that vendor so no issues on that. I t

  • Sound Blown?

    I've been using an old speaker set of Harman Karmon's for about 3 months, most of the time the device is plugged into my macbook (july 2012 purchased new just downloaded Mavericks) and I usually am always playing my Spotify music through the speakers

  • Creating a tree

    Hi all, I m making a frame and adding panel to it and then adding canvas to the panel. In this I m drawing some images. Now I want that in my frame half the window shows a tree type structure and half dispay the images. So in one frame both these sho

  • Help with building a database portlet (reference_path) issues

    I'm attempting to create a Provider Portlet based on the Database Provider example. The goal of the portlet is to dynamically display a Portal Report based upon a session storage variable. The session storage variable is set in another portlet on the