Message app in BlackBerry 10 - c++

I am developing one message app which should get the messages from native message application and want to store it in my app's database .
I tried to refer official docs but not getting how to do this ?
Can anyone tell me the solution ?

I believe you will need to access the data through the BB 10 NDK's system using the MessageService class. At least this is the closest i could think of if i understood your demands. See https://developer.blackberry.com/native/documentation/cascades/device_platform/pim/messages.html

Related

Web service to interact with running electron app

I looking for some advice on the best way to set up a project. Not sure if this is the right place to ask but I will give it a go.
I am looking to create a "Smart Mirror". I know there are options already available for this but I want to go through the process of creating my own.
I have created the UI using electron and I am using this on a raspberry pi 3b+ using raspian stretch.
Now this is where my knowledge is lacking, due to no experience and not sure if what search terms to look for.
I would like to create a plug in on Chrome(used on my mobile phone) or a process that runs separately, to say "Send page/video to Smart Mirror". What I envisage is that this plug in will copy the URL for the page or the video and send this via a web service call. The running electron app on my raspberry pi will receive this call and process the URL and then display the page/video within a portion of the application.
I have only ever consumed a web service from within an application.
I am not sure how to set this up. Can my electron app be set up to receive this call? If so what search terms should I be looking for?
I hope this makes sense.
Please let me know your thoughts or if I am thinking about this all wrong

sending simple int from UWP app to another program

I'm lost at a seemlingly minor problem. I have a UWP app from windows samples, which counts the faces detected by the camera. I want that app to send that number to another program. I've tried doing it by clipboard, however as the other program is constantly checking the clipboard it wouldn't work.
Then I thought of a simple socket connection but I can't seem to get it working in UWP as all infos seem to be in C# not C++.
Can someone gimme a hint how to send a single int over a tcp socket to another client?
Or any other suggestions how to achieve that?
I'm really desperate...
thanks in advance.
In UWP, app services are the standard way of communicating between apps. You need to create an app service in the source app then consume the service in the second one. The app service also can be consumed by non-UWP apps.

Accessing Push Notification on Windows Phone 8 from C++

I am working on an application for Windows Phone 8, and checking the push notification interface. I have found in the documentation the different steps to do it, but I have only found that on the .NET documentation how to create a notification channel and obtain the URL to push the notifications (here [1]), but I can't seem to find it how to access from a C++ application (I am checking here, on Windows Phone Runtime API [2])
Is there any way of creating a notification channel (to be able to send notifications to the app) from a C++ application. If not, the only solution is to create a .NET application? Or there is any way of circumvent this?
Thanks
[1] http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.notification(v=vs.105).aspx
[2] http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207212(v=vs.105).aspx
According to Microsoft, the answer right now (May 2013) is NO. Only C# applications can use these features.

Web interface for a C++ program

I am developing a project for the end of my studies. This project is basically acting as a server, is cross-platform and developed in C++.
I was wondering if it was possible to make a web interface that could be used like for instance the listener design pattern to log what the program does. This would be cross platform, and is ideal since the program is supposed to run on a distant server.
My question is: is there any web technology to could let me update my web page live when the program logs something. I know this is something unusual and I'm not an expert in web technos, that's why I am asking.
Would Erlang do it ?
Thanks for your help
EDIT: To give a more concrete example, I would like to be able to follow the execution of my program live and see the logs of my program appear on the page. The idea would be to use a web page like I would use WPF on Windows or GTK on Linux for instance. Like someone said, it would be some kind on monitor for my application.
It's much easier than you might think. A web server basically gets a request as a path name, and returns a page. If you set it up correctly, it will invoke a program to create the content. This is called "CGI".
If you can do it without live updating, it's then super-easy: just refresh the page and your program can be called again.
If you want live updating, you'll need to do a little more. The easiest way is with a little lightweight javascript. The magic word here is AJAX. There are a number of tutorials on line for both of these, just google.
The main thing is to start with a very very simple example and add to it. Javascript in particular is a little peculiar; follow the tutorials, though, and you'll get it.
You can embed a web server such as http://code.google.com/p/mongoose and poll it using xhr or better use websockets.
Or use a monitoring solution such as Nagios (Nagios Core is free).

Rails WebService and C++ application to expose

(Sorry for my english)
First: I have an application created using C++ (this is for performance needs), this application uses an image to make some processing and returns a simple answer (1 or 0 ).
Now I need to expose this application from a webservice.
I think to create a webservice using Rails, but I don't know if it's possible using rails to call the C++ process..
The idea is to use the webservice to get an image sent by a client, pass this image to the C++ application and return (using the webservice) a message to the client, based on the result of C++ application.
Is this possible?
Any example or guideline?
Thanks in advance
EDIT: Solved using Thrift thrift.apache.org
I read something about Thrift .. but i think maybe i can't use to solve this problem (maybe) ..
The idea is use a mobile application (iOS and/or Android) where the user can upload an image to the service. The service take the image and make some image processing, this part (the processing) was written with C++ as standalone application that receive an image and return a message, so when the processing is done, the service receive the result (a message) from the processing app and return this to the mobile application.
So.. is this possible with Thrift (if so, i need to read more)? o i need to use something else?
Thanks in advance
I have never done that before, but I think you should take a look at Thrift which was initially developed by Facebook and allows you to make multiple languages work together via RPC calls.
Thrift allows you to define data types
and service interfaces in a simple
definition file. Taking that file as
input, the compiler generates code to
be used to easily build RPC clients
and servers that communicate
seamlessly across programming
languages.
I encourage you to search on Google with the following keywords : thrift C++ rails webservice etc.