I am creating a windows 8 app. I have a requirement to save MAC address of my device but I could not find a way to get the MAC Address.
Can anybody help me out??
This thread says that it is not possible from a Windows Store app, by design. The comments offer some alternatives:
List of WIN32 and COM API that can be accessed from Windows Store apps: http://msdn.microsoft.com/en-us/library/windows/desktop/br205757.aspx
Use ASHWID a unique identifier, using this you can make per device logic for apps: http://msdn.microsoft.com/en-us/library/windows/apps/jj553431.aspx
Sample from Microsoft for download that successfully gets information like the system model and system manufacturer: http://code.msdn.microsoft.com/windowsapps/Device-Enumeration-Sample-a6e45169
Related
I'm developing a windows phone application. I have a version of my app in windows store. I know how to find the version of package I'm developing, but i want to find programmatically the version of my app in windows store,so i can compare and if the version store is bigger than the version of app user has, i want to make a notification and tell him that a newer version is available.
Thanks in advance!
Beginning with WP8 you can query the Store using windows.applicationmodel.store.listinginformation but sadly this does not include the version.
There is no public Windows Store API that provides this info. So you'd have to either scrape the info yourself or connect to a 3rd party API that provides alreasy scraped data. Solutions outlined here: windows store api to access metro and phone apps information
Wait but why?
If you only need to provide your app the latest version code, just store it in a JSON file hosted on your backend, or alternatively, if you're feeling fancy, create a dedicated webapp that checks for updates.
Detailed explanation:
Windows 8.1 targeted app package bundle for x86 and ARM architectures was uploaded to the Windows Store;
Windows Store approved it as a valid app, and published it using targeted distribution (Beta release for specific e-mail addresses), and gave me two different links for each Store: Windows 10 - www.microsoft.com/store/apps/some_code; Windows 8 - apps.microsoft.com/windows/app/some_other_code;
Both links redirect to the same page in the web version of Windows Store (and instantly opens the Store App with the game page open): www.microsoft.com/en-us/store/games/game-name/another_code;
When you click the Windows 10 store link on Windows 10 machine, the Store App opens, and app is downloaded smoothly and easily;
BUT when you open the link to the Windows 8.1 Store on a Windows 8.1 machine, Store App opens, refreshes one time, but instead of displaying the app page, it shows the Home page, and you cannot download the app at all from the official Windows 8.1 Store, even though the browser page includes Windows 8.1 in supported OS'es list;
Some additional comments:
in both machines I am connected to the Store using an account, which is in the list of targeted distribution partners (e.g. in the "whitelist" of beta users);
App is working normally both on Windows 10 and Windows 8.1 when I am installing them using the ".ps1" PowerShell script Visual Studio generates when building a release package;
I tried to change regions in the Store (UK, LT, US, etc.), but none of them works.
If you need more information - comment, I will try to explain more details :)
Finally, I have found an answer here:
https://msdn.microsoft.com/en-us/windows/uwp/publish/set-app-pricing-and-availability
"If you want to hide your app in the Store but still make it available to certain people, select one of the following options to limit your app's availability. Note that customers on Windows 8 and Windows 8.1 won't be able to get the app at all if you choose any of these options."
Since our app was hidden, e.g. "targeted distribution" (with certain e-mail addresses in the "white-list"), we couldn't test the app in the Windows 8.1 store. (Don't ask why, but..) Microsoft does not allow this functionality on Windows 8.1 machines, as mentioned in the article above.
Okay, okay - this should be simple, but I just can't figure it out, and Google isn't helping. I just bought a Lumia 635 for developing apps for the Windows store, and I'm using Blend to make my apps in HTML and JS. I've been getting along just fine so far, but it seems that I'm unable to select my WP as a target device.
I've already "unlocked" my windows phone device so that I can use it to develop. I don't believe it's to do with drivers since I would assume Win8 has the drivers inbuild. I'm wondering, is this even possible from within blend? There is a separate program named "Windows Phone App Deployment". Do I have to use this? There seems to be very little concise documentation on this, so I'm assuming it's not possible.
For universal apps, the available deploy targets are based on which project you choose as your startup project. By default the Windows App is the startup project, so it gives you deploy options like Local Machine and Simulator (Windows Tab). Change your startup project to Windows Phone App and you'll see the device option as well as different phone emulators.
Is there a class library or an Objective-C framework which could permit me to access my iPhone data from a Mac OS X application?
For example, if I develop an application to edit pictures, I would like access to my iPhone pictures from this application without using iTunes. I connect my iPhone as USB device and pictures are displayed into the application.
Apple doesn't support this mode for (recent) iDevices. There are some apps (mainly on Windows) which can sort of do this kind of thing, but I don't think you're going to find any libraries to make it simple. You may want to check the jailbreaking sites. They might provide better information.
Is it possible to use private APIs in Windows Phone 8 development similar to iOS development?
Of course, this is NOT about apps going to get published (AppStore/Marketplace). But there are a lot of use cases for non-public projects where a developer wants to call internal system functions.
With the Windows Phone 8 SDK installed, one can mount the Windows Phone 8 Emulator image located in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Emulation\Images. In the main partition of the Windows Phone OS, one can navigate to Windows\System32 and inspect the system DLL files with a tool like Dependency Walker or IDA Pro.
There are a lot of functions that sound very interesting but which are not publicly available and thus not documented. The question is: is it possible to call them somehow from an app or by other means?
Just a few examples of interesting functions (there are much more):
ShellChrome.dll: InvokeStartMenu, InvokeScreenCapture, InvokeVolumeUp, LockDevice, ...
InputInjection.dll: ApiInjectInitialize, ApiInjectTouchEvent, ...
...
I tried to get LoadLibrary (specifically, LoadLibraryExA) working somehow in a native Windows Phone App project, and to load and call these functions (the loading of the library worked). Long story short, I ended up with access violation errors or similar when trying to call the functions (maybe because of the sandboxed execution environment). Another problem is, that I can only guess the signatures (arguments) of the functions. I can't find them out with the tools I use.
Private api? We can use dll files in the windows phone. I have used private sdk's in the windows phone. I don't think windows is going to permit us to customize the OS just like Android do, So Invoke volume up..etc stuff is not going to work through private api.
I think they only provide some private apis to only partners with an NDA.
http://social.msdn.microsoft.com/forums/wpapps/en-US/4af0e87a-ab4b-4652-891a-f198a32758cf/windows-phone-8-access-to-private-apis
You can't, the application sandbox will enforce API usage. That means you will get an UnauthorizedAccessException every time you try to do a call to an api requiring rights you don't have.
This is intimately tied with the developer account you use to unlock your phone for development purposes.
EDIT : That's also true on the c++ native side.