我怎么能与锁屏布局显示文本进去,像这样的应用程序进行交互: [英] How can I interact with the Lockscreen layout to display text into it, like this app:

查看:144
本文介绍了我怎么能与锁屏布局显示文本进去,像这样的应用程序进行交互:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现这个应用程序:<一href="https://market.android.com/details?id=de.j4velin.lockscreenCalendar">https://market.android.com/details?id=de.j4velin.lockscreenCalendar

I just discovered this application : https://market.android.com/details?id=de.j4velin.lockscreenCalendar

有似乎是现在可以写入在所述报警通常写的地方的锁屏内部的一些文本。

It seem that is now possible to write some text inside the lockscreen in the place where the alarm is usually written.

我想在这个地方显示自定义的文本,但完全不知道如何做到这一点。

I would like to display custom text on this place, but have totally no idea on how to achieve that.

这家伙继承在这个地方写的日历事件。

This guy succeed to write calendar events at this place.

感谢很多的任何线索//片段,它会帮助我。

Thank a lot for any clue//snippet that would help me.

推荐答案

这是令人惊讶的容易实现且极其糟糕记录。所有你需要做的是设置在系统设置报警字符串,如下所示:

This is astonishingly easy to achieve and astonishingly badly documented. All you need to do is set the alarm string in the system settings, as follows:

    String message = "This is a test";
    Settings.System.putString(context.getContentResolver(),
            Settings.System.NEXT_ALARM_FORMATTED, message);

这篇关于我怎么能与锁屏布局显示文本进去,像这样的应用程序进行交互:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆