Tabnine Logo
com.example.android.apis.app
Code IndexAdd Tabnine to your IDE (free)

How to use com.example.android.apis.app

Best Java code snippets using com.example.android.apis.app (Showing top 20 results out of 315)

origin: stackoverflow.com

    .setTabListener(new TabListener<FragmentStack.CountingFragment>(
        this, "simple", FragmentStack.CountingFragment.class)));
bar.addTab(bar.newTab()
    .setText("Contacts")
    .setTabListener(new TabListener<LoaderCursor.CursorLoaderListFragment>(
        this, "contacts", LoaderCursor.CursorLoaderListFragment.class)));
bar.addTab(bar.newTab()
    .setText("Apps")
    .setTabListener(new TabListener<LoaderCustom.AppListFragment>(
        this, "apps", LoaderCustom.AppListFragment.class)));
bar.addTab(bar.newTab()
    .setText("Throttle")
    .setTabListener(new TabListener<LoaderThrottle.ThrottledLoaderListFragment>(
        this, "throttle", LoaderThrottle.ThrottledLoaderListFragment.class)));
origin: stackoverflow.com

    new UiFragment()).commit();
button.setOnClickListener(new OnClickListener() {
  public void onClick(View v) {
    mWorkFragment.restart();
  mWorkFragment = new RetainedFragment();
origin: li2/learning-android-open-source

@Override public Loader<List<AppEntry>> onCreateLoader(int id, Bundle args) {
  // This is called when a new Loader needs to be created.  This
  // sample only has one Loader with no arguments, so it is simple.
  return new AppListLoader(getActivity());
}
origin: li2/learning-android-open-source

@Override public void onLoadFinished(Loader<List<AppEntry>> loader, List<AppEntry> data) {
  // Set the new data in the adapter.
  mAdapter.setData(data);
  // The list should now be shown.
  if (isResumed()) {
    setListShown(true);
  } else {
    setListShownNoAnimation(true);
  }
}
origin: qiubiteme/android_api_demos

  public void onClick(View v) {
    if (mCurConnection != null) {
      unbindService(mCurConnection);
      mCurConnection = null;
    }
    ServiceConnection conn = new MyServiceConnection();
    if (bindService(mBindIntent, conn, Context.BIND_AUTO_CREATE)) {
      mCurConnection = conn;
    }
  }
};
origin: qiubiteme/android_api_demos

/**
 * Perform provider creation.
 */
@Override
public boolean onCreate() {
  mOpenHelper = new DatabaseHelper(getContext());
  // Assumes that any failures will be reported by a thrown exception.
  return true;
}
origin: li2/learning-android-open-source

  public void onClick(View v) {
    // When button is clicked, call up to owning activity.
    ((FragmentDialog)getActivity()).showDialog();
  }
});
origin: THEONE10211024/ApiDemos

  /**
   * The main job of the constructor is to call {@link #setupSuggestions(String, int)} with the
   * appropriate configuration values.
   */
  public SearchSuggestionSampleProvider() {
    super();
    setupSuggestions(AUTHORITY, MODE);
  }
}
origin: li2/learning-android-open-source

  @Override
  public void run() {
    showToast("Error code:" + getResultCode());
  }
});
origin: li2/learning-android-open-source

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
  handleCommand(intent);
  // We want this service to continue running until it is explicitly
  // stopped, so return sticky.
  return START_STICKY;
}
origin: li2/learning-android-open-source

  /**
   * Simple helper for summaries showing local & global (aggregate) policy settings
   */
  protected String localGlobalSummary(Object local, Object global) {
    return getString(R.string.status_local_global, local, global);
  }
}
origin: qiubiteme/android_api_demos

@Override public void onLoadFinished(Loader<List<AppEntry>> loader, List<AppEntry> data) {
  // Set the new data in the adapter.
  mAdapter.setData(data);
  // The list should now be shown.
  if (isResumed()) {
    setListShown(true);
  } else {
    setListShownNoAnimation(true);
  }
}
origin: qiubiteme/android_api_demos

  public void onClick(View v) {
    if (mCurConnection != null) {
      unbindService(mCurConnection);
      mCurConnection = null;
    }
    ServiceConnection conn = new MyServiceConnection();
    if (bindService(mBindIntent, conn,
        Context.BIND_AUTO_CREATE | Context.BIND_ALLOW_OOM_MANAGEMENT)) {
      mCurConnection = conn;
    }
  }
};
origin: qiubiteme/android_api_demos

@Override public Loader<List<AppEntry>> onCreateLoader(int id, Bundle args) {
  // This is called when a new Loader needs to be created.  This
  // sample only has one Loader with no arguments, so it is simple.
  return new AppListLoader(getActivity());
}
origin: li2/learning-android-open-source

/**
 * Perform provider creation.
 */
@Override
public boolean onCreate() {
  mOpenHelper = new DatabaseHelper(getContext());
  // Assumes that any failures will be reported by a thrown exception.
  return true;
}
origin: qiubiteme/android_api_demos

  public void onClick(View v) {
    // When button is clicked, call up to owning activity.
    ((FragmentDialog)getActivity()).showDialog();
  }
});
origin: qiubiteme/android_api_demos

  public void onClick(View v) {
    if (mCurConnection != null) {
      unbindService(mCurConnection);
      mCurConnection = null;
    }
    ServiceConnection conn = new MyServiceConnection();
    if (bindService(mBindIntent, conn,
        Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT)) {
      mCurConnection = conn;
    }
  }
};
origin: qiubiteme/android_api_demos

  public void onClick(View v) {
    if (mCurConnection != null) {
      unbindService(mCurConnection);
      mCurConnection = null;
    }
    ServiceConnection conn = new MyServiceConnection(true);
    if (bindService(mBindIntent, conn,
        Context.BIND_AUTO_CREATE | Context.BIND_WAIVE_PRIORITY)) {
      mCurConnection = conn;
    }
  }
};
origin: qiubiteme/android_api_demos

  public void onClick(View v) {
    if (mCurConnection != null) {
      unbindService(mCurConnection);
      mCurConnection = null;
    }
    ServiceConnection conn = new MyServiceConnection();
    if (bindService(mBindIntent, conn,
        Context.BIND_AUTO_CREATE | Context.BIND_NOT_FOREGROUND)) {
      mCurConnection = conn;
    }
  }
};
origin: qiubiteme/android_api_demos

  public void onClick(View v) {
    if (mCurConnection != null) {
      unbindService(mCurConnection);
      mCurConnection = null;
    }
    ServiceConnection conn = new MyServiceConnection();
    if (bindService(mBindIntent, conn,
        Context.BIND_AUTO_CREATE | Context.BIND_ADJUST_WITH_ACTIVITY
        | Context.BIND_WAIVE_PRIORITY)) {
      mCurConnection = conn;
    }
  }
};
com.example.android.apis.app

Most used classes

  • Forwarding
    Example of removing yourself from the history stack after forwarding to another activity. This can b
  • AlarmService_Service
    This is an example of implementing an application service that will run in response to an alarm, all
  • FragmentRetainInstance$RetainedFragment
    This is the Fragment implementation that will be retained across activity instances. It represents s
  • FragmentRetainInstance$UiFragment
    This is a fragment showing UI that will be updated from work done in the retained fragment.
  • FragmentTabs$TabListener
  • ActionBarDisplayOptions,
  • ActionBarMechanics,
  • ActionBarNavigation,
  • ActionBarNavigationTarget,
  • ActionBarSettingsActionProviderActivity,
  • ActionBarShareActionProviderActivity,
  • ActionBarTabs$TabContentFragment,
  • ActionBarTabs$TabListener,
  • ActionBarTabs,
  • ActionBarUsage,
  • ActivityRecreate,
  • AlarmController,
  • AlarmService,
  • AlertDialogSamples
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now