Hello I have a small problem whenever I try to sta...
# android
p
Hello I have a small problem whenever I try to start a new intent i have succesfully assigned a variable into a Parcelable object but when I start this new Activity from a fragment it just display a blank screen and the new Activity is not showing up as I expected nor the breakpoint on OnCreate is triggered, what could I do?
😶 5
here is the method
Copy code
fun loadImages(){
        recyclerView!!.setHasFixedSize(true)
        recyclerView!!.layoutManager = GridLayoutManager(this.activity,4)

        try {
            this.imageList = ImageGallery.GetImagesList(this.context as Context )
        }
        catch (ex:Exception)
        {
            println(ex.message)
        }

       try { galleryAdapter = GalleryAdapter(this.context as Context,imageList,
           object : IPhotoInterface {
               override fun onPhotoClick(stringPath: String):Unit {
                   //process picture on click
                   imageIntent  = android.content.Intent(context,SecondaryActivity::class.java)
                   imageIntent.putExtra("image_file",File(stringPath))
                   try{
                       startActivity(imageIntent)

                   }catch(except:Exception)
                   {
                       println(except.message)
                   }

               }
           })
           recyclerView?.adapter = galleryAdapter
           galleryNumberText?.text = "${imageList.size} images"
       }
        catch(ex:Exception)
        {
            println(ex.message)
        }
    }