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


Java StandOutWindow.closeAll方法代码示例

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


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

示例1: onDestroy

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

	if (twitter != null) {
		windowManager.removeView(twitter);
		twitter = null;
	}
	notificationManager.cancel(0);

	save("on", "false");
	save("chatheadon", "false");
	loadon();

	StandOutWindow.closeAll(ChatHead.this, FloatingActivity.class);

}
 
开发者ID:Pi-Developers,项目名称:Floata-Client,代码行数:18,代码来源:Chathead.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: 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

示例4: 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

示例5: 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, FloatingFolder.class);
	FloatingFolder.showFolders(this);
	
	finish();
}
 
开发者ID:keger,项目名称:StandOutWindow,代码行数:11,代码来源:FloatingFoldersLauncher.java

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: onCreate

import wei.mark.standout.StandOutWindow; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    // Remove all StandOut Windows
    StandOutWindow.closeAll(this, StandOutRemoteActivity.class);

    super.onCreate(savedInstanceState);
    setContentView(R.layout.configuration_activity);

    // Set up the action bar.
    final ActionBar actionBar = getActionBar();
    actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

    // Create the adapter that will return a fragment for each of the three
    // primary sections of the app.
    mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());

    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.pager);
    mViewPager.setAdapter(mSectionsPagerAdapter);

    // When swiping between different sections, select the corresponding
    // tab. We can also use ActionBar.Tab#select() to do this if we have
    // a reference to the Tab.
    mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
        @Override
        public void onPageSelected(int position) {
            actionBar.setSelectedNavigationItem(position);
        }
    });

    // For each of the sections in the app, add a tab to the action bar.
    for (int i = 0; i < mSectionsPagerAdapter.getCount(); i++) {
        // Create a tab with text corresponding to the page title defined by
        // the adapter. Also specify this Activity object, which implements
        // the TabListener interface, as the callback (listener) for when
        // this tab is selected.
        actionBar.addTab(
                actionBar.newTab()
                        .setText(mSectionsPagerAdapter.getPageTitle(i))
                        .setTabListener(this));
    }
}
 
开发者ID:lowtraxx,项目名称:TSRemote,代码行数:43,代码来源:ConfigurationActivity.java

示例11: closeLogcatLoggerView

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


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