本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例11: getUriString
import com.sonyericsson.extras.liveware.extension.util.ExtensionUtils; //导入方法依赖的package包/类
private String getUriString(final int id) {
return ExtensionUtils.getUriString(context, id);
}
示例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);
}