If you use Linux and Android, you can do that with KDE connect. Pretty sure there's some solution for Windows too.