Developers-Portfolio icon indicating copy to clipboard operation
Developers-Portfolio copied to clipboard

Issues on Feeds

Open emmaunel opened this issue 7 years ago • 14 comments

  • Displaying Images on the Feeds

  • Unable to save the download Uri of an image to Post Object(for more clarification, Ask Emmanuel the author)

emmaunel avatar Apr 18 '18 00:04 emmaunel

Will look into this Tomorrow, Been busy.

madonawambua avatar Apr 18 '18 00:04 madonawambua

ok thanks @Madonahs

emmaunel avatar Apr 18 '18 01:04 emmaunel

Hey @emmaunel I see you created a different method, please can you configure that inside the method

 public void uploadToServer() {
        // TODO 4: In the database, change the image location to the location in firebase storage
        //TODO 2: ensure we get the following
        
        Post post = new Post(postText.getText().toString(), "Ayo", selectedImage.getPath());

madonawambua avatar Apr 18 '18 17:04 madonawambua


    private ChildEventListener feedsListener = new ChildEventListener() {
        @Override
        public void onChildAdded(DataSnapshot dataSnapshot, String s) {
            // This is triggered when we receive a post
            Post p = dataSnapshot.getValue(Post.class);

            if(p != null) {
                p.setKey(dataSnapshot.getKey());
                if(!mPosts.contains(p)) {
                    mPosts.add(p);
                    mAdapter.notifyItemInserted(mPosts.size() - 1);
                }
            }

madonawambua avatar Apr 23 '18 13:04 madonawambua

@Madonahs Is the image able to show on the main feed?

emmaunel avatar May 04 '18 15:05 emmaunel

Yes, I will be updating the new code after i finish the inspection.

madonawambua avatar May 04 '18 16:05 madonawambua

@emmaunel I forgot to update been busy, with the current ongoing project. :(

madonawambua avatar Jun 08 '18 15:06 madonawambua

@Madonahs It's fine. I have been busy too. I plan on coming back during the summer so I can focus on it better.

emmaunel avatar Jun 10 '18 14:06 emmaunel

That sounds great. I was hoping once I'm done with the projects i can jump in.

madonawambua avatar Jun 10 '18 14:06 madonawambua

@emmaunel can you image i am still on working on my scholarship projects how are you doing?

madonawambua avatar Jul 16 '18 22:07 madonawambua

@Madonahs I am good. And yes, the scholarship projects are a lot of work. I am currently on the project 4 and I am having difficulties with it.😂

emmaunel avatar Jul 17 '18 15:07 emmaunel

@emmaunel I can imagine, challenging but indeed good.

madonawambua avatar Jul 17 '18 23:07 madonawambua

@Madonahs hey, I just wanted to say that I am going to start working on the app while I'm waiting for my scholarship project to be reviewed. So hi again

emmaunel avatar Aug 04 '18 15:08 emmaunel

That is amazing. Welcome back.

madonawambua avatar Aug 04 '18 15:08 madonawambua