Windows Phone 8.1 : Timing of 'Holding' gesture - windows-runtime

Per the Windows 8.1 documentation, the UIElement.Holding event, the "exact timing of what the system interprets as a holding action is adjustable by users through system settings"
What exactly is meant by this? It would suggest that the user should be able to change the timing of what is interpreted as a holding action through the device's settings, but I see no such option on Windows Phone 8.1.
Or is this an option available to the developer? If so, how can the developer modify this setting for the app?
Thanks

As per the comment here on the Microsoft Phone Dev Center forums from Rob Caplan (a Microsoft employee),
"This is not adjustable by apps. It is a user setting. I believe that
on Windows systems it will be based on the double click rate (most UI
timings are based on that). I'm not sure on the phone. There may be an
adjustment in the ease of access centre."
There is no such adjustment on Windows Phone 8.1 Developer Preview in the Ease of Access settings.
It seems like there is nothing I can do here. Perhaps it is possible to code your own gestures in Silverlight?

Related

Consent dialog for using capabilities on Windows Phone

I'm working on a Windows phone application which uses Network and Location capabilities.
All apps using any kind of these capabilities or others, will first display a consent dialog ("this app will use microphone, do you allow this?").
This dialog appears on first use by default on the Windows Runtime apps. But what about the apps for Windows Phone (Universal app, still using WinRT)?
Should I display a dialog for the first time usage of the capability or the OS handles this automatically? In Debug mode, nothing ever appears. I've also tested the app in Release Mode, and still nothing. So, do we have to manually handle this or the OS will handle a display of such dialog when the package is to be installed and used on other devices?
You can trust that the operating system will do the right thing for user consent when you declare a capability such as location. On Windows, as you've seen, this consent prompt happens on first run. The model for Windows Phone is to ask for consent at installation time. Either way, the system will take care of the prompting for you--you need not implement your own prompt.
Indeed, if you think it through more carefully, what would you do with the accept/decline answer from such a custom prompt? The whole purpose of the consent prompt is to broker access to sensitive WinRT APIs, which means those APIs will fail unless consent has been granted. Apps can't be given the power to make that decision on their own, because it would defeat the whole purpose of consent. Thus even if you obtained accept/decline yourself, there's nothing you could do with that value; there's no API to set permissions programmatically, as only the user can do that through Settings.
The consent prompts are just a way to initialize those permission settings at the appropriate time, and again, you can trust the system will do the right thing.
Windows Phone universal apps uses WinRT APIs as well, and same general guidelines described below applies to Windows Phone as well. However, there are differences in settings charm . The best way for you to test is publish the windows phone app as beta, then see if there is a consent prompt.
http://msdn.microsoft.com/en-us/library/windows/apps/hh768223.aspx

Android like Toasts for WP 8.1

I wan't to inform the user over some processes (e.g. Login successfully/failed or something else). In Android I used the Toasts Messages to let them show a short time. For WP 8.1 I tried the ToastNotificationManager to get the same results. Unfortunately the wp-toast has an audio signal and it spams the notification center.
I checked the Libs Toastinet and coding4fun toolkit toast, but this libs are WP 8.0 / Silverlight only and I need a solution for WP Runtime 8.1.
You can set which sound to play by setting the audio element in the toast's xaml. This can be set to silent if appropriate.
You can control how your toasts appear in the action center by setting properties on the ToastNotification object or in the X-WNS- headers sent to WNS. This allows grouping, tagging, expiring, removing, etc. See Managing toast notifications in action center (Windows Phone Store apps) on MSDN for details.
That said, if you're talking about notifications during the ordinary running of the app you may not want to use toasts. You may be better off showing warnings and such in-line or in your own screen-top panel (the latter is more important for Windows than Windows Phone, since toasts look quite different on each).
See Guidelines and checklist for toast notifications and Choosing the right UI surfaces: Errors.

Developers version of a phone

I have been programming for windows since about v2.1 and am interested in some apps for the phone now that it seems to be coming of age.
Search as I might, I cannot find a developer's unlocked version of a phone other than CDMA one and I can't use that as there is only AT&T and TMo available out here in the boonies.
Buying a dev's version for Android was simple as going to Moto's site and dropping one in the shopping cart.
If msoft are wondering why there are so few win-phone devs and/or, they might start looking at how hard or easy it is to get started. I have installed the SDK and the emulator is OK, but not something I would trust enough without testing it on my own phone.
Any helpful thoughts and suggestion on where to get a phone that it is not against the warranty to unlock?
You can use any windows phone as long as it supports the OS version (windows phone 8/8.1 is not supported in the older models) you're coding for. You don't need a developer version of a phone.
You need a developer's account though (should be 20/year now) and take a look at this page for registering your device. For older devices you need Zune software but it's not needed for windows phone 8 and up.
And if you want to use a real device for testing, without wanting to buy a device, you could use the Remote Device Access service
With it you can use a real device (located in Tampere/Finland) over the internet with your browser. Limitations include the lack of physically touching/rotating the device, and that calls/SMS are disabled both incoming & outgoing ones.

HTML5 App on Windows 8 which cannot be closed

I want to create a HTML5 Application on a Windows 8 Computer which provides product information for a user in the store. Does anyone know if it is possible to set up the windows 8 in a such away, that the user cannot exit the HTML5 App?
This isn't possible on Windows 8; the soon to be released Windows 8.1 has a "Kiosk Mode", which seems to be what you are looking for. From Windows 8.1 kiosk mode locks systems to a single app:
Generally speaking, kiosk mode is something that’s intended for use in corporate and shared computing settings — like public information terminals. It would, for example, make an excellent way to lock a point-of-sale terminal in to the “cash register” app and prevent would-be procrastinators from tabbing out and surfing the web.

Can I Deploy windows phone apps in my Nokia Lumia 620 Freely

I Have windows phone 8 And I want to Develop apps and Deploy it Freely.is this possible.
Ya, max 10 developer app or unsigned apps are allowed to install in your phone.
I assume what you want to do is sideload the apps . For that you need to developer unlock you lumia620 first , which obviously is going to cost you.Please check price for developer unlocking you phone with microsoft.
Other than that it is impossible to load apps freely ,if it is not through App store.
Hope my answer helped you.
It is possible to load any number of unsigned xap files onto a Windows Phone device provided it is fully unlocked (interop unlock). How you go about getting your device to that state presents a challenge. So far, only the Samsung ATIV S has been unlocked to that level for Windows Phone 8.
Once you have fully unlocked your phone you effectively have free reign over your device being able to fully access components such as the registry or file system.
Both Samsung and LG have provided back door diagnostic tools on their phones that facilitate making the needed registry changes to completely unlock their phones. Whether such features are available on other brands has yet to be discovered.
If you are a software developer, you will probably want to get your hands on an ATIV S before they disappear.