Cortana to make phone call in Android through code - cortana

I would like to know on whether there is any possibility to call a phone number using cortana skill through code.
I am using microsoft web bot. I want to write code in c# for calling a person from my contacts.
I am using a luis framework, If user invokes a specific intent, i should directly call a specific phone number in my android mobile.
Is there any way i can make this call through code.?

First of all - if you want to add call functionality you have to implement it on your own because there is no ad-hoc way to invoke contacts book or make calls from Cortana.
This is also not possible currently because there is no Cortana SDK released for Android or iOS platforms to make integration. If it was there are development steps you could probably do in your mobile app source code (dedicated app because Cortana is also not integrated with mobile Android and iOS system):
Integrate Cortana with mobile app source code (in your case Java because of Android) which enables talking to Cortana and getting responses.
Implement code which handles response from the user about specific person to search in contacts book.
Implement code to search contacts book basing on the name of user told to Cortana.
Invoke platform-specific code to make call with selected number.
To sum there is no way to implement call functionality with C# and Cortana on Android (iOS neither). You can fin more information here.

Related

Show desktop notification from one windows app (WPF) to another using webservice call

I have created WPF app and installed in two different PC. now I want that when I click one button from app in 1st PC, then I should get desktop notification in 2nd PC.
So I don't know how it will be done. Whether I have to use WCF or not or anything else? If I've installed this app in multiple PC then how should I send notification to particular?
I've tried to use signalR but I didn't understand how to invoke windows form method.
The application will not be closed. it'll just minimized in the tray. so my idea is that we can invoke App method from using WCF and show notification.
I want this kind of notification for my app but from webservice:
You can use self hosted WCF like here:
https://msdn.microsoft.com/en-us/library/ms731758(v=vs.110).aspx
Use net tcp binding, it will not require administrative rights.
Also there is a need to maintain a list of addresses/hosts of the PCs where your app runs. Then according to some logic you have there, choose the one that should show your notification.
You can also use a central app that coordinates, it may be a web app. Then signalR can be helpful. It becomes like a standard chat app... google can find you plenty of implementations for that.

How to Ensure Installation of Mobile Web App on Device Only?

I'm working on an AngularJS mobile web app and am getting ready to deploy to Firebase Hosting. Does anyone know how to ensure that only devices can install the web app and prevent desktop browsers from viewing? I'm trying to protect the client's intellectual property as well as my own by making a reasonable attempt to disallow the source code from being read. Thank you!!
It's not possible to prevent the reverse engineering of any web application.
Developing a mobile application using native code may make you feel more secure about the intellectual property, however once a would be attacker gets the software on to their own hardware they will have the opportunity to defeat your software.
I wound up using ng-device-detector to determine whether the user was using a mobile device or not, and delivering a different template page depending. This library contains an isMobile() function that works great.

Does codenameone support activity detection which uses CMMotionActivity (IOS) and Google Play Services ActivityRecognition API (android)?

Being a Java developer, i am super excited to use codenameone for an app that I am planning to write from scratch. But would like to know if codenameone supports activity detection which uses CMMotionActivity in case of ios or Google Play Services ActivityRecognition API in case of android ?
Particularly, my app would like to receive events when the user is stationary, walking, running, cycling, driving/automotive etc. Also, if i can fine tune the battery usage settings in case of location services subscription as provided by Google play services location apis, that would be great.
I hope i wont get disappointed. I was planning to learn codenameone and use it in my app only if these above features are available
I'm afraid they aren't available out of the box. However, Codename One is very flexible and you can use native interfaces to expose these features by invoking native code.

Using GAE channels without browser

I want to write GAE based application that synchronizes information between computers/phones. Right now I am only querying periodically, which causes delays or requires user to click a button to refresh manually.
With GAE channels, it should be possible to do it this way that a device can be notified when it should refresh. However, since I want it to be a desktop app (not web app), I am wondering if I can write my own client to channel API? Or grab whatever's out there.
Is the protocol documented or are there clients available for anything other than JS?
The only official interface is the Javascript client library. Although you could reverse-engineer how it works, since it's not a documented part of the interface, it could change at any time without notice.
If you're interfacing with Android phones or iPhones, each of them has a 'push' messaging API that you could use (Cloud to Device Messaging for Android, and Push Messaging for iPhone).
There is now a Java implementation for the Channels API. It was just released days ago and is available via git at https://github.com/gvsumasl/jacc. I've also taken the liberty of forking it and providing a mavenized version at https://github.com/hatboyzero/jacc.

Send status to Facebook from Windows phone 7 silverlight application. What do I need?

How do I perform this?
I'm making a funny little notepad application where you should be able to send your notes to your Facebook account, as a status.
My question more directly is: Where do I find code so I login to "Facebook-write status page"?
And how do I implement it in this silverlight application? Can I use html/Javascript for this maybe?
There is a project at http://facebooksdk.codeplex.com/ which lots of people have used to integrate Facebook functionality into their Windows Phone 7 apps.
You don't need to use javascript or html for this.
Facebook has an API that you can use by sending web requests from your application to facebooks servers. The process is not straight forward, so you should check out the documentation here: https://developers.facebook.com/search?q=API
There is an open source C# based API available here: https://developers.facebook.com/blog/post/395 It may be easier to use than doing web requests yourself.

Resources