blundell wrote:You would need to spawn a thread with a timer, then every two seconds download the new image. Then in your UI thread have a handler that updates the image view
jonbonazza wrote:I am not exactly sure what you are asking for help with on the first part.
As for references, What is your programming background? Do you know java? Do you know any other languages? Are you familiar with OOP in general?
blundell wrote:Your downloading the image to here:
String filePath = "/sdcard/download";
but then attempting to load it from here:
final String path ="/sdcard/.MitsuMedia/rotm/temp.jpg";
so yes it can't find the file
jonbonazza wrote:Woops... I accidentally forgot to change that line. lol I actually copied and pasted most of that from an earlier project I did.
imageName should be a class-wide constant that is a string object containing the name of your image file. For example, you might define it like so:
public static final String imageName = "my_image.jpg";
I didn't include this in the code, so
Users browsing this forum: No registered users and 27 guests