Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,536 Members 53,012 Now Online
XDA Developers Android and Mobile Development Forum

ExtensibilityApp class in WP 8.1 Silverlight

Tip us?
 
ultrashot
Old
#11  
Recognized Developer
Thanks Meter 2030
Posts: 1,476
Join Date: May 2009
Location: St.Petersburg
Quote:
Originally Posted by TheInterframe View Post
That is true. Sort of of a side question though, has anyone made a OEM account and looked over the API documentation there? There maybe some useful things we could learn about WP and maybe further a jailbreak for all WP devices....
API isn't much useful as long as you cant really use most of functions due to policies.
My blog: http://ultrashot.net
--
Good bye
The Following 4 Users Say Thank You to ultrashot For This Useful Post: [ Click to Expand ]
 
TheInterframe
Old
#12  
TheInterframe's Avatar
Junior Member
Thanks Meter 4
Posts: 28
Join Date: Mar 2013
Quote:
Originally Posted by ultrashot View Post
API isn't much useful as long as you cant really use most of functions due to policies.
Ah, Yes that makes sense....
 
TheInterframe
Old
#13  
TheInterframe's Avatar
Junior Member
Thanks Meter 4
Posts: 28
Join Date: Mar 2013
http://www.wpcentral.com/joe-belfior...ock-screen-app

Sounds like there will be a dev preview update to enable lockscreen functionality quite soon. Joe also mentioned keeping the lock screen in memory. So 512 MB devices won't get the functionality soon....
 
Marocco2
Old
(Last edited by Marocco2; 11th June 2014 at 02:22 PM.)
#14  
Marocco2's Avatar
Junior Member
Thanks Meter 4
Posts: 16
Join Date: Nov 2012
Good stuff. Another question: can apps show the action center? Because I want code an app to show notifications on lockscreen. Thanks
The Following User Says Thank You to Marocco2 For This Useful Post: [ Click to Expand ]
 
matgras
Old
#15  
matgras's Avatar
Senior Member
Thanks Meter 682
Posts: 2,096
Join Date: Jun 2012
Location: Hoogeveen
Quote:
Originally Posted by Marocco2 View Post
Good stuff. Another question: can apps show the action center? Because I want code an app to show notifications on lockscreen. Thanks
something to force the volume/music control on the lock screen to automatically open would be really useful as well
"Six by nine. Forty two."
"That's it. That's all there is."
"I always thought something was fundamentally wrong with the universe"


Phone: Samsung Ativ S
Os: Windows Phone 8.0 GDR3
Rom: Wolfrom 2.0
 
snickler
Old
#16  
snickler's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 430
Posts: 779
Join Date: Aug 2010
Location: Wheeling, WV

 
DONATE TO ME
Updated first post with some more data since the Live Lockscreen App debuted yesterday. There's more I didn't get into, but I want others to dig in and find out
My Apps:
R1ng3d | CloudMuzik V1.5 Now in the MarketPlace for both WP7 and WP8
My Projects and Contributions:
WP8 Registry Tools | Async Wrapper for WP7 Root Tools SDK
My Phones:
Lumia 1520 - (8.1) / Lumia 920 - (8.1) / Focus v1.3 (7.8 via Dynamics ROM)
Contact
twitter: @sinclairinator | fb for: CloudMuzik | Skype: jsinnie

The Following 3 Users Say Thank You to snickler For This Useful Post: [ Click to Expand ]
 
Sunius1
Old
#17  
Member
Thanks Meter 33
Posts: 62
Join Date: Aug 2013
I suppose we can only speculate how it works at this point, but if I had to guess, it goes like this:

1. You have 2 projects in your LockScreenApp solution, one for the application to register the lockscreen, and the second one for the actual lock screen application.
2. The former would use ExtensibilityApp APIs to register the the second one, coupled with the manifests so it's all "valid".
3. The second application is just a another app that is able to process input and draw whatever it wants on the screen. That would explain why there's a delay at it starting when you press lock screen button while the phone is sleeping (probably it's a time for .NET to startup? Direct3D app should be able to start much faster).

Although this is only speculation, I think this makes sense, because that's how background tasks work on Windows, at least. I wonder though, why Microsoft is not releasing the APIs to be used in public - are they afraid somebody will make a lockscreen application that will drain the battery fast or something?
The Following 3 Users Say Thank You to Sunius1 For This Useful Post: [ Click to Expand ]
 
TheInterframe
Old
(Last edited by TheInterframe; 26th July 2014 at 02:11 PM.)
#18  
TheInterframe's Avatar
Junior Member
Thanks Meter 4
Posts: 28
Join Date: Mar 2013
Quote:
Originally Posted by Sunius1 View Post
I suppose we can only speculate how it works at this point, but if I had to guess, it goes like this:

1. You have 2 projects in your LockScreenApp solution, one for the application to register the lockscreen, and the second one for the actual lock screen application.
2. The former would use ExtensibilityApp APIs to register the the second one, coupled with the manifests so it's all "valid".
3. The second application is just a another app that is able to process input and draw whatever it wants on the screen. That would explain why there's a delay at it starting when you press lock screen button while the phone is sleeping (probably it's a time for .NET to startup? Direct3D app should be able to start much faster).

Although this is only speculation, I think this makes sense, because that's how background tasks work on Windows, at least. I wonder though, why Microsoft is not releasing the APIs to be used in public - are they afraid somebody will make a lockscreen application that will drain the battery fast or something?



I don't think its that but most likely the fact that the API is un-optimized, some of the facts you stated (i.e. Slow start up, documentation is lacking) etc... The fact the OS needs to be updated to show a section telling the user what lock screen app has taken over (since the setting page doesn't now)



Edit: Remember what Joe said about keeping the lockscreen in memory and 512MB devices might not be supported for that reason? Yeah seems like they aren't doing that since you can see the resume time for the lo screen is wayyy to much
 
snickler
Old
#19  
snickler's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 430
Posts: 779
Join Date: Aug 2010
Location: Wheeling, WV

 
DONATE TO ME
Quote:
Originally Posted by Sunius1 View Post
I suppose we can only speculate how it works at this point, but if I had to guess, it goes like this:

1. You have 2 projects in your LockScreenApp solution, one for the application to register the lockscreen, and the second one for the actual lock screen application.
2. The former would use ExtensibilityApp APIs to register the the second one, coupled with the manifests so it's all "valid".
3. The second application is just a another app that is able to process input and draw whatever it wants on the screen. That would explain why there's a delay at it starting when you press lock screen button while the phone is sleeping (probably it's a time for .NET to startup? Direct3D app should be able to start much faster).

Although this is only speculation, I think this makes sense, because that's how background tasks work on Windows, at least. I wonder though, why Microsoft is not releasing the APIs to be used in public - are they afraid somebody will make a lockscreen application that will drain the battery fast or something?
You are correct. Two projects: One is the settings page, which is the main entrypoint of the app when it's opened from the start menu and the second one is the actual lockscreen app.

The settings page uses the ExtensibilityApp APIs to register the second one as a lock screen application. That second application is another 8.1 Silverlight app that uses a LockScreen_Bridge WinRT component that has native access to read what is shown on the lockscreen from the WP Settings item.

It then uses some storyboards to make it do different things as you're swiping up and down on the LayoutRoot grid. It does use a timer so that's where that little lag comes from.

The only background stuff it's doing is latching on to system events ("Start button being touched for example").

I can see where MS would be protective of this. They DID say that they would be releasing a public version of the API at some point. I'm hoping it's not one of the situations that leaves it public only when they've approved you to be able to use it.

It does suck that it's restricted to 8.1 Silverlight though. I could see some Music Apps wanting to take advantage of the lockscreen like this.
My Apps:
R1ng3d | CloudMuzik V1.5 Now in the MarketPlace for both WP7 and WP8
My Projects and Contributions:
WP8 Registry Tools | Async Wrapper for WP7 Root Tools SDK
My Phones:
Lumia 1520 - (8.1) / Lumia 920 - (8.1) / Focus v1.3 (7.8 via Dynamics ROM)
Contact
twitter: @sinclairinator | fb for: CloudMuzik | Skype: jsinnie

 
TheInterframe
Old
#20  
TheInterframe's Avatar
Junior Member
Thanks Meter 4
Posts: 28
Join Date: Mar 2013
Quote:
Originally Posted by snickler View Post
You are correct. Two projects: One is the settings page, which is the main entrypoint of the app when it's opened from the start menu and the second one is the actual lockscreen app.

The settings page uses the ExtensibilityApp APIs to register the second one as a lock screen application. That second application is another 8.1 Silverlight app that uses a LockScreen_Bridge WinRT component that has native access to read what is shown on the lockscreen from the WP Settings item.

It then uses some storyboards to make it do different things as you're swiping up and down on the LayoutRoot grid. It does use a timer so that's where that little lag comes from.

The only background stuff it's doing is latching on to system events ("Start button being touched for example").

I can see where MS would be protective of this. They DID say that they would be releasing a public version of the API at some point. I'm hoping it's not one of the situations that leaves it public only when they've approved you to be able to use it.

It does suck that it's restricted to 8.1 Silverlight though. I could see some Music Apps wanting to take advantage of the lockscreen like this.

Quite interesting...!
The API in itself is quite powerful, custom lockscreens with weather animations are possible! http://wmpoweruser.com/wp8-1-live-lo...mations-video/

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes