J joneden Active Member Licensed User Longtime User Nov 16, 2012 #1 Hi All, Has anyone tried to do one of the new 4.2 lock screen widgets yet? If so is there a way to compile the app for 4.1 and up while retaining the 4.2 widget? Regards, Jon
Hi All, Has anyone tried to do one of the new 4.2 lock screen widgets yet? If so is there a way to compile the app for 4.1 and up while retaining the 4.2 widget? Regards, Jon
corwin42 Expert Licensed User Longtime User Nov 16, 2012 #2 joneden said: Has anyone tried to do one of the new 4.2 lock screen widgets yet? If so is there a way to compile the app for 4.1 and up while retaining the 4.2 widget? Click to expand... Just tried it. You only have to add the Code: android:widgetCategory="keyguard|home_screen"> element to the Appwidget-provider xml in the Objects/res/xml folder and make the file read only and compile with the Rev17 android.jar. Attachments Screenshot_2012-11-16-17-54-21.jpg 75.9 KB · Views: 1,445 Upvote 0
joneden said: Has anyone tried to do one of the new 4.2 lock screen widgets yet? If so is there a way to compile the app for 4.1 and up while retaining the 4.2 widget? Click to expand... Just tried it. You only have to add the Code: android:widgetCategory="keyguard|home_screen"> element to the Appwidget-provider xml in the Objects/res/xml folder and make the file read only and compile with the Rev17 android.jar.
J joneden Active Member Licensed User Longtime User Nov 17, 2012 #3 Nice one ! Thanks for that. I'll give it a shot on Monday. Regards, Jon Upvote 0
J joneden Active Member Licensed User Longtime User Nov 19, 2012 #4 Hi Corwin, Such a nice simple upgrade I was a little worried about the code compiled with API 17 running on Android 4.1 devices as well as 4.2 but it seems to work just fine. Now if only I could get the widget to work 100% of the time Best Regards, Jon Upvote 0
Hi Corwin, Such a nice simple upgrade I was a little worried about the code compiled with API 17 running on Android 4.1 devices as well as 4.2 but it seems to work just fine. Now if only I could get the widget to work 100% of the time Best Regards, Jon
NeoTechni Well-Known Member Licensed User Longtime User Mar 22, 2013 #5 How do we get the size of the widget? Currently I get something weird like: Attachments lcar.jpg 85.3 KB · Views: 1,176 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2013 #6 Please start a new thread for this question. Upvote 0
Nickelgrass Active Member Licensed User Longtime User Oct 2, 2013 #7 Can the Lockscreen Widget be treated like any other Widget? I am updating the widget from within a second service with callsubdelayed. Is there anything to consider? I mean because the widget is only actually there if the lockscreen is on. Upvote 0
Can the Lockscreen Widget be treated like any other Widget? I am updating the widget from within a second service with callsubdelayed. Is there anything to consider? I mean because the widget is only actually there if the lockscreen is on.
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2013 #8 It should behave like any other widget. Upvote 0
M Marvin Januszewski New Member Licensed User Longtime User Nov 6, 2013 #9 I tried it. But my Widgets not are shown at the Lockscreen List. [/QUOTE] The File contains: <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:widgetCategory="keyguard|home_screen"> </appwidget-provider> Click to expand... Whats wrong? Last edited: Nov 6, 2013 Upvote 0
I tried it. But my Widgets not are shown at the Lockscreen List. [/QUOTE] The File contains: <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:widgetCategory="keyguard|home_screen"> </appwidget-provider> Click to expand... Whats wrong?
scsjc Well-Known Member Licensed User Longtime User Jun 2, 2015 #10 hello everybody, can leave a sample with one widget on lockscreen. thanks. Upvote 0
DonManfred Expert Licensed User Longtime User Jun 2, 2015 #11 this is an old thread! tart a new one for your question. But you dont need to IF YOU FOLLOW THE TUTORIAL Upvote 0
this is an old thread! tart a new one for your question. But you dont need to IF YOU FOLLOW THE TUTORIAL