Is there a way to reboot the phone using c# code from an Universal App?
I could not find anything in the github UWP samples library.
UWP apps/Windows Store apps have very limited access to system method/resources - by design due to security issues.
There is no way to reboot the phone with official API.
You can try to find some hacks to do it - I've seen once some methods (don't have links now) using Pinvoke in WP8.1 - but you cannot be sure if they will work and/or pass certification.
Except that you cannot do it, you should not reboot the system from code.
Even (most) OS procedures ask user permission, all you can do is prompting the user asking for a reboot.
Also, you shouldn't need a system reboot. At most, what you need is an app restart. I looked for an "APP restart" API but I couldn't find it, but what you can do is closing it.
You should tell the user that the app will close, and doing so after the user confirmed invoking CoreApplication.Exit();.
The user then can reopen it.
Related
I’m a beginner engineer, all I want to know is how we can integrate biometric authentication to existing projects. I’m aware of the biometric authentication process and tried as an example and it worked out . Please show me a way to find this one. I’ve searched many websites related to this, but couldn’t find anything. I’m supposed to know how we can start with biometric login without prompting a biometric icon or something that is I need to login whenever I touch the sensor while the app is opening. And then after successfully login, how can we be redirected to the home page using the URL in android studio. Your time and efforts will be appreciated. Thank you
I'm working on a Spotify App, but the Spotify application keeps crashing on me. I have been trying to debug my own Javascript code, to see where it goes wrong, but it seems a bit random. It almost always happens when my app loses focus (i.e. switch to another app). Is there a compatibility issue with jQuery perhaps?
Unfortunately I can't find any crash-logs or anything, for Spotify. Are there any?
I hope someone can help me along here, because this problem makes developing cool Spotify Apps as good as impossible.
Edit: To clarify, I'm using Spotify 0.8.8.450.gd9413514, on Windows 8 64-bit, but I've also experienced the same on Windows 7 and Mac OS X 10.6.
Using Windows 7, you can create a crash log by accessing the Task Manager, right clicking the Spotify process and selecting "Create dump file". If you're on Mac OS X, you can get a crash dump by opening the Activity Monitor, selecting the Spotify process and clicking 'Sample Process'.
I was having the same problems, It seems related to ads banner on the top. Run the ad video and pause it, that solved the problem for me.
I know I can set permissions of a j2me application before launching it ask first time or whatever for SMS, Read and Write. What I want to do is how can I access these options after launching the application from inside the app (no matter yet my app is not signed). I just want to get access to these permissions pragmatically, I tried to see few examples but they differ a lot, does anybody know about this? Thanks
Figured it out that it's not possible to get permissions settings inside J2me application, the best and only solution is to SIGN your application and on start it will ask for permissions.
I just can't figure out where Spotify stores the apps on linux. There is nothing (as far as I can see) in ~/.spotify or ~/spotify.
The docs only seems to care about Macos and windows.
Any ideas?
Spotify stores apps from the App Finder in its own encrypted internal cache.
If you want to develop your own apps, once you're flagged as a developer you should be able to create ~/Spotify and put your own apps in it. They won't appear in the sidebar - you need to manually access them by typing spotify:app:<appname> into the search field.
I am thinking about having the following use-case:
User installs application on local machine.
User goes to our website, and are presented with many links (choices).
User clicks on a link.
Application starts, with some information contained within the link passed to the application.
Step 4 is obviously a security minefield. The end goal is that the user makes a choice, and if the application is installed, it starts with some information passed to it (ie command line parameters, or perhaps a temp file somewhere on the user's machine)
Can I/ Should I access the registry from javascript? Are there any ideas about how I might go about this? Do you have an alternative suggestion?
Assuming the applications the user installs are also developed by you.
Register a file extension for use by the specific application - then your web links can be links to a file that is downloaded and auto-run by your app. The file could contain details on the defaults for your app to use.
Sort of like how clicking on a .pdf file opens your pdf reader.
As an alternative to the file-extension solution you may want to know about Custom Application Protocol feature. Link is for Windows but there are nearly same techniques on other systems. I can't say if this approach works in every browser but you may want to try it out.
Accessing the registry from JavaScript inside a browser is nigh on impossible for the security implications. To access the registry from the web, I'd imagine you'd have to use a binary (C++ or others) program that can read the registry, but also has an HTTP module to communicate with your server.
Sounds like you might need the Click Once deployement feature for your app. I think once it's installed over http there should be a pretty easy way to launch an executable.
http://en.wikipedia.org/wiki/ClickOnce