本文整理汇总了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();
}
示例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();
}
}
示例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);
}
}
}
示例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();
}
}
示例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());
}
};
}
示例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();
}
示例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();
}
示例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());
}
};
}
示例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());
}
};
}
示例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();
}
示例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);
}
示例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);
}
}
示例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();
}
示例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();
}
}