Posts Tagged by windows-phone-8
localStorage error on windows phone in phonegap application
September 19, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I got a weird error in my phonegap application that makes the application crash on windows phone 8. I use the localStorage plugin to store data in device. The problem occurs when I move from page1 to page2, I get the error and cannot access the localStorage data I just saved on page1. I can […]
What are the options available for the deployment of a windows phone application to 500+ company employee
September 18, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have developed a mobile application targeting the Windows Phone 8.1 platform, and am now looking at the options for its deployment to 500+ company employees. After quite a bit of research I’m still quite confused about the options available for deployment, and their processes/requirements. I’d be grateful if someone could explain some of the […]
How to port styles (like fontsize for TextBlock) from Windows Phone 8 Silverlight to Windows Phone 8.1 WinRT
September 17, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have an existing Windows Phone 8 Silverlight application with a lot of different styles defined for TextBlocks on different pages. I am now trying to port my entire project to a Windows Universal App, hence the Windows Phone 8 Silverlight project needs to be converted into Windows Phone 8.1 WinRT. I am able to […]
Windows Phone 8 GPS precise coordinates C# Silverlight
September 16, 2014 | Posted by forumadmin under TechQns |
Comments off
|
Hope I’m asking in the right place and the right way If anyone has links or directions, would be appreciated also. Shortly, I have a Windows Phone 8 application in Silverlight. Using Silverlight. What I want to accomplish: – GPS tracking – Precise location – Draw line between locations- tracking – Work in background (Even […]
Can you get IP adress for all devices in your network when connected to wifi Windows phone 8
September 11, 2014 | Posted by forumadmin under TechQns |
Comments off
|
So the question is, when using sockets and using DnsEndPoint you have to provied hostIp… Is there a way to find out all devices that use same wi-fi as your phone? Asked By – Nejc Lovrencic Read Answers 0
Jquery mobile data-icons are not showing on windows device. (Phonegap)
August 26, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am trying to build my first application on windows platform using phone gap. I am able to run my application but I’m not able to see any icon like back button, menu button icon in both emulator and device. How can we get the data-icons in page header. CSS: <script type=”text/javascript” src=”cordova.js”></script> <script type=”text/javascript” […]
Login with Windows Phone App over PHP
August 26, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have an server with mysql database and a table named Login with the columns: id, username, password, user_deleted, last_login. And I have a php script like this: <?php $_db_host = “localhost”; $_db_database = “login”; $_db_username = “root”; $_db_passwort = “1234”; SESSION_START(); $link = mysqli_connect($_db_host, $_db_username, $_db_passwort, $_db_database); if (!$link) { die(mysqli_error()); } if (!empty($_GET["submit"])) […]
Navigation Error in window phone 8
August 25, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have one application that has several pages; therefore, I want user to navigate to and back from one page to another with the some data sent back and forth. I could navigate to next page with some specific data by using NavigationService.Navigate(new Uri(“/All Files/Product Files/Product List.xaml?pro_cate_id=”+(lstb_prod_cate.SelectedItem as ProductsDry).DryCategoryId, UriKind.Relative)); On next page “Product List.xaml”, […]
Add Panorama Item to Panorama Page
August 22, 2014 | Posted by forumadmin under TechQns |
Comments off
|
By default when you setup a panorama page on windows phone it gives me 2 pages “item one” and “item two” and I can scroll between these pages. But when I try and manually add another page (item 3) it doesn’t scroll through a 3rd page instead it just sits on top of item1 and […]
Finding a UIElements true position when within a PivotItem
August 18, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I’d like to get the on-screen position and visibility of a TextBlock which is embedded in a PivotItem – e.g. the on-screen position and visibility of TB2 in: <phone:Pivot> <phone:PivotItem Header=”first”> <TextBlock x:Name=”TB1″ Text=”Hello 1″></TextBlock> </phone:PivotItem> <phone:PivotItem Header=”second” > <TextBlock x:Name=”TB2″ Text=”Hello 2″></TextBlock> </phone:PivotItem> <phone:PivotItem Header=”three” > <TextBlock x:Name=”TB3″ Text=”Hello 3″></TextBlock> </phone:PivotItem> </phone:Pivot> For other […]
Web API template and external authentication with WP
July 23, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have created a Web API template in Visual Studio 2013 and have deployed it to Azure. Initially I used standard authentication and sent a logon request like this; var logonString = String.Format(“grant_type=password&username={0}&password={1}”, lo.username, lo.password); var sc = new StringContent(logonString, Encoding.UTF8); var response = await client.PostAsync(“Token”, sc); I am now trying to figure out how […]
Implementing graphics for windows-phone silverlight game
July 20, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I need to implement a Snakes & Ladders board game for windows phone (8 or 8.1). There will be the classic snakes and ladders board map, but the graphics might need to change (frozen ladders if it is snowing outside, muddy spots on some of the tiles if it is raining etc) I need a […]
read the control that you touched in a longlistselector
July 18, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have a longlistselector to show a gallery of the projects that I have in my app. Every item of the longlistselector have an image of the project, the name and an image to share it in social networks. The problem is that I need know when I touch the share image to leave to […]
Bind Long List Selector to result of POST method
July 14, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I’m trying to POST data to server and get the response to bind it to a Long List Selector. This is the code : public class TestData { private string _LikeNum, _CommentNum, _HyperLinkTitle, _HyperLinkNavigationLink, _BrandImage, _PostImage, _PostDate, _PostTitle, _PostDescription, _PostID; public string LikeNum { get { return _LikeNum; } set { _LikeNum = value; } […]
Listening for server side events (text/event-stream) using Hammock in WP8?
July 1, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I’m trying to use Firebase REST Streaming, and I need to listen to server side events. I’m following this documentation: https://www.firebase.com/docs/rest-api.html#streaming-from-the-rest-api Here’s the code: public class NestAPI { private RestClient client { get; set; } public NestAPI() { this.client = new RestClient(); this.client.Authority = “https://developer-api.nest.com/”; this.client.HasElevatedPermissions = true; } public void BeginStreaming() { RestRequest request […]
Calling Rest WCF Service under RP in WP8 applications
July 1, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I’m trying to call a REST webservice who is under a Reverse Proxy. I’m sure that login, domain and password are correct. I use the HTTPClient portable lib. private async void bt1_Click(object sender, RoutedEventArgs e) { var c = new NetworkCredential() { Domain = “XXXXX”, UserName = “XXXX.XXXX”, Password = “XXXXXXX” }; HttpClientHandler h = […]
Problems with the authentication to a REST service use `HttpClient` from an `WP8` App
July 1, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am trying to conect my app with some Rest services that requires authentication and I am having some problems. I using the HttpClient class and it works fine with the services that do not need this authentication like the login or the signup. I think that the problem is that I need to specify […]
File upload control in windows phone8
June 30, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I cannot find any control to upload files in windows phone .Is it possible to upload files in wp 8.When we click it must open phone memory(where the document resides) Asked By – Arun.P Read Answers 0
problems with post request in wp8
June 28, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I tried to use this code, because it works in console application private static string POST(string Url, string Data) { System.Net.WebRequest req = System.Net.WebRequest.Create(Url); req.Method = “POST”; req.Timeout = 100000; req.ContentType = “application/x-www-form-urlencoded”; byte[] sentData = Encoding.UTF8.GetBytes(Data); req.ContentLength = sentData.Length; System.IO.Stream sendStream = req.GetRequestStream(); sendStream.Write(sentData, 0, sentData.Length); sendStream.Close(); System.Net.WebResponse res = req.GetResponse(); System.IO.Stream ReceiveStream = […]
LinkedIn integration for windows phone 8
June 27, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am developing an windows phone8 application in which I need to post a message on linkedIn. Here I can only get the Information of logged in user(First name, LastName). But unable to post any message. It is showing “Unknown Authentication Scheme” error. Below is the code Which i integrated. var credentials = new OAuthCredentials […]
best ad network for Windows Phone 8 developer
June 18, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am new to windows phone 8 and want to get some money from building apps and games. So what ad networks should i start with? Someone tell me should use vserv. So what is your opinion? Thanks for answer. Asked By – iexplore Read Answers 0
WP8 Project: The "CompileXaml" task failed unexpectedly
June 2, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I’ve reinstalled Windows on my computer, and after I open any Windows Phone 8 project in Visual Studio 2012 for Windows Phone, I get the following error message: The “CompileXaml” task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly ‘XamlServicesWP, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the specified […]
WP8 Project: The "CompileXaml" task failed unexpectedly
June 2, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I’ve reinstalled Windows on my computer, and after I open any Windows Phone 8 project in Visual Studio 2012 for Windows Phone, I get the following error message: The “CompileXaml” task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly ‘XamlServicesWP, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the specified […]
MSBuild failed to create .xap error
May 21, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am trying to build WP8 app with cordova, but I keep getting this error: ERROR: MSBuild failed to create .xap when building cordova-wp8 for debugging. Error: C:\Users\User\Documents\PhoneGap\hello\platforms\wp8\cordova\build.bat: Command failed with exit code 2 at ChildProcess.whenDone (C:\Users\User\AppData\Roaming\npm\node_modules\cordova\src\superspawn.js:126:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:753:16) at Process.ChildProcess._handle.onexit (child_process.js:820:5) Can’t seem to find the problem for this. I […]
Downloading XML from URL
May 11, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am trying to find a way to download an XML file on a windows phone which will later on be parsed to be used in a collection. Now I tried the same method I did with the WPF app which is: public void downloadXml() { WebClient webClient = new WebClient(); Uri StudentUri = new […]
D3D Graphics Diagnostics with DrawingSurface or DrawingSurfaceBackgroundGrid
May 8, 2014 | Posted by forumadmin under TechQns |
Comments off
|
Is there any way to use the Graphics Diagnostics tool (in Visual Studio 2013 Update 2 RC), with a Windows Phone XAML app that uses a DrawingSurface or DrawingSurfaceBackgroundGrid for Direct3D content? I am able to use the tool with a native app that renders directly with SwapChain’s Present(), but with a XAML app it […]
Binding data in TextBlock using Run endlessly like a paragraph in WP8
May 4, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have the following XML file which used to bind the data in TextBlock. <Guest> <list> <line index=”1″ name=”Red Riding Hood.”/> <line index=”2″ name=”commonly known as Red is one of the main characters of Once on a Time.”/> <line index=”3″ name=”Once a young.”/> <line index=”4″ name=”free-spirited girl who lived in a small village in the […]
Get dynamic hubtile name to create secondary tiles
May 4, 2014 | Posted by forumadmin under TechQns |
Comments off
|
When I was working with static hubtiles, I was creating the secondary tiles using a switch and cases, with every case to be the name of the hubtile. This line of code was getting me the name of the clicked hubtile: string clickedElement = ((System.Windows.FrameworkElement)(sender)).Name; and I could use it to create them. I’m trying […]
How to upload a video as chunks in Windows Phone 8
April 23, 2014 | Posted by forumadmin under TechQns |
Comments off
|
Here is my code to upload the video as chunks, but it is showing remote server is not found. public void Uploadvideo() { IsolatedStorageFileStream isoVideoFile = new IsolatedStorageFileStream(videoName, ileMode.Open, FileAccess.Read, IsolatedStorageFile.GetUserStoreForApplication()); if (isoVideoFile != null) { string FilePath = videoName; long Offset = 0; int ChunkSize = 2621; byte[] Buffer = new byte[ChunkSize]; try { […]
Entity Framework for Portable Class Library
April 5, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am trying to create Repository , Entity framework for Portable Class Library , when ever I try to Nuget EntityFramework it is Failed to add reference to ‘System.ComponentModel.DataAnnotations’. Please make sure that it is in the Global Assembly Cache. Any Idea to resolve this for EF Compatible EF package for Portable Library Asked […]
How can I suppress the login dialogue caused by the WWW-Authenticate header?
April 4, 2014 | Posted by forumadmin under TechQns |
Comments off
|
When a user is unauthorised to access a page, I send a HTTP 401. Additionally, as required by the HTTP/1.1 spec, I also send a WWW-Authenticate header. I know of at least 1 case where omitting this header causes an issue: Firebug (the Net tab will be empty). A user can log in with both […]
IBM Worklight 6.0 – WL.Client.reloadApp() not working in Windows Phone 8
April 1, 2014 | Posted by forumadmin under TechQns |
Comments off
|
We are using Worklight 6.0.0 enterprise edition and currently building hybrid apps for android, BB, Windows Phone 8 and iOS. We are currently getting the below error when invoking WL.Client.reloadApp() when clicking on a logout button. This works fine all OSs except for WP8. CordovaBrowser_NavigationFailed :: ///www/default/www/default/pages/www/default/pages/www/default/pages/www/default/pages/myaccount.html ERROR: Exception in InvokeScriptCallback :: An unknown error […]
Unable to catch Webservice call method within try catch block
April 1, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am developing a WP8 application. I created a web service on out-systems and then I am calling those web service methods in my app: ServiceReference1.WebServiceClient ws = new WebServiceClient(); try { ws.FetchInboxAsync(EmailId); } catch(Exception e) { MessageBox.Show(e.Message); } Now if the server is down, I expect the control to go into the catch block […]
Simple http request on WP8 on obscured
March 11, 2014 | Posted by forumadmin under TechQns |
Comments off
|
So basically I made it so my app runs in the background if the phone is locked using this PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled; PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; Then I created an event so when the application is obscured(the phone is locked) it would run doing the following. PhoneApplicationFrame phoneAppRootFrame = RootFrame; App.RootFrame.Obscured += RootFrame_Obscured; Now here is […]
Httpclinet getasync resetting cookies
March 2, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I’m working on a cross platform app targeting windows phone8, windows 8, android and Ios. The app needs to get some data from the internet and reuse the data accordingly. So I have a project with few classes inside. One class to Sign in to the website and get the required cookies for further use. […]
C# and links to JS functions
February 26, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I want to create an application for WP8 that shows the content of a web page. I’m not writing the code yet, but but i know that i can take the page content using xpath. My problem is that the content i want to take is not in a single page. I have to press […]
How to unselect selected row in LongListSelector in WP8
February 20, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I must say that I really dislike the LongListSelector in WP8 and like the toolkit version so much better. First it is not MVVM compatible so I found this code to make it so. public class LongListSelector : Microsoft.Phone.Controls.LongListSelector { public LongListSelector() { SelectionChanged += LongListSelector_SelectionChanged; } void LongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e) { SelectedItem = […]
Windows Phone TextBox raise command RaiseCanExecuteChanged on TextChanged?
February 19, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I have a text box and a button that’s bound to a property in my view model as follows <TextBox Text=”{Binding UserName, Mode=TwoWay}” /> <Button Content=”Log In” Command=”{Binding LoginCommand}”/> My UserName property: private string userName; public string UserName { get { return this.userName; } set { SetProperty(ref userName, value); ((DelegateCommand)(this.LoginCommand)).RaiseCanExecuteChanged(); } } The login command: […]
Windows phone 8 and Azure AD / ACS
February 7, 2014 | Posted by forumadmin under TechQns |
Comments off
|
I am developing a WP8 app, which requires authentication in order to get a token to call the web api backend. I don’t want to create my own account management mechanism, because it seems silly in our day and age to implement my own account repository. I am using Azure anyway, so I thought to […]
Aggregate data from child into parent for Binding
February 5, 2014 | Posted by forumadmin under TechQns |
Comments off
|
This post is completely edited to provide a more solid example and simplified ask I’m looking to have the results from Child changes be reflected in the Parent, particularly the field NumberOfChildrenWithDegrees. If you check both boxes with bindings of HasUniversityDegree and HasHighSchoolDegree then HasTwoDegrees in the Child View updates. What I would like is […]
Prepare data before go to the main view
January 18, 2014 | Posted by forumadmin under TechQns |
Comments off
|
When the user touch the app icon, I want do these steps before user go to the main view Fetch json string from URI Use JArray.Parse to get the value After all finish, go to the main view. The problem is how can I prevent user to go to the main view and put all […]
WP8 Databind button click/Command with RoutedEventHandler
December 20, 2013 | Posted by forumadmin under TechQns |
Comments off
|
Fairly new to Windows Phone and Xaml and I decided to start using the DataTemplates as it looked neater and I could easily switch them etc. I have a requirement where on a button click depending on the data on the item in the list I want to call a different function or with different […]
Why does the Synchronized method always return false?
December 13, 2013 | Posted by forumadmin under TechQns |
Comments off
|
In Windows Phone 8 (only on device!) try running this code: public MainPage() { InitializeComponent(); var myTrue = GetTrue(); Debug.WriteLine(myTrue); // false } [MethodImpl(MethodImplOptions.Synchronized)] private static bool? GetTrue() { return true; } You will see myTrue always is False! Why?! How it can be?! UPDATE: Tested on devices: Nokia Lumia 920, HTC 8X, Nokia Lumia […]
Deploy self signed XAP to windows phone 8
December 11, 2013 | Posted by forumadmin under TechQns |
Comments off
|
we developed an app for WP8 and wanted to distribute it internally via a download URL to the XAP file. Steps we have taken so far: Use Makecert.exe to generate a self signed XXX.cer with a XXX.pvk (with no password) Used Pvk2Pfx.exe to create a pfx file which includes the private key (with a password) […]
Windows Phone 8: Bluetooth packets stuck
November 28, 2013 | Posted by forumadmin under TechQns |
Comments off
|
I have connected an Arduino board with a Windows Phone 8 device using Bluetooth. The Arduino sends small packets (some bytes each) to the WP8 device: socket = new StreamSocket(); await socket.ConnectAsync(deviceHostName, “1”); dataReader = new DataReader(socket.InputStream); while (true) { // Read one byte int result = await dataReader.LoadAsync(1); if (result != 1) { return […]
After upgrading to Windows 8.1, unable to run Windows Phone emulator without memory error
November 2, 2013 | Posted by forumadmin under TechQns |
Comments off
|
After I updated my Samsung Series 9 SSD laptop with 8GB of RAM to Windows 8.1, (not even a year old, and top-of-line when purchased last november), I am now unable to run the Windows Phone emulator while debugging my WP8 app. The error messages I see is: “Not enough memory in the system to […]
LongListSelector and DataTemplateSelector
October 30, 2013 | Posted by forumadmin under TechQns |
Comments off
|
I’m using the LongListSelector to realize List or Grid display for my items. For this, I created a DataTemplateSelector and I change the LayoutMode property at runtime. This is working but there seems to be an issue with the DataTemplateSelector. If I initially launch the page, the DataTemplateSelector is called three times for my three […]
Unable to locate the resource in Windows Phone SDK
October 24, 2013 | Posted by forumadmin under TechQns |
Comments off
|
I am trying to do the setup for Windows Phone development in my System.I have updated my system with Windows 8 64 bit.Installed Visual Studio 2010.After that i have downloaded the Windows Phone SDK .Now when i am trying to install that in my system it is showing me the error that Unable to locate […]
Why does the SystemTray has a bottom border in WXGA simulator?
October 11, 2013 | Posted by forumadmin under TechQns |
Comments off
|
I wonder how I can remove the bottom border of the system tray in WindowsPhone8-App on WXGA resolution? Here is what happens on WXGA simulator: the small gray line does not appear eg in 720p emulator Asked By – malte Read Answers 0