Add button to favorites page within my app. WP 8 - windows-phone-8

I have a panorama sound app with buttons that play sounds. How can I use a Hold event to allow user to save their favorite sound buttons to the Favorites page? I can do the Hold event but have no clue where to go from there as far as saving/copying the button as well as no clue how to handle isolated storage.

For Isolated storage look at these to links:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj714090(v=vs.105).aspx
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh286408(v=vs.105).aspx
And for the hold event you can look at this question:
Hold Event Longlistselector

Related

Detect volume and home button presses on the Siri Remote

It's relatively straightforward to detect some button presses on the tvOS Siri Remote: the pause/play button, the touchpad area, and with marginally more effort, the MENU button. But there seems to be no way detect or override the function of the + and - buttons, or the Siri or home buttons.
Or is there?
Currently the + and - (volume) buttons on the Siri remote are accessed through private functions. These can't be overwritten or detected, as they have a reserved function. The same goes for the home button.
There are a couple of points that support this claim. First, as the OP noted, there are no events that detect any actions related to the volume buttons. They don't trigger the pressesBegan or similar events either.
Another good place to look for more options with the remote/controller is GCGameController. It looks like it has functionality related to all, but the volume buttons, which are reserved. Take a look at the
Using the Apple TV Remote as a Game Controller section here. It mentions all of the buttons on the remote that can be used in a CGGameController.
As I mention in my other posts, this is a fairly new OS and not everything is available yet. You can always file a bug report with Apple and request certain API to be made public.

SystemMediaTransportControls track name click event

I'm using SystemMediaTransportControls to control audio playback throughout my Windows Phone 8.1 Universal App.
The controls seem to have a one specific behaviour - the track name and artist act as a clickable button and clicking on it fires the OnLaunched event for the app.
Is there any way to either change the behaviour of this button or at least detect if the OnLaunched event is fired due to user clicking on this button?
Specifically, I need to direct the user to the currently playing album's page in the app when she clicks on this button.
The current behavior is that it launches/reactivates the app associated with the background audio playback. The same behavior applies to the Windows Store Music app.
Here's what I think you could try:
If your app has multiple album pages for currently playing audio, then you might consider subscribing to foreground messages from the background task. You can use "BackgroundMediaPlayer.SendMessageToForeground" to send messages to the foreground and navigate appropriately. Try making the call in the OnLaunched event before the Windows is activated. You should also be able to get currently playing audio information and use that accordingly.
Take a look at the Background Audio for Windows Phone 8.1 sample for more details on how to use background audio. Then you should try what I mentioned to see if that works for you.
Hope this helps.

Use AS3 to open an swf. in a browser without the browser toolbar (forward / back buttons)

I have developed a very large swf. that will only be accessed in-house. There are over 100 scenes & 10000 frames (I had no idea the project would grow this large). I have developed a navigation system within the swf., but I have found that many users are clicking the forward / back buttons in the browser toolbar (IE8). This is a big issue for me, because the user then has no way to return to the location in the swf. that they were in before hitting the back button. Is there a way to code into the swf. using AS3 to ensure that the browser toolbar is disabled?
Disabling the parts of the user interface that the users are using a lot is a very bad idea.
Instead, simply use the browser buttons for navigation.
SWFAddress let's you do that
You can have deep linking, too. (allows users to send a link of where they are to other people)
Take a look at this answer:
How to make the browser back button work for a Flash-based Website?

Manipulation events are not fired on page with a listview

Now I'm developing windows phone 8.1 app with WinRT
I'm trying to support swipe-right-to-go-back gesture in my app.
I try to capture the manipulation events on my page. My page's root is a grid and have a ListView inside. I used the UIElement.AddHandler method with "handledEventsToo=true" to add the event handlers. But when I touch the screen, only the ManipulationStarting event is fired, other events seems to be eat by listview.
Could anyone tell me about the manipulation event behavior or other methods to implement this feature? Thanks!!
You won't normally capture events on LisView, beacause it has a ScrollViewer which intercepts them.
There is a way to do it - you will have to disable ScrollViewer and then perfrom some actions when the events are fired and perform scrolling manually. This answer will guide you.
In case someone encounters this page, I spent the better part of a week figuring out why manipulation events were only firing half the time on my UWP charts using the winRT xaml toolkit.
You may need to check that the background is not null on whatever element has the event handler attached. Templated controls are not necessarily hit test visible unless they have one. Otherwise, the input can go right through to the element behind it.
https://msdn.microsoft.com/en-us/windows/uwp/xaml-platform/events-and-routed-events-overview

Allow my app to be opened with camera button

I'm working on a WP8 app that will utilize the camera for a feature. I've read that, as of GDR2, you can now change which app opens with the camera button, but:
it appears that an app needs to be specially written to be used like
this; not every photo or camera app can be configured to launch when
you press the Camera button.
Question: What do I need to do in my app for it to become an available option in the "Pressing the camera button opens: " drop down when navigating to Settings -> Applications -> photos + camera?
Additionally, part 2 of this question would be (if part 1 is possible), when the application is launching, can I determine if the user opened it via the camera button (so that I could go straight to my camera feature)?
I've seen this article but it only describes how to use and handle the shutter button, it doesn't mention how to allow this button to open the app.
Has anyone been able to accomplish this?
This thread (http://forums.wpcentral.com/windows-phone-8/234751-changing-default-camera-app.html) seems to suggest that only manufacturers can create apps that can do this. Not sure if it's definite, but I've never heard of a 3rd party camera app that can do more than register as a lens.