@Override
  public void onStart() {
    super.onStart();

    /** Setting the multiselect choice mode for the listview */
    getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
  }
Example #2
0
 @Override
 public void onStart() {
   super.onStart();
   Intent intent = new Intent(getActivity(), DataProvider.class);
   getActivity().bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
   Log.i("HabrQA", "Service started");
 };
  @Override
  public void onStart() {

    this.registerForContextMenu(getListView());
    getListView().setItemsCanFocus(true);
    getListView().setLongClickable(true);
    getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
    getListView()
        .setOnItemLongClickListener(
            new OnItemLongClickListener() {
              @Override
              public boolean onItemLongClick(
                  AdapterView<?> arg0, View view, int position, long id) {
                if (!inContextMode) {
                  deleteIndex = position;
                  getActivity().openContextMenu(getListView());
                  return true;
                }
                return false;
              }
            });

    setAddButtonListener(getActivity());

    adapter.notifyDataSetChanged();

    super.onStart();
  }
  @Override
  public void onStart() {
    super.onStart();

    if (!isRecovered) {
      new RecoverNewsListTask().executeOnExecutor(MyAsyncTask.THREAD_POOL_EXECUTOR);
    }
  }
Example #5
0
 @Override
 public void onStart() {
   super.onStart();
   getActivity()
       .bindService(
           new Intent(getActivity(), CloudPlaybackService.class),
           mServiceConnection,
           Context.BIND_AUTO_CREATE);
 }
  @Override
  public void onStart() {
    // TODO Auto-generated method stub
    super.onStart();

    if (getFragmentManager().findFragmentById(R.id.article_fragment) != null) {
      getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
    }
  }
  @Override
  public void onStart() {
    super.onStart();

    // When in two-pane layout, set the listview to highlight the selected list item
    // (We do this during onStart because at the point the listview is available.)
    if (getFragmentManager().findFragmentById(R.id.paradox_description_fragment) != null) {
      getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
    }
  }
 @Override
 public void onStart() {
   super.onStart();
   if (isDualPane) {
     detailsContainer.removeAllViews();
     LayoutInflater inflater =
         (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     RelativeLayout emptyView = (RelativeLayout) inflater.inflate(R.layout.empty_details, null);
     detailsContainer.addView(emptyView);
   }
 }
  @Override
  public void onStart() {
    super.onStart();
    mDBAdapter = new DBAdapter(getActivity());
    mDBAdapter.open();

    // load timestamp
    SharedPreferences settings = getActivity().getSharedPreferences(SHARED, 0);
    timestamp = settings.getLong(TIMESTAMP, 0);
    loadMessages();
    // getNewMessages gets new messages from server
    client.getNewMessages(timestamp);
  }
 @Override
 public void onStart() {
   super.onStart();
 }
  @Override
  public void onStart() {
    super.onStart();

    setEmptyText(getActivity().getString(R.string.list_searching_documents));
  }
Example #12
0
 @Override
 public void onStart() {
   super.onStart();
   quickAddBar.setupRecognizerApi();
 }
 @Override
 public void onStart() {
   findPlayersAndPopulateList();
   registerForContextMenu(getListView());
   super.onStart();
 }
 @Override
 public void onStart() {
   super.onStart();
   getListView().setDivider(new ColorDrawable(Color.BLACK));
 }
Example #15
0
 @Override
 public void onStart() {
   super.onStart();
   dpApp.addApiListener(this);
 }