Code example for ImageSwitcher

Methods: setImageDrawable

  public void handleReceivedPacket(AbstractPacket reply) {
  public void onItemSelected(AdapterView parent, View v, int position, long id) {
  public Drawable getDrawable(int position) {
    return new BitmapDrawable(getBitmap(position));
  public Bitmap getBitmap(int position) {
    Bitmap bitmap = null;
    try { 
      URL aURL = new URL(mImages.get(position) + "?sessionId=" + getSessionId());
      URLConnection conn = aURL.openConnection();
      InputStream is = conn.getInputStream();
      BufferedInputStream bis = new BufferedInputStream(is);
Connect your IDE to all the code out there  Get Codota for Java