本文整理汇总了Java中com.sonyericsson.extras.liveware.extension.util.ExtensionUtils.sendToHostApp方法的典型用法代码示例。如果您正苦于以下问题:Java ExtensionUtils.sendToHostApp方法的具体用法?Java ExtensionUtils.sendToHostApp怎么用?Java ExtensionUtils.sendToHostApp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sonyericsson.extras.liveware.extension.util.ExtensionUtils
的用法示例。
在下文中一共展示了ExtensionUtils.sendToHostApp方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startSmartEyeglassExtension
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
* You can use this method to kickstart your extension on SmartEyeglass
* Host App.
* This is useful if the user has not started your extension
* since the SmartEyeglass was turned on.
*/
public void startSmartEyeglassExtension() {
Intent intent = new Intent(Control.Intents
.CONTROL_START_REQUEST_INTENT);
ExtensionUtils.sendToHostApp(getApplicationContext(),
"com.sony.smarteyeglass", intent);
}
示例2: sendToHostApp
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
* Sends an intent to HostApp, adding package names.
*
* @param intent The intent to send.
*/
protected void sendToHostApp(final Intent intent) {
ExtensionUtils.sendToHostApp(mContext, mHostAppPackageName, intent);
}
示例3: sendToHostApp
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
* Send intent to host application. Adds host application package name and
* our package name.
*
* @param intent The intent to send.
*/
protected void sendToHostApp(final Intent intent) {
ExtensionUtils.sendToHostApp(mContext, mHostAppPackageName, intent);
}
示例4: sendToHostApp
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
* Send intent to host application. Adds host application package name and
* our package name.
*
* @param intent The intent to send.
*/
private void sendToHostApp(final Intent intent) {
ExtensionUtils.sendToHostApp(mContext, mHostAppPackageName, intent);
}
示例5: sendToHostApp
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
* Send intent to host application. Adds host application package name and
* our package name.
*
* @param intent The intent to send.
*/
protected void sendToHostApp(final Intent intent) {
intent.putExtra(Widget.Intents.EXTRA_INSTANCE_ID, mInstanceId);
ExtensionUtils.sendToHostApp(mContext, mHostAppPackageName, intent);
}