8

Getting a stream of jpeg images in android application

view full story
linux-howto

http://stackoverflow.com – i need some help with getting a stream of jpeg images from a server with HTTP authentication for a small android application. So far the code is able to log in and fetch one image to an ImageView. Some of the code has been stripped to the minimum for easier understanding. URLConnection conn; InputStream is; Drawable d; Runnable run1 = new Runnable(){ public void run(){ urlLogin=new URL(urlCamStr); conn = urlLogin.openConnection(); conn.setDoInput(true); conn.setRequestProperty("Authorization",userNamePasswordBase64(uname, pword)); conn.connect(); is=conn.getInputStream(); d = (HowTos)