I have a simple lap counter app and is it possible to:
Have a secondary tile that displays the lap count and when clicked updates the count, but stays on the start screen. I do not want the users to have to navigate to my app then click a button to update the count then navigate back to the start screen.
Can I just have the secondary tile run some code to update itself and either leave the user at the start screen or return them quickly to the start screen (as if they never left)?
You dont have control on what happens after user clicks on secondary tile.
Once secondary tile is clicked, it launches the app. You cant avoid that.
You can close the app, after incrementing the count programatically.
Application.Current.Terminate();
Thanks
Related
As we all know that when we minimize the UWP app it goes to suspension. and then again when maximized it is exactly at the same place, for all pages. I want to do the same for specific pages, on my own. meaning that I want to do the same operation for one or more pages, when I switch between pages in my app, without minimizing? when app is minimized, even the videos playing on it pause automatically, and when maximized they play themselves, I want to achieve that functionality when I switch to next page and when I come back to previous page, it should start playing again, like it was suspended. thankyou in advance.
The app I am making plays a video on a url in a webview on a page, I want that when I come back to that page after navigating somewhere else on my app, that webview start playing exactly at the same place. Thats exactly wht happenes when I minimize my app. but i wanna do that without minimizing it.
Also I have tried cahcesize of my frame and set navigationmode of my page to enabled, that just saves the current state, and the media on my page keeps on playing when I navigate to another page, it should pause, but it keeps onplaying
I've created an app with secondary tiles. The tiles leads to Page2.xaml of the application. So when the user clicks it, the app opens on that page (Page2).
Ive added the following at the end of OnLaunch in app.xaml.cs:
foreach (string id in ListOfId)
if (id == e.TileId)
{
rootFrame.Navigate(typeof(Page2));
}
Pressing back button (hardwarebutton) leads back to Page1, the first page of the application. Thats the wanted behaviour. The problem is, if I then press back on the Page1 it only flips the page... seems to reload it?
If I start the application by its default tile that leads to Page1, and then press back button the app suspends (expected).
Can I trigger suspension of the app in code? I can override hardware back button and might solve my problem that way
I build a tile image dynamically when the user presses the tile button in my application. But if the user clicks on pin to start from outside, how can I catch it and create a dynamic tile image? Is it possible or do I have to use a background agent?
There is no way to be notified that the user has pinned you to the Start screen until your code runs, either via Background Agent or regular App launch (at which point you simply query for your pinned tiles).
Google created new project based on javascripts. http://hyperlapse.tllabs.io/
Engine creating timelapse video but not generating it as visible video file.
How to get it? Only save from screen by desktop video grabbers?
Ok, I found a way, but its complex.
fist things first though, it wasn't actually made by Google, but by T+L labs using the Google Maps API and JavaScript.
Now, to the interesting part:
You're right when you say that there is no pre-made way to save the output video, so you have to mess around with the source code (to remove the overlays) before using screen capture.
What you will need:
Google Chrome
Screen capture software
Windows Live movie maker
Steps:
First, create your hyper lapse like you normally would.
Once you are ready to export, open 'inspect element' (in most browsers the default key is 'F12')
A window with lots of text should pop up. drag the edge out to enlarge the window.
Move your mouse down over the coloured text. As you do this, different parts of the page should highlight themselves in blue one at a time.
What you are seeing is an automatic system; when you hover your mouse over the code for an object on the site, the browser highlights it for you!
Move the mouse around until you find the section that highlights the scroll-bar at the bottom of the page.
Click once to select it, then press delete. The scroll-bar should vanish.
Repeat steps 6-7 for all the other things on top of the hyper lapse itself.
You should now have a clear space to record!
Finally, before you record, press 'F11' to maximise the window, removing the navigation bar at the top.
Activate your screen capture and record the hyper lapse through (Note: make sure the mouse cursor is off-screen whilst you capture)
Press 'F11' again to regain the navigation bar, and then 'F5' to refresh the page and get the removed objects back.
Use Windows Live movie maker to edit the capture down to the correct section, then export as a high quality film.
You're done!
I am wondering if it is possible to find what image was displayed to the user when they pressed the live tile to launch the application. I know how to tell what live tile was pressed, just not what image was displayed.
No, it's not. You should pin multiple tiles if you want a selective behaviour.