inputstream - Is There Any Way To Update String Array From Online File (Android) -


i working on image gallery app in loading images url. have stored image urls in string array:

public static string[] images = new string[]{      "https://encrypted-tbn3.gstatic.com/images?q=tbn:and9gctybitefe2xu-or72bhw8uzf19_mv2kr8cuuu8kkyrvbezpxiex-q",      "https://encrypted-tbn3.gstatic.com/images?q=tbn:and9gctybitefe2xu-or72bhw8uzf19_mv2kr8cuuu8kkyrvbezpxiex-q",      "https://encrypted-tbn3.gstatic.com/images?q=tbn:and9gctybitefe2xu-or72bhw8uzf19_mv2kr8cuuu8kkyrvbezpxiex-q",      }; 

but how can update string array online file instead of adding urls manually, there way update string array online file

full code:

package com.nostra13.example.universalimageloader;   public final class constants {      public static final string[] images = new string[] {              "http://tabletpcssource.com/wp-content/uploads/2011/05/android-logo.png",             "http://simpozia.com/pages/images/stories/windows-icon.png",             "http://radiotray.sourceforge.net/radio.png",             "http://www.bandwidthblog.com/wp-content/uploads/2011/11/twitter-logo.png",             "http://weloveicons.s3.amazonaws.com/icons/100907_itunes1.png",             "http://weloveicons.s3.amazonaws.com/icons/100929_applications.png",             "http://www.idyllicmusic.com/index_files/get_apple-iphone.png",             "http://www.frenchrevolutionfood.com/wp-content/uploads/2009/04/twitter-bird.png",             "http://3.bp.blogspot.com/-ka5mirgj_s4/tdd9oof6bmi/aaaaaaaae8k/7ydktptutsg/s1600/google_sky%2bmaps_android.png",             "http://www.desiredsoft.com/images/icon_webhosting.png",             "http://goodereader.com/apps/wp-content/uploads/downloads/thumbnails/2012/01/hi-256-0-99dda8c730196ab93c67f0659d5b8489abdeb977.png",             "http://1.bp.blogspot.com/-mlaj4p_3rbu/tdd9owxn8ii/aaaaaaaae8u/xyynwwr3_4q/s1600/antivitus_free.png",             "http://cdn3.iconfinder.com/data/icons/transformers/computer.png",             "http://cdn.geekwire.com/wp-content/uploads/2011/04/firefox.png?7794fe",             "https://ssl.gstatic.com/android/market/com.rovio.angrybirdsseasons/hi-256-9-347dae230614238a639d21508ae492302340b2ba",             "http://androidblaze.com/wp-content/uploads/2011/12/tablet-pc-256x256.jpg",             "http://www.theblaze.com/wp-content/uploads/2011/08/apple.png",             "http://1.bp.blogspot.com/-y-hqwq4kuu0/tdd9_ikiy7i/aaaaaaaae88/3g4xicldzd0/s1600/twitter_android.png",             "http://3.bp.blogspot.com/-naf4imjgpc8/tdd9ognuhhi/aaaaaaaae8e/vm9yu_ligz4/s1600/adobe%2breader_android.png",             "http://cdn.geekwire.com/wp-content/uploads/2011/05/oovoo-android.png?7794fe",             "http://icons.iconarchive.com/icons/kocco/ndroid/128/android-market-2-icon.png",             "http://thecustomizewindows.com/wp-content/uploads/2011/11/nicest-android-live-wallpapers.png",             "http://c.wrzuta.pl/wm16596/a32f1a47002ab3a949afeb4f",             "http://macprovid.vo.llnwd.net/o43/hub/media/1090/6882/01_headline_muse.jpg",      };      private constants() {     }      public static class config {         public static final boolean developer_mode = false;     }      public static class {         public static final string images = "com.nostra13.example.universalimageloader.images";         public static final string image_position = "com.nostra13.example.universalimageloader.image_position";     } } 

you should store result on server , have device query server result in json , use collection of images in json data , handle way. because result can change should each time application started (of course you'd have tweak whatever extent).


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -