Activity setTitle - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Activity setTitle method.

This code example shows how to use the following methods:setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setTitle
				progressDialog.dismiss();
			} 
			progressDialog = null;
		} else { 
			Activity parent = (Activity) proxy.getActivity();
			parent.setProgressBarIndeterminate(false);
			parent.setProgressBarIndeterminateVisibility(false);
			parent.setProgressBarVisibility(false);
			parent.setTitle(statusBarTitle);
			statusBarTitle = null;
		} 
		visible = false;
	} 
 
	@Override 
	public void onCancel(DialogInterface dialog) {
		visible = false;
		fireEvent(TiC.EVENT_CANCEL, null); 
	} 
} 
10
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setProgress, setTitle
		} 
		 
		@Override 
        public void onProgressChanged(WebView view, int progress)
        {        	 
			mParentActivity.setTitle(String.format("Loading (%d%%)...", progress));
			mParentActivity.setProgress(progress * 100);
 
            if(progress == 100)	mParentActivity.setTitle(mTitle);
        } 
		 
	} 
	 
} 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setTitle
	public void onTitleChanged(final CharSequence title, final int color) {
		super.onTitleChanged(title, color);
		if (mCallbackFragment == null) return;
		final Activity activity = mCallbackFragment.getActivity();
		if (activity instanceof SettingsDetailsActivity) {
			activity.setTitle(title);
		} 
	} 
 
	@Override 
	public void setCallbackFragment(final ActivityHostFragment<InternalSettingsDetailsActivity> fragment) {
		mCallbackFragment = fragment;
		if (mCallbackFragment == null) return;
		final Activity activity = mCallbackFragment.getActivity();
		if (activity instanceof SettingsDetailsActivity) {
			activity.setTitle(getTitle());
		} 
	} 
 
	@Override 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getTitle, setTitle
        mCanvas.setBackgroundColor(color); // 视图仍然是透明色
    } 
 
    protected void showTime(long ms) {
        Activity activity = (Activity) this.getContext();
        String title = activity.getTitle().toString();
        int pos = title.indexOf(' ');
        if (pos >= 0) {
            title = title.substring(0, pos);
        } 
        activity.setTitle(title + " - " + Long.toString(ms) + " ms");
    } 
 
    @Override 
    protected void onDraw(Canvas canvas) {
        long ms = SystemClock.currentThreadTimeMillis();
        if (mCanvas.beginPaint(canvas)) {
            canvas.drawColor(Color.TRANSPARENT);
            if ((mCreateFlags & 0xF0000) != 0) {  // in scroll view
                TestCanvas.test(mCanvas, mCreateFlags, 400);
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getTitle, setTitle
        mCanvas.setBackgroundColor(color); // 视图仍然是透明色
    } 
 
    protected void showTime(long ms) {
        Activity activity = (Activity) this.getContext();
        String title = activity.getTitle().toString();
        int pos = title.indexOf(' ');
        if (pos >= 0) {
            title = title.substring(0, pos);
        } 
        activity.setTitle(title + " - " + Long.toString(ms) + " ms");
    } 
 
    protected void doDraw(SurfaceHolder holder) {
        long ms = SystemClock.currentThreadTimeMillis();
        Canvas canvas = holder.lockCanvas();
 
        if (canvas != null) {
            if (mCanvas.beginPaint(canvas)) {
                canvas.drawColor(Color.TRANSPARENT, Mode.CLEAR);
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getIntent, setTitle
        String portStr = port == -1 ? "" : Integer.toString(port);
        mPortField.setText(portStr);
 
        mExclusionListField.setText(exclList);
 
        final Intent intent = activity.getIntent();
 
        String buttonLabel = intent.getStringExtra("button-label");
        if (!TextUtils.isEmpty(buttonLabel)) {
            mOKButton.setText(buttonLabel);
        } 
 
        String title = intent.getStringExtra("title");
        if (!TextUtils.isEmpty(title)) {
            activity.setTitle(title);
        } 
    } 
 
    /** 
     * validate syntax of hostname and port entries 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setTitle
	protected JSONObject mGraphOptions;
 
	protected final Handler mTitleHandler = new Handler();
	protected final Runnable mUpdateActivityTitle = new Runnable() {
		public void run() { 
			mParentActivity.setTitle(mGraphTitle); 
		} 
	}; 
 
	protected final Handler mDialogHandler = new Handler();
	protected final Runnable mStartThinker = new Runnable() {
		public void run() { 
			mParentActivity.showDialog(160); 
		} 
	}; 
	protected final Runnable mStopThinker = new Runnable() {
		public void run() { 
			mParentActivity.dismissDialog(160); 
		} 
	}; 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java

Related Activity setTitle Questions & Answers:

Other Activity setTitle Examples

58:				mDrawerList.setItemChecked(position, true);
59:				mDrawerList.setSelection(position);
60:				setTitle(navMenuTitles[position]);
61:				mDrawerLayout.closeDrawer(mDrawerList);
62:			} else {

Read More

150:						
151:						// Change Activity Title with Song title
152:						setTitle(song_name);
153:					}
154:				});

Read More

205:					public void run() {
206:						/**
207:						 * Updating parsed JSON data into ListView
208:						 * */
209:						ListAdapter adapter = new SimpleAdapter(

Read More

setTitle Method Overview
Change the title associated with this activity.
See Code Examples for other Android Activity Methods: