Using live tiles inside a windows 8 metro application [duplicate] - windows-8

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Unable to create live tile inside Windows 8 application
is it possible to use live tiles inside a page? I know how to configure tiles for start menu, but I don't know how to obtain a similar effect inside my app. Thank you

You can use the LiveTile control that comes with Callisto.

You could create the effect within an application, but the specific mechanism used for the Start screen is not directly available within the context of an application.
From another post in StackOverflow, you may be able to reuse/port code from the Windows Phone 7 toolkit. There's a number of applications in the Windows Store as well (search for "tile") that provide interfaces for designing tiles, and some may have incorporated similar functionality.
Also from this post, looks like Telerik may have a solution.

Related

invoking the iOS application programmatically [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Launch an app from within another (iPhone)
I have designed sample applications and installed in the iPhone.
First application has a button in it, and i would like to get invoked the second application when the button is pressed. I am surfing to see the feasibility of it, but not sure if i have missed it.
Could someone guide the direction?
You want to look at employing an URL scheme for your second application.
If you mean you want to start another application from yours, you have to use URL Schemes.
Just register a custom scheme on your other app and call such URL from the first one.
Here there is a tutorial that might help you:
http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-working-with-url-schemes/
You can use URL SCHEME, please see the tutorial

Windows 8 manipulate tiles

Can I manipulate the tiles from C++ application (through WinAPI/WinRT, register or something else)?
Your question is very unspecific. Look at these samples 1 and 2 to get started with Tiles and C++. If you've got a more specific/detailed question feel free to ask.
Edit: (method names and namespaces are from c# but should be ~equal in c++)
Primary tiles can only be deleted by the user.
You can access limited WinRT functionality out of an non MetroApp. But as far as I know there is no way to delete foreign tiles in the "limited" WinRT.
If you want to delete secondary tiles you have to use Windows.UI.StartScreen.SecondaryTile.FindAllAsync("id of the app tiles belong to"); and then call tile.RequestDeleteAsync() for each tile in the result you want to remove. Note that every delete request must be accepted by user. As already mentioned Windows.UI.StartScreen namespace is only available out of metro apps.

Is there any way to write a WinRt (Metro) app that will also work on Windows 7 and Vista?

We can’t just leave our customers that are not able to upgrade to windows 8 for a long time in the larch. However there is demand for a “tablet”/”touch” version of our app.
So how can we support both touch with Metro on Windows 8 and our current customers from a single code base?
When WPF come out, after a lot of “Pushing” Microsoft saw since and make it work on Windows XP – has anything like this been talked about for WinRT.
(I am not expecting any solution to work on XP, as XP support is being wound down.)
See Also: Can the ARM version of Windows 8 only run Metro (WinRt) style apps?
The best answer is that you do not want the same application to run on Windows 7 and Windows 8 Metro style. The UI that works best for mouse and keyboards (windows 7) will not work well for a touch-first presentation and visa versa. It is important to re-imagine the UI for the two different worlds.
That said, you have 2 options if you want to share a lot of the code:
1) Write it largely in JavaScript/HTML5. This will let you re-use many of the assets (especially the business logic parts).
2) Write it in (desktop) Silverlight. The Silverlight XAML is closest to Windows XAML. WPF is further away and will require more re-work later.
In either case, you should look at and follow the principles used when writing cross-platform code. Understand the platform dependencies and isolate them behind indirection boundaries. You want to localize all of the code that will have to change. For instance, you don't want calls to the .Net System.IO.File APIs which you know will have to change to Windows.System.Storage calls being scattered throughout your code. Instead, you want it localized in one function that can be modified later.
The only way I can think of is to implement your application in HTML5/CSS3/JS, and avoid using WinRT APIs inasmuch as possible - this may be feasible depending on what, exactly, your app needs to do (e.g. portable 2D graphics is easy with HTML5 canvas).
Then, for Win8, you'll package this as Metro web app. For Win7 and below, you write a simple app that embeds your browser of choice (not IE9, since it doesn't work on XP - so Firefox or Chrome) with all chrome hidden, and loads your HTML5 app inside that embedded browser.
As others have noted, you would not want to have exactly the same application working in Win8 Metro and Win7 / Vista Desktop. If you structure your application properly, using a suitabel design pattern, it is possible to share quite a bit of code between the various version that you would require. For the Win8 version, you will be using WinRT, for Win7 / Vista you have a choice of Silverlight or WPF.
I have published a couple of articles that demonsrate how this can be done, they include quite a bit of code as well:
XAMLFinance – A Cross-platform WPF, Silverlight & WP7 Application - while this article does not cover Win8, it does share code from WPF to Windows Phone 7, which is a very similar problem.
TweetSearch – A Cross platform Metro UI WinRT and Silverlight Application - this article shows how to use the same techniques to share code between WinRT and Silverlight
It is unlikely that we'll see Microsoft push the Metro-style
application framework back to past releases due to the level of
re-architecting that went into Windows 8.
I agree with Zac on this point. It appears Microsoft is definitely pushing both the technology and usability forward with the introduction of Windows 8 (and Windows Runtime).
The Metro UI is a different UI paradigm. If your using the current
Win32 controls (which includes WPF controls), your application will
look really dated in Metro. The only way to fix that is to
re-implement the UI (your View classes in an MVVM design) using Metro
controls. However, C# and majority of the .NET APIs are first class
citizens in this new environment. The rest of your application should
be fine.
As you already have what I assume a rather large application your best solution would be separate your view from your model-viewmodel. Then you can continue to develop both Windows 8 Metro full-screen touch-friendly awesome interfaces and the "classic" window interface (what we have done for the last x number of years). With good separation, design, and an excellent source control solution (i.e. Perforce) you will able to share a lot of the code base.
In addition to the answers given to your recent question on Windows Runtime Bill Wagner (one of the many C# bloggers that I follow) has posted summary on WinRT and managed languages conference sessions; it is an good read and recommended if you have a few minutes. One of the things that his summary clarified (in the FAQ at the end) was that the future of .NET as the branding for the framework we use is going to be replaced with Windows Runtime.
Another piece from Bill's blog post:
Some of the .NET APIs are changing for WinRT. I don’t have an
exhaustive list, and I’m not sure there is one yet. Other APIs are not
exposed via WinRT. (They are still available as .net APIs, just not as
Metro / WinRT APIs.)
It is unlikely that we'll see Microsoft push the Metro-style application framework back to past releases due to the level of re-architecting that went into Windows 8.
Like Pavel said, if you kept your application from using as much of the WinRT libraries as possible, it is possible but then again, you're now building a regular web app.

Best Java library for accessing Camera (JMF alternative)

I would like to access a camera attached to my system. basically i would like to capture an image using the code retirieve the image. can someone suggest me a good framework. I went through JMF, but it was last updated 7 years ago. FMJ also lacks proper documentation. Is there any framework available which is good and has good userbase?
Xuggler is pretty cool. It has tutorials too.

Will Rebol 3 support SetWindowsHookEx

I asked the question "Will Rebol 3 extension support any windows api call including those requiring callback ?".
Now to be sure and to take an example, will it possible to use Win 32 SetWindowsHookEx() and do screen capture like this:
http://www.codeproject.com/KB/cpp/Screen_Capture__Win32_.aspx
Rebol is really missing screen capture function.
Carl has released a new hostkit that support callbacks.
see http://www.rebol.net/r3blogs/0329.html
I've actually built a screen capture and Image editing application in REBOL for Qtask, so yes, its already possible in R2. :-)
https://www.qtask.com/qwiki.cgi?mode=previewSynd&uuid=RX1BV28XG68G87ERFEA2BXLQ63QT