one project two apps (paid and free) on Windows phone - windows-phone-8

I have an a PAID app on the store. Now I would like to distribute another free(2 apps: 1 paid and 1 free). Obviously I would not recreate another project.
you can do? on ios and android is direct by the project with the targets. you can on windows phone?
i use Windows phone 8.1 silverlight

The same as on iOs and Android. Use Conditional compilation symbols.
and then in code:
#if FREE_VERSION
TrialPanel.Visibility = Visibility.Visible;
#endif

Related

Get app purchase date for Windows Phone 8.1 and Windows 8.1 applications

Is there a way, either in C# or C++ APIs for Windows Phone 8.1 and Windows 8.1 Metro applications, to get the user's app purchase date or, in case the app has been downloaded for free, the date of the first download? I'm specifically talking about the application's purchase date, not IAPs.
Thank you in advance.
There's few options:
1) Check out Windows.ApplicationModel.Package -class. It's available for 8.1 Store apps and provides information like InstalledDate. Word of warning, some of the properties only work in desktop apps.
2) You should be able to get the app's receipt. Receipt contains PurchaseDate for the product.
3) Manual way: When the app launches for the first time, create a roaming setting / app data where you store the launch date.

Launch a Windows Phone app with android AAR (NFC)

I have a device with a hard-coded NFC tag that opens an Android app based on an Android Application Record (AAR). Basically it calls an Android app to open with type android.com:pkg and payload com.something.Something.
I have researched on how to launch my Windows Phone app with that existing tag, but in the end I have only found that Windows Phone can launch an app if the NFC tag is adequately programmed to open the Windows Phone app ID or the custom protocol registered in my app. But it is very important that I use the existing NFC tag which opens the Android app ID.
What is curious is that my Windows 10 Mobile detects this existing NFC tag to want to open the app when I touch it with my phone and prompts me if I want to launch an app? But the app with that ID isn't installed so I did a research on how to put this app ID on my Windows Phone app but in the end I only got deployment errors.
Android Application Records (AAR) cannot be used to launch Windows apps. Windows uses a different system to launch apps (Launch Record). The main probem is that Windows uses a different scheme to identify apps (not a Java package name as Android does). Moreover, Windows apps cannot be set to be automatically launched based on the data contained in an AAR, hence, it's not possible to build some custom filter that starts your Windows app based on that AAR.
The workaround that's currently known seems to be what's discussed in Cross platform launch records with extra data on Windows Phone and Android. Though this requires modification of the data structures on the tag side.

Is there have an alternative API for GestureListener.Flick?

I'm developing a WP Silverlight 8.1 app, compiler always reports a C0618 warning, this is because Microsoft.Phone.Controls.GestureService is obsolete in Windows Phone 8 and I use it, is there have an alternative API for GestureService.GetGestureListener(..).Flick?

App targeting only Windows Phone

I am developing an app using Visual Studio Express 2013. I selected a blank application(Universal) template and there is no blank template available specific to phone.
Doing so has created an app with 2 c# classes targeting to both phone and desktop.
How can I create an app which I want to target only for windows phone. Will deleting one of the class from the project solve the purpose?
I think You should select windows phone Apps Template if you are going for only windows phone app.
If you're targeting only WindowsPhone, then you should be going with the Silverlight app for WP or the normal WinRT apps for WP.
Universal app is where it targets both the WP and the Store apps.
Hope it helps!

medialibrary in windows phone 8

I have developed an app for windows phone in windows phone 7.Everything is fine in windows phone 7.
But when i upgraded it for windows phone 8,I found that the listbox of images is not showing in a page.After debugging
I found that media library is returning null,thats why listbox of images not showing any images
After searching over internet I found that for accessing media library images we have to first open windows phone's native photo app(native pictures).So I did it ,windows phone 8 emulator.Now it is working,but every time I have to open this native photo app,then I have to open my app,then only its working..Actually I dont have windows phone device,I just installed windows phone 8 sdk and tested it..
So my question is,Is there any way to directly access the media library with out opening native photo app,so that user dont have to open his native app every time before opening my app
You don't have to worry, that problem won't affect Windows Phone 8 devices, it only concerns the emulator.
Here's how I access media library's album and pictures:
https://multiphotochooser.codeplex.com/
You could check on the source code to know how to achieve your goal.