windows-phone

Adding Subscriptions to Windows Phone app as an in-app purchase

不想你离开。 提交于 2019-12-11 19:04:16
问题 From my understanding, Windows Phone now allows in-app purchases. I would like to empower my users to signup for one-of-three subscription levels within my app. However, I do not understand how to enable this type of scenario. I see the option to add an "In-app product". However, in my case, I'm not sure of the following: Am I offering one product or three separate products (one for each subscription level). I don't understand the "Product Identifier" is this an identifier for the

How to to read the first part of the json feed - Windows Phone

假如想象 提交于 2019-12-11 18:28:13
问题 I have been working on this for some time, i can read the last part, so everything from the square bracket to the end. But i can't read anything before that, when i put it in i Get a NullExceptionReference. Here's the code I have got: namespace WP7_ConsumeJSON { public partial class MainPage : PhoneApplicationPage { // Constructor public MainPage() { InitializeComponent(); myButton.Click += new RoutedEventHandler(myButton_Click); } void myButton_Click(object sender, RoutedEventArgs e) { try {

Live Tiles not Updating

旧城冷巷雨未停 提交于 2019-12-11 18:08:32
问题 I'm trying to create a background agent that periodically updates a user's Live Tiles on Windows Phone. Currently, my code for the agent is: string where = ""; private GeoCoordinate MyCoordinate = null; HttpWebResponse webResponse; ... protected override void OnInvoke(ScheduledTask task) { System.Diagnostics.Debug.WriteLine("Invoked"); findMe(); NotifyComplete(); } private void ResponseCallback(IAsyncResult asyncResult) { HttpWebRequest webRequest = (HttpWebRequest)asyncResult.AsyncState;

System.Drawing and System.Drawing.Imaging alternatives for Windows Phone

只谈情不闲聊 提交于 2019-12-11 18:03:37
问题 I'm trying to use some C# snippets which doesn't work in Windows Phone, because of those namespaces. Are there any alternatives to System.Drawing and System.Drawing.Imaging for windows phone? I need alternatives to PixelFormat , Bitmap , ColorPalette , ImageLockMode , LockBit and so on. an example: BitmapData bmpDat = bmp.LockBits( new Rectangle( 0,0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, bmp.PixelFormat); 回答1: I never tried it, but I believe should be a good library. http:/

Windows phone listpicker set selectedIndex

此生再无相见时 提交于 2019-12-11 17:43:45
问题 I have run into a problem with the listpicker. I have a settings page with a option called "Decimals" where you can toggle a "Toggleswitch" and if you turn the toggle on, the listpicker gets enabled. Now when you click on the listpicker, you can choose from 1 to 5 as the amount of decimals. If you choose for example the number "3" in the listpicker, it will get saved to a key on isolated storage with the value 3, if you go to the MainPage it will check the isolatedstorage and if it contains

Value does not fall within the expected range GeoboundingBox WinRT

我是研究僧i 提交于 2019-12-11 17:12:52
问题 im trying to fit 2 pois on a bing map for WinRT Universal APP, commonly user position and any other point, so the user can see the map between two points, i have this code: private void centerMap(Geoposition pos, MapPoi pos2) { try { #if WINDOWS_APP //TODO PC Maps #elif WINDOWS_PHONE_APP GeoboundingBox geoboundingBox = new Windows.Devices.Geolocation.GeoboundingBox( new BasicGeoposition() { Latitude = pos.Coordinate.Latitude, Longitude = pos.Coordinate.Longitude }, new BasicGeoposition() {

Complicated background work in UWP, is it real?

牧云@^-^@ 提交于 2019-12-11 17:09:18
问题 Usually I work with Android but now I need to make background application/library/service in UWP. So, I need three background tasks/jobs/services: Every 15 minutes send POST request to the server Every 1 minute check some data Run via push notification a long-running tcp/ip connection which can run about 1 hour (how long can it run?) I am confused, is it possible for UWP? 回答1: The short answer,it is not complicated. Every 15 minutes send POST request to the server Background tasks can run as

MVVM framework recommendations for windows phone 7 development [closed]

会有一股神秘感。 提交于 2019-12-11 16:50:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Can anyone recommend a good and light framework for mvvm development on windows phone 7? a list of pros and cons would be useful. 回答1: Jounce: http://jounce.codeplex.com/ More guidance really this - but I found it useful. It has some really useful debugging and logging elements to it, which makes working with

Windows Phone 8 => Download DLL during runtime?

这一生的挚爱 提交于 2019-12-11 16:07:26
问题 i am currently developing a Windows Phone Project consisting of multiples libraries where i will sometime need to update the different assemblies by downloading a DLL file over the internet. Is it possible to load DLL on runtime on Windows Phone 8 and accomplish the goal described above? 回答1: No this is not allowed. All binaries that run on the phone must be signed by MSFT as part of their App Ingestion process via submittal to the Windows Phone App Store. If you need dynamic updating, you

Good way to store and read timestamp in Windows Phone

一世执手 提交于 2019-12-11 15:22:40
问题 I am working on a windows phone app. Just want to ask for some suggestion. Here is the problem: I want to store a time in somewhere and use the time to check if I need an internal file update. (if my file has not been updated in 60 days, update it. something like this) I am not sure if I can have access to the registry directly in the app. and the other possible way to solve the problem is maybe save the timestamp to a file in isolated storage. But I dont have a lot idea about how to save it