當前位置: 首頁>>代碼示例>>Java>>正文


Java WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER屬性代碼示例

本文整理匯總了Java中android.app.WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER屬性的典型用法代碼示例。如果您正苦於以下問題:Java WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER屬性的具體用法?Java WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER怎麽用?Java WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在android.app.WallpaperManager的用法示例。


在下文中一共展示了WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER屬性的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: startPreview

public void startPreview(View view) {
    Intent intent = new Intent(
            WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
            new ComponentName(this, JumpingBurger.class));
    startActivity(intent);
}
 
開發者ID:samsumas,項目名稱:LivingBurger,代碼行數:7,代碼來源:MainActivity.java

示例2: setWallPaper

public static void setWallPaper(Context context){
    Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,new ComponentName(context,VideoLiveWallPaper.class));
    context.startActivity(intent);
}
 
開發者ID:MirDong,項目名稱:VideoWallPager,代碼行數:5,代碼來源:MainActivity.java

示例3: openLWSetter

public static void openLWSetter(Context context) {
    Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, new ComponentName(context, MyWallpaperService.class));
    try {
        context.startActivity(intent);
    } catch (ActivityNotFoundException e) {
        Toast.makeText(context, R.string.error_wpsetter, Toast.LENGTH_LONG).show();
    }
}
 
開發者ID:lucasax,項目名稱:Zero,代碼行數:9,代碼來源:Utils.java

示例4: onClick

@Override
public void onClick(WallpaperPickerActivity a) {
    Intent preview = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    preview.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
            mInfo.getComponent());
    a.startActivityForResultSafely(preview,
            WallpaperPickerActivity.PICK_WALLPAPER_THIRD_PARTY_ACTIVITY);
}
 
開發者ID:michelelacorte,項目名稱:FlickLauncher,代碼行數:8,代碼來源:LiveWallpaperInfo.java

示例5: enableWallpaper

private void enableWallpaper() {
    Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
            new ComponentName(this, MainWallpaperService.class));
    startActivity(intent);

    finish();
}
 
開發者ID:ManuelBauer,項目名稱:soundscape-livewallpaper,代碼行數:8,代碼來源:SetWallpaperActivity.java

示例6: onConnected

@Override
public void onConnected(Bundle bundle) {
	Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
	intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, new ComponentName(MainActivity.this, DripWallpaperService.class));
	startActivity(intent);
	finish();
}
 
開發者ID:Drippler,項目名稱:drip-steps,代碼行數:7,代碼來源:MainActivity.java

示例7: onClick

@Override
public void onClick(WallpaperPickerActivity a) {
    Intent preview = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    preview.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
            mInfo.getComponent());
    a.onLiveWallpaperPickerLaunch(mInfo);
    a.startActivityForResultSafely(preview, WallpaperPickerActivity.PICK_LIVE_WALLPAPER);
}
 
開發者ID:Phonemetra,項目名稱:TurboLauncher,代碼行數:8,代碼來源:LiveWallpaperListAdapter.java

示例8: onSetWallpaperClick

@Override
public void onSetWallpaperClick(View v)
{
	try{
		Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
		intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
				new ComponentName(this, PuvoWallpaperService.class));
		startActivity(intent);
		this.finish();
	}
	catch(Exception e){
		super.onSetWallpaperClick(v);
	}
}
 
開發者ID:divosolutions,項目名稱:android-livewallpaper,代碼行數:14,代碼來源:SetWallpaper.java

示例9: changeLiveWallPaper

public static void changeLiveWallPaper(Context context) {
    Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);

    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
            new ComponentName(context, EarthWallpaperService.class));

    intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);

    try {
        context.startActivity(intent);
    } catch (ActivityNotFoundException ignored) {
    }
}
 
開發者ID:oxoooo,項目名稱:earth,代碼行數:13,代碼來源:WallpaperUtil.java

示例10: setToWallPaper

public static void setToWallPaper(Context context) {
    final Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
            new ComponentName(context, VideoLiveWallpaper.class));
    context.startActivity(intent);
}
 
開發者ID:WanAndroid,項目名稱:LiveWallPaper,代碼行數:6,代碼來源:VideoLiveWallpaper.java

示例11: initWallpaper

public void initWallpaper() {
	Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
	intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
			new ComponentName(this, WhatColourIsItService.class));
	startActivityForResult(intent, 111);
}
 
開發者ID:mihnsen,項目名稱:whatcolourisit,代碼行數:6,代碼來源:WhatColourIsItActivity.java

示例12: isSupported

public static boolean isSupported(Context context) {
    Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
    return intent.resolveActivity(context.getPackageManager()) != null;
}
 
開發者ID:oxoooo,項目名稱:earth,代碼行數:4,代碼來源:WallpaperUtil.java


注:本文中的android.app.WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。