Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi Anupam, thanks for the tutorial, very helpful. I’m trying to simulate a blog app using a json file, the main screen show a list of posts, and when I click on it, it opens the post, my question is, should I send all data from the first fragment to the second (title, image, text) or should I do like websites where we send the post ID and when the new page is opened we fetch all the content by the ID. Regards, Andrea
- Andrea
Thank for nice tutorial. But is there a way to send back the data from fragment two to one again??
- Shiraz
Hello anupam chugh this is nice tutorial.but i have some help. In this tutorial 2 tab but i am using 4 tab and i have pass value first fragment to fourth fragment but error in tag value how to solve this error
- chirag virani
String tag = “android:switcher:” + R.id.viewPager + “:” + 1; how use this in tutorial
- chirag virani
I also thank you so much! When you create a new project with Tabbed Activity my PagerAdapter class extends to FragmentStatePagerAdapter insted of FragmentPagerAdapter. error: Attempt to invoke virtual method on a null object reference public class PagerAdapter extends FragmentPagerAdapter { }
- Kristopher
Hi! My code is like your code without any difference. Of course i don’t declare AppBarLayout and Toolbar, just i declare TabLayout and ViewPager. But when i click on Button in Fragment_One, my app stopped and in LogCat i get Null Pointer Exception in lines: MainActivity.sendData - f.displayReceivedData(message); and FragmentOne.onClick: - SM.sendData(inData.getText().toString().trim()); Error is: java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.my.testtablayout.FragmentTwo.displayReceivedData(java.lang.String)’ on a null object reference Why? Thankyou for your answer
- Mohammad Ali Yazdanpanah