restrict the windows phone app for specific devices -
i want application should work on specific devices\os "lumia 650"\"windows phone 8", project requirement.
is possible ? if yes should mention details ?
it not problem restrict windows phone 8. need build targeting windows phone os 8.0. device model in app.xaml.cs
private void application_launching(object sender, launchingeventargs e) { var devicename = deviceextendedproperties.getvalue("devicename").tostring(); if (!devicename.contains("lumia_650")) // please check phone's actual value application.current.terminate(); }
if want show friendly message before exits can move code mainpage.xaml.cs add messagebox.show(message) part.
Comments
Post a Comment