当前位置: 首页>>代码示例>>Java>>正文


Java StandOutWindow.show方法代码示例

本文整理汇总了Java中wei.mark.standout.StandOutWindow.show方法的典型用法代码示例。如果您正苦于以下问题:Java StandOutWindow.show方法的具体用法?Java StandOutWindow.show怎么用?Java StandOutWindow.show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wei.mark.standout.StandOutWindow的用法示例。


在下文中一共展示了StandOutWindow.show方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
	if (!BootReceiver.boot_up || Corner.running) {
		Intent i = new Intent(this, SettingsActivity.class);
		startActivity(i);
	}
	if (prefs.getBoolean("enable", true)) {
		StandOutWindow.show(this, Corner.class, 0);
		StandOutWindow.show(this, Corner.class, 1);
		StandOutWindow.show(this, Corner.class, 2);
		StandOutWindow.show(this, Corner.class, 3);
	}
	finish();
}
 
开发者ID:MohammadAdib,项目名称:Roundr,代码行数:17,代码来源:MainActivity.java

示例2: checkDatabase

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
private void checkDatabase() {
    DatabaseHelper dbHelper = new DatabaseHelper(getApplicationContext());
    try {
        // Get all the remotes from the Database
        dbHelper.open();
        Cursor cur = dbHelper.getAllRemotes();
        if(cur.getCount() != 0)
        {
            StandOutWindow.closeAll(this, StandOutRemoteActivity.class);
            StandOutWindow.show(this, StandOutRemoteActivity.class, StandOutWindow.DEFAULT_ID);
        }
        cur.close();
        dbHelper.close();
    } catch (SQLException e) {
        e.printStackTrace();
    }
}
 
开发者ID:lowtraxx,项目名称:TSRemote,代码行数:18,代码来源:ConfigurationActivity.java

示例3: onActivityResult

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
protected void onActivityResult(int requestCode, int resultCode,
                                Intent data) {
    if (resultCode == RESULT_OK ) {
        if (requestCode == REQUEST_PICK_APPWIDGET) {
            configureWidget(data);
        }
        else if (requestCode == REQUEST_CREATE_APPWIDGET) {
            smAppWidgetHost = mAppWidgetHost;
            smAppWidgetManager = mAppWidgetManager;
            widget = data;
            if(widget == null && BuildConfig.DEBUG) Log.e("Floating Widgets","Fasten seat belts and prepare for crash");
            StandOutWindow.show(this,FloatingWidget.class,++id);
            finish();
        }
    }
    else if (resultCode == RESULT_CANCELED && data != null) {
        int appWidgetId =
                data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
        if (appWidgetId != -1) {
            mAppWidgetHost.deleteAppWidgetId(appWidgetId);
        }
    }
}
 
开发者ID:sakchhams,项目名称:widgets,代码行数:25,代码来源:PickAppWidgets.java

示例4: configureWidget

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
private void configureWidget(Intent data) {
    Bundle extras = data.getExtras();
    int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
    AppWidgetProviderInfo appWidgetInfo =
            mAppWidgetManager.getAppWidgetInfo(appWidgetId);
    if (appWidgetInfo.configure != null) {
        Intent intent =
                new Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE);
        intent.setComponent(appWidgetInfo.configure);
        intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
        startActivityForResult(intent, REQUEST_CREATE_APPWIDGET);
    } else {
        smAppWidgetHost = mAppWidgetHost;
        smAppWidgetManager = mAppWidgetManager;
        widget = data;
        if(widget == null) Log.e("Floating Widgets","Fasten seat belts and prepare for crash");
        StandOutWindow.show(this,FloatingWidget.class,++id);
        finish();
    }
}
 
开发者ID:sakchhams,项目名称:widgets,代码行数:21,代码来源:PickAppWidgets.java

示例5: getAddRunnable

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
public Runnable getAddRunnable(int id) {
    return new Runnable() {
        @Override
        public void run() {
            StandOutWindow.show(FloatingSticky.this.getApplicationContext(), FloatingSticky.class, getUniqueId());
        }
    };
}
 
开发者ID:tuyendt6,项目名称:WindowsNoteMaster,代码行数:10,代码来源:FloatingSticky.java

示例6: onCreate

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    StandOutWindow.closeAll(this, ToggleWindow.class);
    StandOutWindow.show(this, ToggleWindow.class, StandOutWindow.DEFAULT_ID);

    finish();
}
 
开发者ID:ObsidianX,项目名称:xposed-spenonly,代码行数:10,代码来源:ShowWindowActivity.java

示例7: onCreate

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	StandOutWindow.closeAll(this, SimpleWindow.class);
	StandOutWindow.closeAll(this, MultiWindow.class);
	StandOutWindow.closeAll(this, WidgetsWindow.class);

	// show a MultiWindow, SimpleWindow

	StandOutWindow
			.show(this, SimpleWindow.class, StandOutWindow.DEFAULT_ID);
	StandOutWindow.show(this, MultiWindow.class, StandOutWindow.DEFAULT_ID);
	StandOutWindow.show(this, WidgetsWindow.class,
			StandOutWindow.DEFAULT_ID);

	// show a MostBasicWindow. It is commented out because it does not
	// support closing.

	/*
	 * StandOutWindow.show(this, StandOutMostBasicWindow.class,
	 * StandOutWindow.DEFAULT_ID);
	 */

	finish();
}
 
开发者ID:keger,项目名称:StandOutWindow,代码行数:28,代码来源:StandOutExampleActivity.java

示例8: OpenPinedWindow

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
public Runnable OpenPinedWindow(int id) {
	return new Runnable() {
		@Override
		public void run() {
			StandOutWindow.show(PinedDialogWindow.this.getApplicationContext(), PinedDialogWindow.class, getUniqueId());
		}
	};
}
 
开发者ID:SimpleMinds,项目名称:PopBell,代码行数:9,代码来源:PinedDialogWindow.java

示例9: getAddRunnable

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
public Runnable getAddRunnable(int id) {
	return new Runnable() {
		@Override
		public void run() {
			StandOutWindow.show(MultiWindow.this.getApplicationContext(), MultiWindow.class, getUniqueId());
		}
	};
}
 
开发者ID:tmatz,项目名称:FloatingStickies-custom,代码行数:10,代码来源:MultiWindow.java

示例10: onCreate

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	
	StandOutWindow.closeAll(this, MultiWindow.class);
	StandOutWindow.show(this, MultiWindow.class, new MultiWindow().getUniqueId());
	finish();
}
 
开发者ID:city0666,项目名称:attic-android,代码行数:9,代码来源:ChessboardActivity.java

示例11: showLogcatLoggerView

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
/**
 * Launch {@link LogcatViewerFloatingView} view.
 * @param context context.
 */
public static void showLogcatLoggerView(Context context){
    StandOutWindow.closeAll(context, LogcatViewerFloatingView.class);
    StandOutWindow
            .show(context, LogcatViewerFloatingView.class, StandOutWindow.DEFAULT_ID);
}
 
开发者ID:fatangare,项目名称:LogcatViewer,代码行数:10,代码来源:LogcatViewer.java

示例12: onReceive

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
public void onReceive(final Context context, Intent intent) {
	Log.i("PluginDataReceiver", "Received Data from Plugin");
	String name = intent.getAction();

	if (name.equals("com.sompleminds.popbell.PLUGIN.PASSDATA")) {
		// Get data from broadcasted intent
		String AppName = intent.getStringExtra("AppName");
		String PackageName = intent.getStringExtra("PackageName");
		String Notiid = intent.getStringExtra("Notiid");
		String Title = intent.getStringExtra("Title");
		String Desc = intent.getStringExtra("Desc");
		Log.i("PluginDataReceiver", "Received Data :" + AppName + "/"
				+ PackageName + "/" + Notiid + "/" + Title + "/" + Desc);

		// put values to db
		mHelper = new NotiListDBhelper(context);
		mCursor = mHelper.getWritableDatabase().rawQuery(
				"SELECT _ID, title, desc FROM notilist ORDER BY title",
				null);
		ContentValues values = new ContentValues();
		values.put(NotiListDBhelper.TITLE, Title);
		values.put(NotiListDBhelper.DESC, Desc);

		mHelper.getWritableDatabase().insert("notilist",
				NotiListDBhelper.TITLE, values);
		mCursor.requery();
		mCursor.close();
		mHelper.close();

		// Close and Open Dialog Window
		StandOutWindow.closeAll(context, DialogWindow.class);
		StandOutWindow.closeAll(context, TouchTrigger.class);
		StandOutWindow.show(context, DialogWindow.class,
				StandOutWindow.DEFAULT_ID);
		StandOutWindow.show(context, TouchTrigger.class,
				StandOutWindow.DEFAULT_ID);

		// Create Bundle and put data
		Bundle dataBundle = new Bundle();
		dataBundle.putString("AppName", AppName);
		dataBundle.putString("Title", Title);
		dataBundle.putString("Notiid", Notiid);
		dataBundle.putString("Desc", Desc);
		dataBundle.putString("PackageName", PackageName);
		// Send data to DialogWindow
		StandOutWindow.sendData(context, DialogWindow.class,
				StandOutWindow.DEFAULT_ID, 2, dataBundle, null, 0);
		// Close All Window in a few Seconds
		mTask = new TimerTask() {
			@Override
			public void run() {
				StandOutWindow.closeAll(context, DialogWindow.class);
				StandOutWindow.closeAll(context, TouchTrigger.class);
			}
		};
		mTimer = new Timer();
		mTimer.schedule(mTask, 5000);
	}
}
 
开发者ID:SimpleMinds,项目名称:PopBell,代码行数:61,代码来源:PluginDataReceiver.java

示例13: onCreate

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Try to enable IR
    FileHelper.fixPermissionsForIr();

    // Initialize the Ir
    new Thread(new Runnable() {
        public void run() {
            IrHelper.getInstance().startIrNative();
        }
    }).start();

    FileHelper.setDeviceSavePath(Environment.getExternalStorageDirectory().getPath() + "/TSRemote/remote_data/");

    DatabaseHelper dbHelper = new DatabaseHelper(getApplicationContext());
    try {
        // Get all the remotes from the Database
        dbHelper.open();
        Cursor cur = dbHelper.getAllRemotes();
        if(cur.getCount() != 0)
        {
            StandOutWindow.closeAll(this, StandOutRemoteActivity.class);
            StandOutWindow.show(this, StandOutRemoteActivity.class, StandOutWindow.DEFAULT_ID);
        }
        else
        {
            // Start the Configuration Activity
            Intent dialogIntent = new Intent(getBaseContext(), ConfigurationActivity.class);
            dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            getApplication().startActivity(dialogIntent);
        }
        cur.close();
        dbHelper.close();
    } catch (SQLException e) {
        e.printStackTrace();
    }

    finish();
}
 
开发者ID:lowtraxx,项目名称:TSRemote,代码行数:42,代码来源:RemoteActivity.java

示例14: onActivityResult

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
	super.onActivityResult(requestCode, resultCode, data);

	if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {
		Uri selectedImage = data.getData();
		String[] filePathColumn = { MediaStore.Images.Media.DATA };

		Cursor cursor = getContentResolver().query(selectedImage,
				filePathColumn, null, null, null);
		cursor.moveToFirst();

		int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
		picturePath = cursor.getString(columnIndex);
		
		save("img" , picturePath);
		
		
		StandOutWindow
		.show(ImageChooser.this, FloatingActivity.class, StandOutWindow.DEFAULT_ID);
		
		finish();

		

	}
	
}
 
开发者ID:Pi-Developers,项目名称:Floata-Client,代码行数:29,代码来源:ImageChooser.java


注:本文中的wei.mark.standout.StandOutWindow.show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。