IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager

Please check my answer here. Basically I just had to : Don’t make the call to super() on the saveInstanceState method. This was messing things up… This is a known bug in the support package. If you need to save the instance and add something to your outState Bundle you can use the following: In the end the proper solution was (as seen in the … Read more

findViewById in Fragment

Use getView() or the View parameter from implementing the onViewCreated method. It returns the root view for the fragment (the one returned by onCreateView() method). With this you can call findViewById(). As getView() works only after onCreateView(), you can’t use it inside onCreate() or onCreateView() methods of the fragment .

ADK vs JDK vs SDK difference?

SDK is an acronym for Software Development Kit. This isn’t specific to Java as you can have an SDK for pretty much any language. It is pretty much just a term for a package that would have the tools to build stuff with its associated language. JDK is the Java Development Kit. This what you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)