i am trying to implement Bing Map in my windows 8 application. I have installed sdk from
here
and configured my application as defined in
Code Project.
but still I am getting errors like:
The specified procedure could not be found. (Exception from HRESULT:
0x8007007F)
I had the same problem. apparently there's 2 different Bing Maps SDK's available.
I had the SDK for Metro Style Apps which wouldn't work.
There's another one called Bing Maps SDK for Windows Store apps, which can be found here.
I was following this tutorial too, which helped me get the Map view working.
Install an extension to visual studio. It should be provided with SDK. That add Bing maps by reference to your project (sometimes you need to restart VS). After that in your toolbox you should have Map element available
Related
I am developing Chat application push notification using PubNub. I used pushnotification.js file in my Mobilefirst project as per the direction from
https://www.pubnub.com/blog/2014-12-18-sending-android-push-notifications-via-gcm-javascript-using-phonegap/
But i am getting the "ReferenceError: cordova is not defined" . How can i solve this issue in my MobileFirst Project?
Please suggest
You are not explaining at all(!) the steps you have taken in order to set this up. I am not sure what kind of support you're actually looking for with such a question.
What I Can recommend you to do is to NOT use a Hybrid app for this. Instead, assuming you're using MobileFirst Platform Foundation 7.1, you can use the "pure" Cordova application type (instead of "hybrid" from MobileFirst Studio). With this application type you will be able to more easily follow the instructions provided in that page.
This is because plug-man is not supported by Hybrid apps to install Cordova plug-ins, making it very difficult to get things working.
So go ahead and follow this tutorial first: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/foundation/hello-world/integrating-mfpf-sdk-in-cordova-applications/
I want to build a a simple Sencha Touch-2.3.1 application generated by Sencha CMD to run it on
Windows 8.1 Microsoft Surface Simulator.
1-I opened Visual Studio (2013) and created a new JavaScript Windows Store project.
2-Copied the generated Sencha Touch app files to my project.
3-Changed the start page from default.html to index.html.
I then ran it on the simulator, but the application hangs at the blue loading screen with white dots. I opened the js console and found nothing in the log.
Is the approach wrong from the beginning? Sencha Touch team Assume that they support windows 8, but I'm unable to find any documentation illustrating the building procedure.
If any further info are needed let me know, your contribution is highly appreciated.
The issue is the Windows 8 content security policy (CSP).
I have answered similar posts before, in addition to a few blog posts I've written (specific to Ext JS, but the same principle):
Creating Windows 8 Apps with Ext JS
First Thoughts on Windows 8, Visual Studio, and ExtJS
In short, neither of the Sencha Frameworks explicitly support the Win8 CSP... but with a little bit of hacking you can get it to work just fine.
I tried finding the information both on their website and on the Internet, but it appears that everywhere I look, a different list pops up.
Their front page says iOS, Android, Windows and Mac.
In their documentation (http://docs.xamarin.com/), only Android iOS,
Mac are mentioned at the docs front-page. I'm wondering does this
mean Windows has lesser priority compared to others.
On the Internet, I've found even more inconclusive information. Also,
it's hard to conclude what Windows means, mobile or desktop.
I've never used the product, but would love to try it for the game that I want to create, so I have two questions:
Can you give me a complete list of supported platforms (Android, iOS, Mac, Windows, Windows Phone, HTML5, Flash...)?
Can I target Facebook app with Xamarin?
Thanks in advance.
To update and extend Jason's answer there is now Xamarin.Forms that let us build cross-platform GUI for Android, iOS and Windows Phone. Looking at Xamarin's FormsGallery sample app I think it is fair to say that it de facto supports Windows Phone as well.
In addition to Xamarin.Forms there's always the possibility to use Xamarin.iOS, Xamarin.Android and Xamarin.Mac for platform customizations.
Xamarin.Mobile is in a preview release and supports Android, iOS and Windows Phone. It is used as an abstracted API of the native services (camera, geolocation etc).
However since you need the local SDK's installed for compilation you need a Mac computer to be able to deply for iOS. In order to compile for Windows Phone you need to use Visual Studio and the Xamarin Plugin, Xamarin Studio is not able to do this.
To conclude Xamarin supports development for
Android
iOS
Windows Phone
Mac
However not all of Xamarin's API's are implemented for all platforms.
Xamarin has three products
Xamarin.iOS - write iOS apps using C#
Xamarin.Android - write Android apps using C#
Xamarin.Mac - write Mac desktop apps using C#
Xamarin does not directly support Windows Phone apps. However, because you can write iOS and Android apps in C#, and C# is the native language for Windows Phone, using Xamarin allows you to write code that is usable across all three mobile platforms. Xamarin also provides some tools (like their Xamarin.Mobile library) that make this easier by providing a common interface to some common platform functions that will run on all three platforms.
You can write a mobile app that uses Facebook's API with Xamarin, but you cannot create a Facebook app (one that runs on Facebook).
You may find the actual list of additional platforms here.
On April 2019, it's listed as:
Android (incl. Android Wear)
iOS (incl. watchOS and tvOS)
Windows (UWP and WPF)
Linux (GTK)
Mac
Tizen
Windows Phone not supported since Xamarin 3.x
I want to use dojoToolkit in my project. But when I include it with Ti.include('dojo/dojo/dojo.js') I have got a error message "defineAlreadyDefined". Titanium has method called define in global namespace and there is method with similar name in dojo. Also there are some other methods with similar names (for example, required). How can I use it?
P.S. I build my project for web
Dojo as is will not work in Titanium. Dojo is a browser toolkit, not a mobile toolkit, it accesses things that are only for the web.
But, this guy ported it over to work with titanium, try it instead.
I would like build a app using sproucore framework, but i also want to integrate it with Titanium to have some desktop capability like file system, packaging, offline working etc...
I know that with sproutcore 2 this would be pretty easy since it allows to use the framework like a normal javascript library. But the project is still in beta and the docs are patchy at most (I consider patchy even the 1.x docs, actually).
So, I want to ask, which would be the best way to go to integrate sproutcore and Titanium API?
Titanium's main mission is to use JavaScript to build native apps, not to provide a OS-access layer for web apps. It would be hard to mix native and SproutCore UI elements.
That being said, here's some information that might help you:
Titanium has reversed it's application model starting with version 1.0:
http://developer.appcelerator.com/question/71/what-happened-to-html--css
The main app doesn't run in a web view anymore, instead it runs directly in JavaScriptCore and creates only native UI elements. One of the native UI elements is a web view
(http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.WebView-object)
and it's possible to make that full screen and run your SproutCore app inside of the web view. From there, you can call out to Titanium to call Titanium methods for file system access and the like.
Also, if you only target the desktop, you could even access the JavaScript context object of a webview and use it directly in JavaScriptCore.
Johannes