Phonegap 3.2 windows phone 7 - External url - windows-phone-7

I want to launch the app with an external url of my site(have a mobile site, web application). Let's say cnn.com. Had a look at
This post
When I do it all it tells me is :
Adding feature.value=Globalization
Adding feature.value=InAppBrowser
Adding feature.value=Notification
GapBrowser_NavigationFailed :: http://cnn.com/
Can anyone point me in the right direction. What am I doing wrong, the exception doesn't have lot of info and looking at other forums doesn't look like its cors issue.
Thanks

Open up the WMAppManifest.xml in the Properties folder and if you are in Visual Studio you will see three tabs. Check that on the Capabilities tab you have ID_CAP_NETWORKING checked.
In addition you may need the following in your config.xml:
<access origin="*" />

Related

Can't change the header of Hub control in Windows Universal app

I'm having problem with changing header of the Hub Control in Windows Universal app. I'm attaching screenshots so you would be able to see how it looks like.
As you can see at screenshot I changed header text to "Test Header" in XAML and I can see all changes in VS Designer. Problem is when I compile the app and deploy it on device or emulator because than header still contains default text "application name"...
What am I doing wrong?? I tried to creat new project, I was searching for "application name" string or some binding in my project but with no luck... :( Please help guys because I'm struggling with this for a few days now and I have no idea what to do.
Thanks in advance! Regards!
Remove the x:Uid="Hub" from the Hub control.
<Hub x:Name="Hub" Header="Test Header"/>
That way it won't redirect all your strings to the Strings\en-US\Resources.resw file (it is part of the shared project)
If you want to keep it in, then just edit that file and rename the key to anything you like.

API KIT Console in Mule not showing any Output

I tried to look through all the tutorials for RAML and I was pretty excited.
I found most of the online resources available but I could not understand why, when i set up everything and the flows are generated, then i run it locally as a mule application, when i point to localhost:8081/api/console/ i get a huuuuuuuge json response, but not the UI described for example here.
Yes i also faced the same issue with Any Point Studio. It is not at all displaying in the API KIT Console present in Any Point Studio. But to feel good and to see the output i have just tried it with Google Chrome Browser and i got the expected User Interface as i was expecting from API KIT Console. Hope this issue will be fixed from next release onwards.
Here is the URL i used to see it on Browser : http://localhost:8081/remote-vending/api/console/
Here is my output from Google Chrome browser for the API KIT Tutorial
My GUI didn't show in the Anytime studio tab: APIkit Consoles, one way to fix this:
make sure you have started your application
right click for the context menu
select encoding
click auto-select
I have had the same problem and resolved it by removing invalid whitespace. One of the example files I was including had an invalid trailing space.
The way I found out;
Open the Network panel in the Developer Toolbar in your browser
Go to http://localhost:8081/api/console/
Find the response for a request to '/api' with the request header 'Accept:application/raml+yaml'.
This response should contain the fully compiled RAML, where all include files have been included.
Copy this entire content into a new RAML-file in Anypoint Platform API Designer or some other YAML editor with error reporting.
It highlighted the invalid whitespace immediately for me.
It should work Out of the box.
It could be a bug of an earlier version.
Could you check the behaviour in more recent releases?
Changing my default browser from Firefox to Chrome resolved the issue for me.

Use ApplicationBar Icons from other assemblies?

I have a Page in a Windows Phone class library. This page has an appbar. I would prefer everything this page needs to be included within the class library so the setup list for consumers of this page / assembly is minimal.
However, When I set ApplicationBar icons, they get added to the class library project under the folder 'icons' just like normal, they show up fine in Blend, but at runtime they are no where to be found!
When I put the icons in the Windows Phone Application project all is well. However this is not my desired scenario as it is additional configuration / setup by the application author to use my pages.
I tried using the resource pathing using /{AssemblyName};component/icons/{IconName} but of course the AppBar needs them to be of type "Content" not "Resource". So I am thinking this is impossible but I wanted to know if anybody out there figured out how to do this.
Sorry guys. I just figured it out. I changed the newly added icons from "Resource" to "Content" but I forgot to set "Copy if newer" so they weren't getting outputted to the Bin\Debug\icons folder of the windows Phone Application. something to keep an eye on I guess.

Error 2104: Could not Load Sivlerlight Application

[The 2104 error has now "magically" disappeared and I don't know (yet) what changed - so please don't spend time on this. I will post back if/when I figure out what caused the original problem.]
Running SL4, Win7, VS2010 SP1 and this problem occurs while debugging the app(s). I have two distinct SL apps (projects) and they are in different VS2010 Solutions. I'm using the default debug web server (Cassini?). App #1 contains a hyperlink to App #2, but when I click that hyperlink I get the subject error message.
App #1 is also a SL4 app and the linking is done with code in a handler:
System.Windows.Browser.HtmlPage.Window.Navigate(uri, "_blank");
I've checked the uri in the debugger and it looks right. Identical code in another handler works OK (linking to a different target.)
App #1 is hosted on localhost:45621 while App #2 is hosted on localhost:55562. App #2 web server is already running at the time I click the hyperlink in App #1. Also, If I take the URL associated with the hyperlink that is clicked and simply paste it into a fresh browser address bar then App #2's SL page opens without problems.
I have clientaccesspolicy.xml files for both Apps:
<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
I'm at a loss as to how to troubleshoot this at this point and would appreciate any suggestions as to what the cause might be -- or how to further isolate the problem.
Thanks in advance,
Bill
please confirm if what I understand is your setup:
Web project #1
Html Page
<a href="page in other project"...
Web project #2
Html or Aspx page
Your silverlight application is here
Well.. did the testing with two solutions and, even with no clientaccesspolicy file (because I think Silverlight is the one restricted but the HTML page is not, I got the second Silverlight project opened twice no problem.
Try to do it from scratch and see if still get that problem.

How to create Custom Spalsh screen while Silverlight downloader download Application Library Cache files?

I have created a sample application suing Application cache, My some files are located on server. its working fine. But Now I have added appx 10 MB ZIP file and now want to downlaod, Silverlight downloader show 100% in xap download and then no progress show just circle appears.
I have tried the http://pagebrooks.com/archive/2009/02/19/custom-loading-screens-in-silverlight.aspx same and its working fine for XAP only. But I need it for "Application cache" files downloads
So is there any option to create my custom UI to show it at that time.Please let me know,
Thanks in advance,
Laxmilal Menaria
There is a Silverlight TV episode dedicated to a custom preloader... start from here...
http://johnpapa.net/silverlight/customer-preloader-silverlight-tv-006/
And see also this post:
http://elegantcode.com/2010/03/05/creating-a-custom-silverlight-pre-loader/
HTH
EDIT:
OK now I got you. This seems like an open topic.
A solution is to provide your own logic:
this is a good blog post by tim heuer
http://timheuer.com/blog/archive/2008/09/24/silverlight-isolated-storage-caching.aspx
Otherwise look for MEF and dynamically load XAP's (this would be my recommended way, too)
Because you got way much more control
check out these article
http://www.codeproject.com/KB/silverlight/MEFDynamicLoading.aspx
http://www.davidezordan.net/blog/?p=1734
and gblock the mef master himself
http://johnpapa.net/silverlight/silverlight-tv-11-dynamically-loading-xaps-with-mef/
This open's even possibilities to cache, load on demand and split up you app in portions...
Hope I got you right this time...

Resources