title: Retrieve images from Firebase Database and display them on screen in my app
body: <p>I am trying to get images from firebase database to display in my app in an Activity.The images upload successfully but when i try to view them,i dont see them.Here is my code to retrieve them from firebase.Im using android studio.</p>
  
  <pre><code>public class ActionBar22 extends AppCompatActivity {
  
      private RecyclerView mrecyclerview;
      private ImageAdapter madapter;
  
      private ProgressDialog mprogresscircle;
  
      private DatabaseReference mdatabaseref;
      private List&lt;UploadedPosts&gt; muploads;
  
      List&lt;UploadedPosts&gt; list = new ArrayList&lt;&gt;();
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_action_bar22);
  
  
         //pull items from firebase database
         mrecyclerview = findViewById(R.id.recycler_view);
          mrecyclerview.setHasFixedSize(true);
         mrecyclerview.setLayoutManager(new LinearLayoutManager(this));
  
          mprogresscircle = findViewById(R.id.progress_circle);
          mprogresscircle = new ProgressDialog(ActionBar22.this);
          mprogresscircle.setMessage("Loading...");
          mprogresscircle.show();
  
          muploads = new ArrayList&lt;&gt;();
  
        final FirebaseDatabase database = FirebaseDatabase.getInstance();
         DatabaseReference ref  = database.getReference("Uploads");
  
                  for(DataSnapshot postsnapshot : dataSnapshot.getChildren()){
              UploadedPosts upload=postsnapshot.getValue(UploadedPosts.class);
                           muploads.add(upload);
                       }
  
                       madapter = new ImageAdapter(ActionBar22.this,muploads);
  
                       mrecyclerview.setAdapter(madapter);
                       mprogresscircle.setVisibility(View.INVISIBLE);
              }
  
              @Override
              public void onCancelled(DatabaseError databaseError) {
                  Toast.makeText(ActionBar22.this, databaseError.getMessage(),Toast.LENGTH_LONG).show();
                  mprogresscircle.dismiss();
                  mprogresscircle.setVisibility(View.INVISIBLE);
              }
          });     
      }
  }
  </code></pre>
  
  <p>I want it to display one photo in the width of the screen.They be displayed in a column.The photos dont show.Only a blank screen.<a href="https://i.stack.imgur.com/JQ91s.jpg" rel="nofollow noreferrer">enter image description here</a></p>