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


Java ExtensionUtils.sendToHostApp方法代码示例

本文整理汇总了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);
}
 
开发者ID:jphacks,项目名称:KB_1511,代码行数:13,代码来源:ARCouponExtensionService.java

示例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);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:9,代码来源:SmartEyeglassControlUtils.java

示例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);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:10,代码来源:ControlExtension.java

示例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);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:10,代码来源:AccessorySensor.java

示例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);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:11,代码来源:WidgetExtension.java


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