Android 4.2版:普通小部件屏幕锁定部件
问题描述:
很简单:我刚刚创建了一个模拟时钟部件与日食,现在我只是想使这个小部件是一个锁屏小工具,太。我想用在Android 4.2中新的锁屏插件功能,使用这个小工具
我不是程序员呢,所以,请注明code线使用,该文件把它放在哪里,谢谢:)
Easy question: I have just created an analog clock widget with eclipse, now I'd just like to make this widget be a lockscreen widget, too. I want this widget to be used with the new lockscreen widget feature in android 4.2 I am no programmer yet, so please, specify the line of code to use and the file where to put it, thank you :)
答
以下行添加到您的 appwidget提供商
:
android:widgetCategory="home_screen|keyguard"
http://developer.android.com/guide/topics/appwidgets/ index.html的