• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Registration类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sonyericsson.extras.liveware.aef.registration.Registration的典型用法代码示例。如果您正苦于以下问题:Java Registration类的具体用法?Java Registration怎么用?Java Registration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Registration类属于com.sonyericsson.extras.liveware.aef.registration包,在下文中一共展示了Registration类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的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.aef.registration.Registration; //导入依赖的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: registerOrUpdateWidgetRegistration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Register or update widget registration.
 *
 * @param apiRegistrationId The API registration ID.
 * @param values The content values to register.
 * @return True if the registration was successful.
 */
private boolean registerOrUpdateWidgetRegistration(long apiRegistrationId, ContentValues values) {
    if (ExtensionUtils.getRegistrationVersion(mContext) < 3) {
        // Widget registration only possible if Registration API version 3 or later.
        return false;
    }

    values.put(Registration.WidgetRegistrationColumns.API_REGISTRATION_ID, apiRegistrationId);

    long widgetRegistrationId = getWidgetRegistrationId(apiRegistrationId,
            values.getAsString(Registration.WidgetRegistrationColumns.KEY));

    if (widgetRegistrationId != ExtensionUtils.INVALID_ID) {
        return mContext.getContentResolver().update(Registration.WidgetRegistration.URI,
                values, Registration.WidgetRegistrationColumns._ID + " = ?", new String[] {
                    Long.toString(widgetRegistrationId)
                }) > 0;

    } else {
        return mContext.getContentResolver()
                .insert(Registration.WidgetRegistration.URI, values) != null;
    }
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:30,代码来源:RegistrationHelper.java


示例4: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的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


示例5: sendToHostApp

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Send intent to host application. Adds host application package name and
 * our package name.
 *
 * @param context a context
 * @param hostPkgName package name of the host app
 * @param intent The intent to send.
 */
public static void sendToHostApp(Context context, String hostPkgName, Intent intent) {
    boolean whiteListed = false;
    try {
        PackageInfo packageInfo = context.getPackageManager().getPackageInfo(hostPkgName,
                PackageManager.GET_SIGNATURES);
        Signature[] signatures = packageInfo.signatures;
        whiteListed = WhiteList.exists(hostPkgName, signatures[0]);
    } catch (NameNotFoundException e) {
        Dbg.e("No package info for host app", e);
        return;
    }
    intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, context.getPackageName());
    intent.setPackage(hostPkgName);
    if (whiteListed) {
        context.sendBroadcast(intent);
    } else {
        context.sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
    }
}
 
开发者ID:jphacks,项目名称:KB_1511,代码行数:28,代码来源:ExtensionUtils.java


示例6: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的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


示例7: onViewEvent

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
@Override
protected void onViewEvent(Intent intent) {
    String action = intent.getStringExtra(Notification.Intents.EXTRA_ACTION);
    String hostAppPackageName = intent
            .getStringExtra(Registration.Intents.EXTRA_AHA_PACKAGE_NAME);
    boolean advancedFeaturesSupported = DeviceInfoHelper.isSmartWatch2ApiAndScreenDetected(
            this, hostAppPackageName);

    int eventId = intent.getIntExtra(Notification.Intents.EXTRA_EVENT_ID, -1);
    if (Notification.SourceColumns.ACTION_1.equals(action)) {
        NotificationUtil.deleteAllEvents(this);
    } else if (Notification.SourceColumns.ACTION_2.equals(action)) {
        NotificationUtil.deleteAllEvents(this);
    } else if (Notification.SourceColumns.ACTION_3.equals(action)) {
        Toast.makeText(this, "Action 3", Toast.LENGTH_LONG).show();
    }
}
 
开发者ID:grimpy,项目名称:Botifier,代码行数:18,代码来源:SWExtensionService.java


示例8: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的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


示例9: controlStartRequest

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Send control start request.
 *
 * @param hostAppPackageName The host application package to start a control
 *            for.
 */
protected void controlStartRequest(String hostAppPackageName) {
    Intent intent = new Intent(Control.Intents.CONTROL_START_REQUEST_INTENT);
    intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, getPackageName());
    intent.setPackage(hostAppPackageName);
    sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
}
 
开发者ID:fbarriga,项目名称:sony-smartband-logger,代码行数:13,代码来源:ExtensionService.java


示例10: isHostAppRegistered

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Checks if the extension is registered with a host application.
 *
 * This method is called from the the background
 *
 * @param packageName The package name of the host application.
 *
 * @return True if the extension is registered with the host application.
 */
private boolean isHostAppRegistered(String packageName) {
    Cursor cursor = null;
    boolean isRegistered = false;
    long extensionId = ExtensionUtils.getExtensionId(mContext);
    String selection = Registration.ApiRegistrationColumns.EXTENSION_ID + " = " + extensionId
            + " AND " + Registration.ApiRegistrationColumns.HOST_APPLICATION_PACKAGE + " = ?";
    String[] selectionArgs = new String[] {
        packageName
    };

    try {
        cursor = mContext.getContentResolver().query(Registration.ApiRegistration.URI,
                new String[] {
                    Registration.ApiRegistrationColumns.HOST_APPLICATION_PACKAGE
                }, selection, selectionArgs, null);
        if (cursor != null) {
            isRegistered = (cursor.getCount() > 0);
        }
    } finally {
        if (cursor != null) {
            cursor.close();
        }
    }

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


示例11: isHostAppRegistered

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Checks if the extension is registered with a host application. This
 * method is called from the the background
 *
 * @param packageName The package name of the host application.
 * @return True if the extension is registered with the host application.
 */
private boolean isHostAppRegistered(String packageName) {
    Cursor cursor = null;
    boolean isRegistered = false;
    long extensionId = ExtensionUtils.getExtensionId(mContext);
    String selection = Registration.ApiRegistrationColumns.EXTENSION_ID + " = " + extensionId
            + " AND " + Registration.ApiRegistrationColumns.HOST_APPLICATION_PACKAGE + " = ?";
    String[] selectionArgs = new String[] {
            packageName
    };

    try {
        cursor = mContext.getContentResolver().query(Registration.ApiRegistration.URI,
                new String[] {
                    Registration.ApiRegistrationColumns.HOST_APPLICATION_PACKAGE
                },
                selection, selectionArgs, null);
        if (cursor != null) {
            isRegistered = (cursor.getCount() > 0);
        }
    } finally {
        if (cursor != null) {
            cursor.close();
        }
    }

    return isRegistered;
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:35,代码来源:RegistrationHelper.java


示例12: getWidgetRegistrationId

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Get the widget registration id from a widget registration key.
 *
 * @param apiRegistrationId The API registration id.
 * @param key The key.
 * @return The widget registration id.
 */
private long getWidgetRegistrationId(long apiRegistrationId, String key) {
    if (ExtensionUtils.getRegistrationVersion(mContext) < 3) {
        // Widget registration only possible if Registration API version 3 or later.
        return ExtensionUtils.INVALID_ID;
    }

    Cursor cursor = null;
    try {
        cursor = mContext.getContentResolver().query(
                Registration.WidgetRegistration.URI,
                new String[] {
                        Registration.WidgetRegistrationColumns._ID
                }
                ,Registration.WidgetRegistrationColumns.API_REGISTRATION_ID + " = ? AND "
                        + Registration.WidgetRegistrationColumns.KEY + " = ?", new String[] {
                        Long.toString(apiRegistrationId), key
                }, null);
        if (cursor != null && cursor.moveToFirst()) {
            return cursor.getLong(cursor.getColumnIndexOrThrow(Registration.WidgetRegistrationColumns._ID));
        }
    } finally {
        if (cursor != null) {
            cursor.close();
        }
    }

    return ExtensionUtils.INVALID_ID;
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:36,代码来源:RegistrationHelper.java


示例13: getWidgetRegistrationKeys

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Get all widget registration keys for a specific API registration ID.
 *
 * @param apiRegistrationId The API registration id.
 * @return A list with the keys.
 */
private List<String> getWidgetRegistrationKeys(long apiRegistrationId) {
    List<String> keys = new ArrayList<String>();
    if (ExtensionUtils.getRegistrationVersion(mContext) < 3) {
        return keys;
    }

    Cursor cursor = null;
    try {
        cursor = mContext.getContentResolver().query(Registration.WidgetRegistration.URI,
                new String[] {
                    Registration.WidgetRegistrationColumns.KEY
                }, Registration.WidgetRegistrationColumns.API_REGISTRATION_ID + " = ?",
                new String[] {
                    Long.toString(apiRegistrationId)
                }, null);
        while (cursor != null && cursor.moveToNext()) {
            String key = cursor.getString(cursor
                    .getColumnIndex(Registration.WidgetRegistrationColumns.KEY));
            keys.add(key);
        }
    } finally {
        if (cursor != null) {
            cursor.close();
        }
    }

    return keys;
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:35,代码来源:RegistrationHelper.java


示例14: sendToHostApp

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的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_AEA_PACKAGE_NAME, mContext.getPackageName());
    intent.putExtra(Widget.Intents.EXTRA_INSTANCE_ID, mInstanceId);
    intent.setPackage(mHostAppPackageName);
    mContext.sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:13,代码来源:WidgetExtension.java


示例15: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    ContentValues values = new ContentValues();
    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY,
            AboutScreen.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT,
            mContext.getString(R.string.about_application));
    values.put(Registration.ExtensionColumns.NAME, 
    		mContext.getString(R.string.app_name));
    values.put(Registration.ExtensionColumns.EXTENSION_KEY,
            MainExtensionService.EXTENSION_KEY);
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI,
    		ExtensionUtils.getUriString(mContext, R.drawable.ic_launcher_hostapp));
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, 
    		ExtensionUtils.getUriString(mContext, R.drawable.ic_launcher));
    values.put(Registration.ExtensionColumns.EXTENSION_48PX_ICON_URI,
    		ExtensionUtils.getUriString(mContext, R.drawable.ic_launcher));
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI_BLACK_WHITE, 
    		ExtensionUtils.getUriString(mContext, R.drawable.ic_launcher));
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION,
            getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, 
    		mContext.getPackageName());

    // return filled values
    return values;
}
 
开发者ID:asamm,项目名称:locus-addon-smartwatch2,代码行数:28,代码来源:RegisterInformation.java


示例16: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
@Override
public ContentValues getExtensionRegistrationConfiguration() {
    String iconDrone = getUriString(R.drawable.drone);
    ContentValues values = new ContentValues();
    values.put(Registration.ExtensionColumns.CONFIGURATION_ACTIVITY, AboutActivity.class.getName());
    values.put(Registration.ExtensionColumns.CONFIGURATION_TEXT, context.getResources().getString(R.string.application_title_settings));
    values.put(Registration.ExtensionColumns.NAME, context.getResources().getString(R.string.application_title));
    values.put(Registration.ExtensionColumns.EXTENSION_KEY, Constants.EXTENSION_KEY);
    values.put(Registration.ExtensionColumns.HOST_APP_ICON_URI, iconDrone);
    values.put(Registration.ExtensionColumns.EXTENSION_ICON_URI, iconDrone);
    values.put(Registration.ExtensionColumns.EXTENSION_48PX_ICON_URI, iconDrone);
    values.put(Registration.ExtensionColumns.NOTIFICATION_API_VERSION, getRequiredNotificationApiVersion());
    values.put(Registration.ExtensionColumns.PACKAGE_NAME, context.getPackageName());
    return values;
}
 
开发者ID:sonyxperiadev,项目名称:DroneControl,代码行数:16,代码来源:GlassesDroneRegistrationInformation.java


示例17: sendToHostApp

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
/**
 * Send intent to Host application.
 * 
 * @param intent Intent.
 * @param serviceId ServiceID
 */
protected void sendToHostApp(final Intent intent, final String serviceId) {
    BluetoothDevice device = SWUtil.findSmartWatch(serviceId);
    String deviceName = device.getName();
    intent.putExtra(Control.Intents.EXTRA_AEA_PACKAGE_NAME, mContext.getPackageName());
    intent.setPackage(SWUtil.toHostAppPackageName(deviceName));
    mContext.sendBroadcast(intent, Registration.HOSTAPP_PERMISSION);
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:14,代码来源:SWControlExtension.java


示例18: createConnectionStateQuery

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的package包/类
private String createConnectionStateQuery() {
    HostApplicationInfo hostAppInfo =
        RegistrationAdapter.getHostApplication(getContext(), getHostPackageName());

    return Registration.DeviceColumns.HOST_APPLICATION_ID
        + " = "
        + hostAppInfo.getId()
        + " AND "
        + Registration.DeviceColumns.ACCESSORY_CONNECTED
        + " = 1";
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:12,代码来源:SWService.java


示例19: getExtensionRegistrationConfiguration

import com.sonyericsson.extras.liveware.aef.registration.Registration; //导入依赖的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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EntityProjectile类代码示例发布时间:2022-05-22
下一篇:
Java LafManager类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap