I have developed a Windows 8.1 Universal app for tablets and phones.
Is there any equivalent of App.config file what we used to have in desktop applications in win 8.1 tablets and phones ?
Searching over the net revealed nothing.
Try to use ApplicationData.Current.LocalSettings in Windows.Storage namespace.
Please refer to: Loading and saving settings
No direct equivalent, you need to create something similar by yourself.
Related
I have an existing universal app targeting Windows 8.1 and Windows Phone 8.1.
I now want to create a Windows 10 version of the app. But I still want to maintain the existing Windows 8.1 and Windows Phone apps.
Can I share code between the (old) universal 8.1 app and the Windows Universal App?
I imagine a project structure like this:
Currently I have:
App.Windows
App.WindowsPhone
App.Shared
I would like to add another project for Windows 10:
App.Windows10
With a reference to the existing Shared project.
Is that a feasible approach? Or what would be a better approach?
Yes, you can do that. Add the Universal Windows project to your existing solution, select Add References... from either the Project menu or by right clicking on the Project's References folder in the Solution Explorer, then add App.Shared from the Reference Manager's Shared Projects section.
You'll need to make sure that the shared files are all valid in both contexts or use conditional compilation to separate out the differences.
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.
I have to create windows phone 7 or 8. I installed visual studio 2013. It came with windows phone SDK.
I have problem. I have Windows 8.1 pro OS. But my processor does not support Hyper-V platform. I did enable BIOS settings. Even though i did not get this.
Any alternative way to test or debug app in emulator.
Any idea or suggestion should help me a lot.
Thanks in advance.
make sure you have enable hyper V from control panel also.
The best alternative would be to test your app on an actual device (this does not require Hyper-V). For more information have a look at this discussion.
Not the most convenient way, but simple and it's working:
You need to register account at developer.nokia.com and follow this link http://developer.nokia.com/resources/remote-device-access. You'll find list of devices that you can use for testing your apps. Just choose one of them and reserve it and use it as you want!
This video may help you to start:
http://www.youtube.com/watch?v=Z-GbgPnTSxI&sns=tw
I am about to start the development of an Windows 8 app. The app is supposes to run in phone, tablet and desktop. I went through lot of docs in msdn sites and this is what I understood from them.
There is no way to create one project which supports both phone and (tablet,desktop).
User can create a Portable class library project and put all the reusable code into it and add it as reference to the actual projects.
create one project for windows phone and one project for window store app(create using dev account)
Please correct me if I am wrong and also let me know if there is any other way of doing it. Also I understand like the window store app will work for both tablet and desktop whereas windows phone app works only in phones and not in tablet.Is it right?
Windows tablet comes in two flavours, Windows Pro and Windows RT.
Will the desktop store app work on both the tablets ?
is there different development environment for different category of tablets?
What would be the best approach to simulate a user tapping on a touchscreen of a Windows Phone 8 device?
One approach I could imagine is to use native code to call the Win32 API functions which control the mouse events. This would assume that touchscreen events are more or less the same as mouse events, and that these API functions are accessible. Does anyone know if this is the case on WP8?
Another approach would be to have something like the Android ADB for the Windows Phone. On Android, one can use ADB to control the device from the PC and also simulate touch screen events (e.g. via Monkeyrunner). I haven't found any information if there is a tool like ADB for Windows Phone 8.
The purpose of finding a solution for this is the integration of Windows Phone 8 devices in an automated testing process.
I found out that there is a DLL file named InputInjection.dll in the System32 folder of the Windows Phone 8 (at least in the simulator image I mounted).
This library contains the following functions:
ApiInjectInitialize
ApiInjectTouchEvent
ApiInjectButtonEvent
ApiInjectEnableExclusive
ApiInjectUninitialize
Doing some research, I found out that there are official ways to simulate touch input for Windows 8 development:
http://social.technet.microsoft.com/wiki/contents/articles/6460.simulating-touch-input-in-windows-8-preview-versions-using-touch-injection-api-en-us.aspx
http://msdn.microsoft.com/library/windows/desktop/hh802896(v=vs.85).aspx
However, the functions used for Windows 8 development are not available on Windows Phone 8. But the functions are named similarly to the ones I found in InputInjection.dll:
InitializeTouchInjection similar to ApiInjectInitialize
InjectTouchInput similar to ApiInjectTouchEvent
(...)
I wasn't able to find any documentation on InputInjection.dll and its functions. These functions also don't appear in the header files of the SDK. Maybe Microsoft uses these functions internally for their own tests during Windows Phone development.
The question is: Is it possible to access this library and call these functions somehow? This would be similar to using "Private APIs" on iOS, I guess. I tried several ways to achieve this with a Windows Phone 8 app using native C++ code, but I had no luck so far (the basic reason is that the apps run sandboxed on Windows Phone). Is there any way to get a binary running on Windows Phone (maybe via a debug bridge or something)?
You can access all those API's From Win32 Service/ Kernel Driver. Include the header file to your source code and Library of injection method it will work