锁屏通知(Lock screen notifications for Windows Phone 8)

Creating a lock screen icon

Create a 38 x 38 pixel PNG image that will identify your app on the lock screen. The image must contain only white pixels plus some level of transparency.

Update the app manifest file by following these steps:

  1. In Solution Explorer, expand Properties, right-click WMAppManifest.xml, choose Open With, and then select Source Code (Text Editor) With Encoding.

  2. Update the DeviceLockImageURI element inside the Tokens element. Add the full path to your image file, set IsRelative="true" and IsResource="false" as shown in the following code example.

    <DeviceLockImageURI IsRelative="true" IsResource="false">Assets\LockImage.png</DeviceLockImageURI>


Setting app manifest extensions for the lock screen

Next, declare what aspects your app will support in the lock screen notifications area by updating the app manifest file.

  1. In Solution Explorer, expand Properties, right-click WMAppManifest.xml, choose Open With, and then select Source Code (Text Editor) With Encoding.

  2. Add the lock screen wallpaper <Extension> element in the <Extensions> element. If the <Extensions>element doesn’t appear in the file, place the entire following code example in the file. The <Extensions>element must be placed below the <Tokens> element.

<Extensions>
      <Extension ExtensionName="LockScreen_Notification_IconCount" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" />
      <Extension ExtensionName="LockScreen_Notification_TextField" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" />
    <Extension ExtensionName="LockScreen_Background" ConsumerID="{111DFF24-AA15-4A96-8006-2BFF8122084F}" TaskID="_default" />
</Extensions>

  3. Only include the <Extension> elements that you want to support. If you plan to include your Tile's Count on the lock screen, include the LockScreen_Notification_IconCount extension. If you plan to include text, include the LockScreen_Notification_TextField extension.

Linking the lock screen settings screen from within your app

Consider adding a link to the phone's lock screen settings screen from within your app for your app user’s benefit. This is useful for the user because you can’t programmatically turn off your app as a lock screen background image provider from within the app. The user will need to visit the phone's settings screen and make the change themselves. Providing a link to the settings screen makes this straightforward and easy.

The following code example shows you how you can route a button click to the phone's lock screen settings screen.

private async void btnGoToLockSettings_Click(object sender, RoutedEventArgs e)
{
    // Launch URI for the lock screen settings screen.
    var op = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-lock:"));
}

 

 http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207048(v=vs.105).aspx

转载于:https://www.cnblogs.com/Hack-ok/archive/2013/01/04/2844130.html

Android 4.1.2 LockScreen)分析 一、     系统是如何启动的,请看下文: 1、系统开机后会启动一系列的server 在frameworks/base/services/java/com/android/server/SystemServer.java中 ServerThread::Run() //这里是将系统启动所需要的server用ServiceManager.addService()方法添加的系统中,然后启动。 阅读详情

相关推荐

C++使用IsensLogon接受Windows保消息

C++使用IsensLogon接受Windows保消息

WP8通知(Lock screen notifications for Windows Phone 8)

Creating a lock screen icon Create a 38 x 38 pixel PNG image that will identify your app on the lock screen. The image must contain only white pixels plus some level of transparency. Update the

renyg25的专栏 1147

Android代码-Screen Notifications

Screen Notifications An Android app to turn the screen on for notifications Find it on the Play Store or F-Droid License Screen Notifications is open source and available under the MIT license. See the LICENSE file for more info.

Keyguard-通知

weixin_45434434的博客 1333

教你如何在C++里电脑的

教你如何在C++里电脑的

cxz0106的博客 1406

Android 12 S WindowManager解读之从dumpsys window windows看window

();;();;();执行adb shell dumpsys window windows 如下:rootTaskId=1(根Taskid) mSession=Session{e98843e 2512:u0a10120} mClient=android.os.BinderProxy@64c3da9appop=NONEmcc?mcc?

weixin_41028555的博客 4810

openclaw的安装

openclaw的安装,卸载,整个配置过程、以及相关命令

有一种信仰叫海阔天空 395

centos7配置步骤_如何通过7个步骤配置对隐私友好的iPhone

centos7配置步骤Apple has always been committed to privacy and surely an iOS device is more privacy oriented than its Android competitor, as I told in this story: 正如我在这个故事中所讲的,Apple一直致力于保护隐私,而iOS设备肯定比其Andr...

weixin_26722031的博客 916

Android 5.1 Keyguard初识

Android5.1和以往的版本有了很大的变化,也增加了一个新的特性:在上可以显示通知(Notification)。Keyguard的本身也不再是一个独立的APK,跟SystemUI 合并,并作为SystemUI的lib。这点在SystemUI的Android.mk文件中就有体现。对比Android5.1 和 Android4.4 SystemUI 的mk文件一目了然: Androi

_风过丶花 8362

[默认值]Android不允许界面上显示Notification

frameworks/base/packages/SettingsProvider/res/values/defaults.xml <integer name="def_lock_screen_show_notifications">0</integer> 0:不显示 1:显示 代码实现的地方在 frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUse

zhangqi6627的专栏 1000

android R通知--通知的显示

通知的显示管理是在Settings中通过Settings provider的数据库字段管控的,SystemUI在 com.android.systemui.statusbar.NotificationLockscreenUserManagerImpl.java中通过动态监听数据库字段进行关联,相关代码如下: mContext.getContentResolver().registerContentObserver( Settings.Secure.getUriFor(Set...

tangzhihai0421的博客 2206

android通知_如何在Android幕上隐藏敏感通知

android通知When Google brought notifications to Android’s lock screen, it was a game changer. Instant access to important and relevant data is one of the things that makes smartphones so prevalent a...

culinxia2707的博客 2953

Android LockScreen (弹窗)

在要弹窗的Activity需要进行以下设置,才可以在状态下弹窗 @Override protected void onCreate(Bundle savedInstanceState) { final Window win = getWindow(); win.addFlags(WindowManager.LayoutParams.F...

weixin_34023863的博客 624

如何在Windows 2012中禁用Lock Screen Timeout?

企业在请其他原厂工程师远程或者当场解决系统软件问题的时候,可能会因为Windows默认的幕超时设置所困扰。因为在工程师排查问题时候会遇到因为某些原因一段时间没操作电脑,但是再回来时候发现需要请IT帮忙重新输入用户名和密码登录,每次遇到超时都请IT帮忙输入一遍比较麻烦。但是因为用户名和密码是公司管理使用的,还不能直接告诉给工程师,这种情况下能够想到的方法是Disable lock timeout功能。那要如何设置呢?

WarmSunshine7的博客 1万+

Notification和界面

界面 public void doLockScreen(View view) { setUpRemoteControlClient(); updateRemoteControlClientMetadata(); showNotification(); // 不显示...

风言风语 524
上一篇: Tile的更新
下一篇: 应用来电事件触发及结束通话
wkecai
博客等级 码龄11年 0粉丝 0原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值