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


Java ExtensionUtils.getUriString方法代码示例

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


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

示例1: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String iconHostapp = ExtensionUtils.getUriString(mContext, R.drawable.iconshka);
    String iconExtension = ExtensionUtils.getUriString(mContext, R.drawable.iconshka);

    ContentValues values = new ContentValues();

    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,
            ClockWidgetPreferenceActivity.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT,
            mContext.getString(R.string.app_name));
    values.put(Registration.ExtensionColumns.NAME, mContext.getString(R.string.app_name));
    values.put(Registration.ExtensionColumns.EXTENSION_KEY, getExtensionKey());
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconExtension);
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
            getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName());
    return values;
}
 
开发者ID:AlexanderKirillov,项目名称:MaXimus-WatchFaces-for-SmartWatch-2,代码行数:21,代码来源:ClockWidgetRegistrationInformation.java

示例2: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
 * Get the extension registration information.
 *
 * @return The registration configuration.
 */
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String iconHostapp = ExtensionUtils.getUriString( mContext, R.drawable.icon );
    String iconExtension = ExtensionUtils.getUriString( mContext, R.drawable.icon );

    ContentValues values = new ContentValues();

    values.put( Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,
            SettingsActivity.class.getName() );
    values.put( Registration.ExtensionColumns.CONFIGURATION_TEXT,
            mContext.getString( R.string.configuration_text ) );
    values.put( Registration.ExtensionColumns.NAME, mContext.getString( R.string.extension_name ) );
    values.put( Registration.ExtensionColumns.EXTENSION_KEY,
            ExtensionService.EXTENSION_KEY );
    values.put( Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp );
    values.put( Registration.ExtensionColumns.EXTENSION_ICON_URI, iconExtension );
    values.put( Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
            getRequiredNotificationApiVersion() );
    values.put( Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName() );

    return values;
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:28,代码来源:RegistrationInformation.java

示例3: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
 * Returns the properties of this extension.
 *
 * @return The registration configuration.
 */
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String iconHostapp = ExtensionUtils.getUriString(mContext, R.drawable.icon);
    String iconExtension = ExtensionUtils.getUriString(mContext, R.drawable.icon_extension);

    ContentValues values = new ContentValues();

    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY, SWSettingMainActivity.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT, "SW Device Plugin");
    values.put(Registration.ExtensionColumns.NAME, "SW Device Plugin");
    values.put(Registration.ExtensionColumns.EXTENSION_KEY, getExtensionKey());
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconExtension);
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
            getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName());

    return values;
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:25,代码来源:SWExtensionRegistrationInformation.java

示例4: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
 * Return the extension registration information. Specify the properties of
 * the extension that will be used when it is registered.
 *
 * @return The registration configuration.
 */
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String iconHostApp = ExtensionUtils.getUriString(_context, R.drawable.ic_launcher);
    String iconExtension = ExtensionUtils.getUriString(_context, R.drawable.ic_extension);
    String iconExtension48 = ExtensionUtils.getUriString(_context, R.drawable.ic_extension48);

    ContentValues values = new ContentValues();

    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,
        PreferenceActivity.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT,
        _context.getString(R.string.configuration_text));
    values.put(Registration.ExtensionColumns.NAME, _context.getString(R.string.extension_name));
    values.put(Registration.ExtensionColumns.EXTENSION_KEY, getExtensionKey());
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostApp);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconExtension);
    values.put(Registration.ExtensionColumns.EXTENSION_48PX_ICON_URI, iconExtension48);
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
        getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, _context.getPackageName());

    return values;
}
 
开发者ID:zasadnyy,项目名称:vision-trainer-sw2,代码行数:30,代码来源:ExtensionRegistrationInformation.java

示例5: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
@Override
public ContentValues getExtensionRegistrationConfiguration() {
	String iconHostapp = ExtensionUtils.getUriString(mContext, R.drawable.ic_launcher);
	String iconExtension = ExtensionUtils.getUriString(mContext, R.drawable.applevel_icon);

	ContentValues values = new ContentValues();

	values.put(Registration.ExtensionColumns.NAME, "wePoker");
	values.put(Registration.ExtensionColumns.EXTENSION_KEY, WePokerSWService.SMARTWATCH_KEY);
	values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp);
	values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconExtension);
	values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
			getRequiredNotificationApiVersion());
	values.put(Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName());

        return values;
}
 
开发者ID:AmbientTalk,项目名称:wePoker-smartwatch,代码行数:18,代码来源:WePokerSWRegistrationInformation.java

示例6: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
 * Get the extension registration information.
 *
 * @return The registration configuration.
 */
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String iconHostapp = ExtensionUtils.getUriString(mContext, R.drawable.ic_launcher);
    String iconExtension = ExtensionUtils
            .getUriString(mContext, R.drawable.ic_launcher);
    String iconExtension48 = ExtensionUtils
            .getUriString(mContext, R.drawable.ic_launcher);
    String iconExtensionBw = ExtensionUtils.getUriString(mContext,
            R.drawable.ic_launcher);

    ContentValues values = new ContentValues();

    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,
            SamplePreferenceActivity.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT,
            mContext.getString(R.string.configuration_text));
    values.put(Registration.ExtensionColumns.NAME, mContext.getString(R.string.extension_name));
    values.put(Registration.ExtensionColumns.EXTENSION_KEY,
            SampleExtensionService.EXTENSION_KEY);
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconExtension);
    values.put(Registration.ExtensionColumns.EXTENSION_48PX_ICON_URI, iconExtension48);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI_BLACK_WHITE, iconExtensionBw);
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
            getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName());

    return values;
}
 
开发者ID:hecosire,项目名称:hecosire-androidapp,代码行数:35,代码来源:SampleRegistrationInformation.java

示例7: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String extensionIcon = ExtensionUtils.getUriString(mContext,
            R.drawable.ic_launcher);
    String iconHostapp = ExtensionUtils.getUriString(mContext,
            R.drawable.ic_launcher);
    String extensionIcon48 = ExtensionUtils.getUriString(mContext,
            R.drawable.ic_launcher);

    String configurationText = mContext.getString(R.string.configuration_text);
    String extensionName = mContext.getString(R.string.extension_name);

    ContentValues values = new ContentValues();
    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,
            MainActivity.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT, configurationText);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, extensionIcon);
    values.put(Registration.ExtensionColumns.EXTENSION_48PX_ICON_URI, extensionIcon48);

    values.put(Registration.ExtensionColumns.EXTENSION_KEY,
            SWExtensionService.EXTENSION_KEY);
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp);
    values.put(Registration.ExtensionColumns.NAME, extensionName);
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
            getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName());

    return values;
}
 
开发者ID:grimpy,项目名称:Botifier,代码行数:30,代码来源:SWRegistrationInformation.java

示例8: getSourceRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
 * Get source configuration associated with extensions specific id
 *
 * @param extensionSpecificId
 * @return The source configuration
 */
public ContentValues getSourceRegistrationConfiguration(String extensionSpecificId) {
    ContentValues sourceValues = null;

    String iconSource1 = ExtensionUtils.getUriString(mContext,
            R.drawable.icn_30x30_message_notification);
    String iconSource2 = ExtensionUtils.getUriString(mContext,
            R.drawable.icn_18x18_message_notification);
    String iconBw = ExtensionUtils.getUriString(mContext,
            R.drawable.icn_18x18_black_white_message_notification);
    sourceValues = new ContentValues();
    sourceValues.put(Notification.SourceColumns.ENABLED, true);
    sourceValues.put(Notification.SourceColumns.ICON_URI_1, iconSource1);
    sourceValues.put(Notification.SourceColumns.ICON_URI_2, iconSource2);
    sourceValues.put(Notification.SourceColumns.ICON_URI_BLACK_WHITE, iconBw);
    sourceValues.put(Notification.SourceColumns.UPDATE_TIME, System.currentTimeMillis());
    sourceValues.put(Notification.SourceColumns.NAME, mContext.getString(R.string.app_name));
    sourceValues.put(Notification.SourceColumns.EXTENSION_SPECIFIC_ID, extensionSpecificId);
    sourceValues.put(Notification.SourceColumns.PACKAGE_NAME, mContext.getPackageName());
    sourceValues.put(Notification.SourceColumns.ACTION_1, "First Item");
    sourceValues.put(Notification.SourceColumns.ACTION_2, "Second Item");
    sourceValues.put(Notification.SourceColumns.ACTION_3, "Third Item");
    //sourceValues.put(Notification.SourceColumns.ACTION_2,
    //        mContext.getString(R.string.action_filter_applications));
    //sourceValues.put(Notification.SourceColumns.ACTION_3,
    //        mContext.getString(R.string.action_makenotification));
    //sourceValues.put(Notification.SourceColumns.ACTION_ICON_1,
    //        ExtensionUtils.getUriString(mContext, R.drawable.actions_1));
    //sourceValues.put(Notification.SourceColumns.ACTION_ICON_2,
    //        ExtensionUtils.getUriString(mContext, R.drawable.actions_2));
    //sourceValues.put(Notification.SourceColumns.ACTION_ICON_3,
    //        ExtensionUtils.getUriString(mContext, R.drawable.actions_3));
    return sourceValues;
}
 
开发者ID:grimpy,项目名称:Botifier,代码行数:40,代码来源:SWRegistrationInformation.java

示例9: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
 * Get the extension registration information.
 *
 * @return The registration configuration.
 */
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String iconHostapp = ExtensionUtils.getUriString(mContext, R.drawable.icon);
    String iconExtension = ExtensionUtils
            .getUriString(mContext, R.drawable.icon_extension);
    String iconExtension48 = ExtensionUtils
            .getUriString(mContext, R.drawable.icon_extension48);
    String iconExtensionBw = ExtensionUtils.getUriString(mContext,
            R.drawable.icn_18x18_black_white_sample_control);

    ContentValues values = new ContentValues();

    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,
            MyPreferenceActivity.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT,
            mContext.getString(R.string.configuration_text));
    values.put(Registration.ExtensionColumns.NAME, mContext.getString(R.string.extension_name));
    values.put(Registration.ExtensionColumns.EXTENSION_KEY,
            MyExtensionService.EXTENSION_KEY);
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconHostapp);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconExtension);
    values.put(Registration.ExtensionColumns.EXTENSION_48PX_ICON_URI, iconExtension48);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI_BLACK_WHITE, iconExtensionBw);
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
            getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, mContext.getPackageName());

    return values;
}
 
开发者ID:grimpy,项目名称:XbmcXtraMote,代码行数:35,代码来源:MyRegistrationInformation.java

示例10: SwRegInfo

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
public SwRegInfo() {
  INFO.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY, SettingsActivity.class.getName());
  INFO.put(Registration.ExtensionColumns.NAME, app().getString(R.string.sw_title));
  INFO.put(Registration.ExtensionColumns.EXTENSION_KEY, EXTENSION_KEY);
  INFO.put(Registration.ExtensionColumns.LAUNCH_MODE, Registration.LaunchMode.CONTROL);

  String icon = ExtensionUtils.getUriString(app(), R.drawable.icon);
  INFO.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, icon);

  icon = ExtensionUtils.getUriString(app(), R.drawable.icon_sw);
  INFO.put(Registration.ExtensionColumns.EXTENSION_48PX_ICON_URI, icon);
}
 
开发者ID:trashkalmar,项目名称:MrParkingNavigator,代码行数:13,代码来源:SwRegInfo.java

示例11: getUriString

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
private String getUriString(final int id) {
    return ExtensionUtils.getUriString(context, id);
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:4,代码来源:GlassesDroneRegistrationInformation.java

示例12: getUriString

import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
/**
 * Returns the URI string corresponding to the specified resource ID.
 *
 * @param id
 *            The resource ID.
 * @return The URI string.
 */
private String getUriString(final int id) {
    return ExtensionUtils.getUriString(context, id);
}
 
开发者ID:jphacks,项目名称:KB_1511,代码行数:11,代码来源:ARCouponRegistrationInformation.java


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