I am developing a desktop chat application in JavaFX. I want to show notification to the user when application is minimized like skype shows that.Is there any way of doing it? I had tried System tray of java but it was not working for Ubuntu. Any help is appreciated.
You should take a look at ControlFX Notifications component. I think it's exactly what you are looking for.
For anyone coming to this question in 2020, here's a stab at showing native OS notifications working with JavaFX:
https://gist.github.com/wiverson/d2edf0d66ad195c96793d0d25290753b
As noted in the sample, OS native notifications are best if the app is in the background - use ControlsFX notifications if the app is in the foreground.
This works on macOS Big Sur, should also work on Windows. Not sure about Ubuntu.
Related
I started a project of a windows program that connects to an android phone and gives the user information
about it, so I want to display all of the popups that appere on the phone. to do this I need the app version of the program to catch them somehow and give me the name of the app that sent the popup and the popup's contant. is it possible?
it would be kind of security issue if any app could do that... you can try with AccessibilityService with some permissions for reading screen/running Activities and checking style of every Activity is this "popup", but note that some of them are just DialogFragments. So I doubt you can recognize "popups" this way in a reliable way. Look for AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED for more info
I am automating my android app through Appium in Emulator. During the test case run, i want to capture all operations performed in the emulator into a video. How can i do this?
As i want to deal with programmatically, are there any APIs supported to do this?
Is there any methods to do this using Java?
I heard that we can record for Android real devices(adb shell screenrecorder), but not for Emulator.
Can someone please help me on this?
Thanks,
Uday
You can consider the emulator itself as a windows application and hence you could record it like any other windows app. For a more platform independent option, there are a few java libraries with api.
I'm trying to implement an JavaFX application which is able to make use of touch events and multi-touch gestures. I'm working with Java8 on Linux Mint 17.
I'm using a touch foil as input device. It's eGalaxTouch device (PCAP7200 series) using an EETI eGTouch driver (eGTouchD version: 2.5). It's recognized as standard mouse input device but also creates multi-touch events (ABS_MT_SLOT, ABS_MT_TRACKING_ID, ABS_MT_POSITION_X, ABS_MT_POSITION_Y) which can be read from /dev/input/eventX.
Ubuntu now comes with some multi-touch support and is able to recognize gestures. Is it possible to use those OS generated events in my application and to listen to them like to mouse events with a MouseListener?
Or do I have to recognize gestures in my application, possibly with the help of a library like MT4J?
Since I just started to get acquainted with this stuff, I appreciate any hint or help.
I haven't tried yet, but note that JavaFX also supports GestureEvents such as RotateEvent, ScrollEvent, SwipeEvent, ZoomEvent and probably(?) also custom events.
http://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/package-summary.html
So I have received a task to develop a prototype software for testing the software/hardware component of android. Example: By using the software I can send a command from my PC to my android to change the color of screen display without interacting with the devices(touch,shake or other possible gestures). I would like to know how do I actually start. The whole idea is actually messed up in my mind. Because after a few days of research I haven't found any topic related to what I am going to do. I am still fresh with java so please go easy on me :) Any help is much appreciated.
hi this is very much feasible. First you need is a web service that connects your software to your phone. When you give command on your software, the command should go trigger the web service which in turn should send a push notification to the phone to execute your command. You will be needed to create a some sort of listener and push notification system on your phone(Hint GCM may work). Also you will need to add permissions to your app that is listening to the notifications. Does that make any sense to you?
I am aware of creating push notification in java for Android and Apple apps. Now i want to create a push notification service for windows phone app. Tried little googling but didnt found enough resources.
Can anyone help me with good resources for creating push notifications in java for a windows phone app.
try that JAVA MPNS
It's 3 years old but works and supoorts toast/tile/raw types. Build it from source, add into project and follow samples.