android - Variable Stays Null -
i'm trying pass string between activities, ytadapter favorites. ytadapter: mholder.mvideofavorite.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { ////////////////////////////////////////////////////////////// // need send searchresult result here favorites // //////////////////////////////////////////////////////////// apputils.showtoast(result.getsnippet().gettitle() + " added favorites."); intent intent = new intent(mactivity,favorites.class); string vidid,vidtitle,vidthumbnail; vidid = result.getid().getvideoid(); //video id vidtitle = result.getsnippet().gettitle(); //video title vidthumbnail = result.getsnippet().getthumbnails().getmedium().geturl(); //video thumbnail intent.putextra("id",vidid); intent.putextra("title",vidtitle); in...