예제 #1
0
 private void initServers() {
   mainHandler = new MainHandler();
   mainHandler.addFriendsFragment((FriendsFragment) fragmentPagerAdapter.getItem(2));
   mainHandler.addHomeFragment((HomeFragment) fragmentPagerAdapter.getItem(0));
   Log.v(TAG, "BroadcastServer Start");
   new Thread(new BServer(this, mainHandler)).start();
   Log.v(TAG, "TransferServer Start");
   new Thread(new TServer(this, mainHandler)).start();
 }
예제 #2
0
 @Override
 public void onResume() {
   Log.v(TAG, "OnResume");
   super.onResume();
   fragmentPagerAdapter.getItem(viewPager.getCurrentItem()).setUserVisibleHint(true);
 }