I am currently trying to figure out what a SmartEyeglass really is and where it runs.
If I understood the documentation correctly, a SmartEyeglass app is always packaged as an Android application. That's why it consists of an Android manifest and an Activity. Sony provides the SmartEyeglass API to access the sensor data, handling events and define the SmartEyeglass specific user interface in the form of a control extension. A SmartEyeglass app is not a set of activities like a normal Android application. Instead it is bootstrapped using a Broadcast receiver and a service which starts the control extension.
A broadcast receiver registers on SmartEyeglass events and triggers the SmartEyeglass App service. The service starts the SmartEyeglass App.
Where does the SmartEyeglass run? Does it run on the SmartEyeglass or is it executed on the Android smartphone? It seems like it runs on the Android smartphone and sends remote commands to the SmartEyeglass over Bluetooth. On the SmartEyeglass run a customized Android and a Content Provider to access sensor and event data. Is that right?
What kind of role play the SmartEyeglass Android app and the SmartConnect app in the communication between the Android smartphone and the SmartEyeglass?
If I understood correctly the SmartEyeglass Android app is like a proxy to the SmartConnect App on the same device. The SmartConnect App communicates with the SmartEyeglass.
It would be nice to know what happens when I press the Swipe button within a SmartEyeglass application. I think:
The SmartEyeglass registers the event and sends the event to the SmartConnect app on the Android device
The SmartEyeglass app on the Android device is informed about the triggered event. It finds out which SmartEyeglass App fired the event and sends the event to it.
The event can now be handled within the app by implementing SmartEyeglassEventListener.
Thanks for your help in advance!
The Sony SmartEyeglass run on the Android Host Device. That's why you can't run any SmartEyeglass app without a paired Android smartphone.
Related
I have a Django application that loads a React app on a child page. Is it possible to use the ionic Capacitor with this setup?
Yes, you can. Ionic allows you to build iOS, Android and web apps with a single codebase, and Capacitor enables access between your application and the device the application is running on. Therefore, you can build either a web or mobile application that consumes your Django APIs, similar to what your React app is currently doing. You can learn more at https://capacitor.ionicframework.com.
Im developing a software and im considering it as a Service because i need it to listen to ports 24X7 and notify when new client got connected(Toast Notification). I was able to send Toast notification from classic Win32 c++ application but i can't send it through Windows Service even when i check 'Allow Service to Interact with UI'. What do you think about the software Architecture?! Do you think i should reconsider the software Architecture or there is any other way to send Toast notification through Windows Service?!
"Allow Service to Interact with UI" only has an effect until XP. Up to then, the first user logged in runs in Session 0, the same Session that services run in. But from Vista onwards, Session 0 is now isolated, users run in Session 1 and higher only, so services can no longer interact with users.
When you want your service to display a toast, have the service use CreateProcessAsUser() to spawn a separate process in an available user Session (plenty of examples floating around demonstrating how to do that), and then that process can display the toast as needed.
I have my Django Web app and I want to make a mobile version but it will take me a while, so, I would like to know if it is possible to send push notifications to the mobile phone (either Android, Apple) from the webapp.
The client will run the website normally from the phone and I would like to send a notification when the process made is finished. How can I achieve that ? Do django signals have the effect of push notification ?
Thanks
You can connect QuickBlox to your app and that would be a way to go.
Here's the tutorial for iOS: http://quickblox.com/developers/SimpleSample-messages_users-ios
And this one is for Android: http://quickblox.com/developers/SimpleSample-messages_users-android
Hope that helps.
We have developed a network based C++ application that should run as a service for Windows XP, 7 32-bit system.
The application is console based.
User should be able to see the logs in console once the app is up and running.
To make application run as a service , we used XYNTService
The application is working as a service and it works fine under XP.
But I am not able to see the console under Windows 7, Since the service is running under the local SERVICE account, probably we can not see the GUI or access it in any way, because it is running in another winlogon session.
So can some one please suggest how can we make the service interactive so that user can see logs on the console while the app is running as a service?
Else
What if I make it a tray based application, is there a way to redirect logs a window?
Actually you can subscribe to logon/logoff events and then use WTSEnumerateSessions with CreateProcessAsUser to create GUI each time user logs into system, however it's not a good choice.
Making a tray app that automatically runs when user logs into system is better idea, you can use any of IPC mechanisms (named pipes, shared memory, sockets) to sent logs from service to tray app.
Say, I have a Windows service application and also windowed client applications running in each logged on user session. If I call RegisterWindowMessage in each client app and try to trap that message there. And then also call RegisterWindowMessage with the same message name in the service app and then use it in a call to SendNotifyMessage again from the service to notify each client app of a single-fire event, will that work?
PS. I program using C++/MFC and native WinAPIs.
If your service application is running under the system account it cannot send messages to the user account's application.
Your can try the following approach:
Go through all the sessions (WTSEnumerateSessions) to get all
WindowStation,
Open these stations (OpenWindowStation),
Per station
Associate your process with the station (SetProcessWindowStation),
Go through all station desktops (Enumdesktops),
Go through all windows (EnumdesktopWindows) until your found one of your
application's window
You probably will have issues with UAC though.