Copy to clipboard on Windows Phone 8.1 apps - windows-phone-8.1

How do you copy something to the clipboard in a Windows 8.1 apps? I couldn't find any API to do this? You could do it in the old Silverlight apps, but there seems to be no way now.
Is there any workaround? I want share some strings from one app which could be used by any other app.

There is no clipboard API for WP8.1 but it is available for Windows 8.1 apps. You need to either use a silverlight library which helps in setting content on clipboard or use share charm.

It isn't really possible with the old 8.1 API, but the Charming Share Clipboard API is probably your best bet here for attempting it.
Can you perhaps upgrade your App to the newer Windows 10 UWP API which natively supports it? This would be fairly easy and give you better hardware compatibility also.
Clipboard API

Related

Windows Phone 8 app publishing tool from the cli?

I've been researching if it's possible to integrate Android, iOS and Windows Phone 8 in a buildscript for Jenkins. The main goal is if there is a release in a specified branch in the given VCS, that it'll publish them to their responsible store. At the moment I've a way to publish Android and iOS, but it seems that there is nothing for Windows Phone 8.
The question is:
Is there a command-line based application that is able to publish Windows Phone 8 apps to the Windows Store?
If there is a way to integrate with a API or simply by doing some POST/GET requests, I would like to know as well. At the moment I'm researching that part.
The part of building and signing the APK's, APPX's and IPA's is already taken care off.
For iOS I'm able to use FastLane(Deliver) or
Nomadcli(Shenzhen);
For Android I'm able to use a Jenkins plugin(Google Play Publisher) or integrating with the API (there are various command-line based applications out there);
I would really appriciate if you can leave a answer! Thanks in advance!
There is no API for the Windows Store available (yet) that would allow you to do this.

Is it possible to create a headless accessibility tool for windows phone?

We've just successfully created an accessibility app for android (think screen reader) that works across all applications without needing to first launch a specific app, via the accessibility service.
Is it possible to create an equivalent headless service for Windows Phone? UIAutomation is available for WinRT but I don't think it's available for Windows Phone 8.1 or 10 in the same way. How could I achieve something like this?
It's currently not possible to build a system-wide accessibility app on Windows Phone 8.x (or 10 for that matter). Please consider adding a suggestion on UserVoice.

Should I target WP8 users while developing new app?

We are planing to develop new app .It has VoIP feature and app is similar to whatsapp.
Since the app has Voip feature we have to go with WP8 silver light. Winrt for WP is not supporting VOIP api.
Can we guess almost all the WP8 devices are upgraded to WP8.1 ? If there are large user base still remains in WP8 we will develop the app using WP8 api's (Using VS2012). Otherwise we will go with WP8.1 api's (using VS2013).I heard there are few performance improvements and controls are available in WP8.1
Any suggestions on this ?
Thanks in advance
All Lumia phones can be updated to WP8.1 and a huge part of users so did.
Just an article for reference: http://www.engadget.com/2014/04/02/nokia-lumia-windows-phone-8-1-update/
On my apps I use analytics to track users and I hardly see few users stuck with WP8.
Update - market share
http://www.gsmarena.com/adduplex_wp81_market_share_surpasses_wp80-news-10062.php
This article is from last October, WP8.1 has been out for about 5 months and it had already surpassed WP8. I let you think the actual quota...
Should you go with WinRT? It depends on your needs. Of course you should use at least WP8.1 Silveright (not WP8). But if your application does not require specific functions only available in WinRT, you might go with WP8.1 Silverlight, since WinRT has still many little performance issues.
There are a lot of new available APIs and features either for WP 8.1 Silverlight or WinRT. I would definitely target 8.1. Users still using WP 8.0 probably don't care that much about apps anyway.

Universal App (WP & WinRT) should i use Cirrious MvvmCross or Galasoft MVVM Light Toolkit

I would like your input, so that i can make a good decision on whether I should use Cirrious MvvmCross or Galasoft MVVM Light Toolkit?
I am going to be developing 2 applications using Universal Apps (Windows Phone 8.1 and Windows 8.1) in XAML/C#. I am not new to developing windows phone and windows 8 apps however i am new to developing MVVM apps and thus would greatly appreciate you into in this?
Should i use Cirrious MvvmCross or Galasoft MVVM Light Toolkit, (should I use something else) what are their strengths and weakness?
Thank you for your time and your help!
Is there an added benefit for using MVVMCross in your app? Will you be developing an Android or IOS APP? If the answer no, then there is no need for MVVMCross or such. The new WinRT API should have 95% of what your app needs. You can add a portable class library to the solution and share third party libraries between the apps as well.
Good Luck.
MvvmCross is the best way to cross-platform work with xamarin for exemple but you can work with it just for create windows and windows phone app.
MvvmLight is really good to implement mvvm pattern in your project.
Just for create ms app, you should work with mvvm light.
MvvmLight does not have support for iOS yet. Support for Android was added in version 4.0 in May 2014. More info here : http://blog.galasoft.ch/posts/2014/05/mvvm-light-v4-4-with-xamarin-android-support/
MvvmCross does not support Universal Apps (yet).
More info here :https://github.com/MvvmCross/MvvmCross/issues/656
A ray of hope here : http://www.microsoft.com/en-gb/developers/articles/week05jun14/mvvmcross-support-for-universal-apps
Looks like you have two options -
MvvmCross allows you to share code with Windows Phone and Windows 8 also. Just not via Universal App project. If the objective is to share code - you can go with MvvmCross. You wil get your WinPhone and WinStore apps along with Android and iOS also.
Start with Mvvmlight on Universal App and hope for Xamarin.iOS support soon.
http://blog.galasoft.ch/posts/2014/04/building-a-universal-application-for-windows-phone-8-1-and-windows-8-1-with-mvvm-light/

Starting with audio in Windows Phone 8

I recently started doing some development in the Windows Phone 8 OS I'm pretty new on this. I was doing some searching about the fact to create an app who play any audio for some specific events/actions.
I was reading the Windows Phone API reference from Windows Phone Dev Center http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626516%28v=vs.105%29.aspx#BKMK_Win32andCOMAPIforWindowsPhone
But it seems a little confusing to me at first glance and I have the doubt of which one of the following should I use to accomplish my task.
The .Net API for Windows Phone
Win 32 and COM API
... or the Windows Phone Runtime API
Any help would be very appreciate
It really depends what you're trying to do. If you're writing a native application or are interested in cross-compatability with Windows 8 then XAudio2 or the WinRT APIs are definitely the way to go. If you just want to play some infrequent sounds (say, when you pop up a warning dialog) from within a XAML app then I have seen a number of approaches, teh easiest of which is probably just having a MediaElement in your XAML that you use to play the audio.