Techbirds | Knowledge Hub | Page 16
I would suggest to work with Fragments (and not directly with views). You need an Interface on your fragments to tell them when they are shown:
public interface IShowedFragment { public void onShowedFragment(); }
public interface IShowedFragment { public void onShowedFragment(); } |
Make all your fragments implement that interface, and in that method call your loaders/asyncTasks/background tasks. Then put an onPageChangeListener on your ViewPager, and when you detect the user
Read More →
493 total views, no views today
Hi all this is a common error I think everyone might have faced. While Help -> install new software you sometimes get reported by eclipse Missing required feature: In this case you should check Contact all sites checkbox. But do not always turn it on if your app while installing gives error could not find repository then you have to turn it off. 479 total views, no views today
479 total views, no views today
Hi all, I recently did a POC on facebook login. Here is my workaround. I used the Loginbutton Widget to login. first of all in linearlayout put this
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Then prefer using UiLifeCycleHelper as provided by Tapan In that you will find onSessionStateChanged method with three parameters
Session State FacebookException
Session State FacebookException |
Now your Facebook Login is ready to
Read More →
1,726 total views, no views today
Hello friends. In this tutorial I am going to explain how you will be making a sprite from any URL on Internet I am using two URLs 1. https://lptpl.info/9.png 2. https://dl.dropboxusercontent.com/u/37517735/icon_test.jpg So these are the two images I will be using to create the sprite Step 1: Step 1 is as simple. Just create a
Read More →
6,981 total views, no views today
A typical web page has headers, footers, navigation, central area and side bars. Now if we want to represent the same in HTML 4 with proper names to the HTML section we would probably use a DIV tag. But in HTML 5 they have made it more clear by creating element names for those sections
Read More →
2,518 total views, no views today