I'm new to windows phone 8, and I was wondering if there is a way to have control over the calling function. For example, I'd like to be able to stop a call when it is a certain number, and be able to save a list of "spam" numbers in a list. Code isn't necessary, I was just wondering what namespaces to start from.
You cannot do that in the windows phone.
Related
I create universal project type in vs 2013 for 8.1.
In windows phone project i added reference to WriteableBitmapEx via nuget. In references i see WriteableBitmapEx.WinRT. I write code which creates WriteableBitmap from content (use image in project with Content and Dont copy properties). Next i create Image and set source to WriteableBitmap and add image in LayoutRoot grid. In emulator i see this image, thats ok!
Next i call DrawLine method from WriteableBitmap and call WriteableBitmap.Invalidate().
I dont see my line...why?
1) Why reference name ends with .WinRT, is this normal?
2) Why invalidate method not work?
NOTE: in windows phone 8 project (not universal) all works properly! And reference name not ends with .WinRT.
Help me please!
As already said in my comment, I had the same problem. After hours of confused searching, I finally found this trivial reason:
For universal apps, there are actually two projects: MyProject.Windows and MyProject.WindowsPhone. You need to add the nuget package for both of them (they have separate references) and everything will work.
I have a windows phone application in which two listpicker and one listbox in a form.
When i press a window start button or close the application and again start the application it does not retain the previous filter value can anybody give a solution .
Thanks
Try using the Application Settings of Isolated Storage where you could store and retrieve the values.
Check out this sample:
Store and Retrieve Application Settings Using Isolated Storage
Or else you could preserve the state of the page:
How to preserve and restore page state for Windows Phone 8
In your App.xaml.cs file are two methods: Application_Activate and Application_Deactivate. In the deactivate function you have to store the current filter in the isolated storage, in your activate you have to load them.
In your page.xaml.cs you have to use the loaded informations in the OnNavigatedTo function.
I want to call Sub Statement from another pages (XAML) in windows phone 8.1 / windows 8.1. When I want to use code such as:
Call NamePage.SubStatement()
Its don't work.
How can I do it?
Thanks.
I am not sure exactly what you are trying to do but if you make a function static in c# or shared in VB you can access it by the ClassName.functionName
I have developed one Windows Phone 8 app using VS12. I am currently testing it on emulator. I want to forward this project for further testing. So, my question is how to create a package of same.
Thank you.
the package is in your project, path like this: ProjectName\Bin\Debug(or Release)\yourAppName.xap, you can get the xap file in this path.
In case we talk about Windows Phone 8.1 (not 8.0) the way to go is different. Open your solution in Visual Studio, then click the project with your Windows Phone code.
Important: you must have the project as "blue-selected", i.e. focused. If your Solution Explorer widget lost the focus and the project is "gray-selected", nothing to appear in the menu as enabled item.
Then, having the project selected and focused, immediately go to main menu: Project -> Store -> Create App Packages
I'm playing with the Windows Phone 8 API, specifically with the accelerometer. I don't have a device to publish to, so I'm using the emulator to test my app.
I'd like to simulate knocking the phone, to simulate an acceleration greater than 1G.
I'm calculating the total acceleration like this:
private static double CalculateGForce(double x, double y, double z)
{
return Math.Sqrt(x*x + y*y + z*z);
}
Can I achieve this using the emulator? When I drag the red ball around, I never get G > 1.
The Windows Phone emulator comes with a single set of 'recorded data' called Shake. One idea might be to create your own set of recorded that gives the desired g-force.
Here is a post on how to find the original code for the Shake data, make a copy, then edit/delete/add the values to get the desired motion.
For Windows Phone 7.1
C:\Program Files (x86)\Microsoft XDE\1.0\sensordata\acc
For Windows Phone 8
C:\Program Files (x86)\Microsoft XDE.0\sensordata\acc
And as the post mentions, 'offset' is the time between changes so you'll want small offsets and larger changes between sets of X,Y,Z values.
<AccData offset="1" x="-00.08400000" y="-01.02100003" z="-00.41700000" />
<AccData offset="5" x="-00.14200000" y="-00.95099998" z="-00.39700001" />