Reputation
266
Next privilege 300 Rep.
Create new tags
Badges
2 7
Newest
 Supporter
Impact
~13k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Jan
6
comment Find out over the network if Android device is active
I didn't try it because I'm not rooted and as far as I can see, it's necessary to connect a computer to the device enable the adb network mode (after reboots for instance), which is too inconvenient for me...
Jan
6
awarded  Benefactor
Jan
6
awarded  Scholar
Jan
6
awarded  Supporter
Jan
6
accepted Find out over the network if Android device is active
Jan
6
comment Find out over the network if Android device is active
Wow, thanks for the detailed response! Using Tasker like this worked like a charm! The only caveat is that you need to connect a mouse to set it up. I didn't write to a file. Instead I wrote a simple HTTP server in Python and send GET requests to it from the shield.
Jan
5
awarded  Promoter
Dec
16
awarded  Student
Dec
14
comment Find out over the network if Android device is active
However, dumpsys deviceidle doesn not really work on my phone at least (gives Can't find service: deviceidle).
Dec
14
comment Find out over the network if Android device is active
Interesting, I'll have to see whether I cen get adb working over the network or whether an SSH server can be used instead.
Dec
14
comment Find out over the network if Android device is active
@naXa That question is similar, but concerned with network connectivity. This question is concerned with sleep mode vs. device is active. However I think a similar technique can be applied to my problem, so if this can really not be done without writing my own app, the info will be useful.
Dec
14
comment Find out over the network if Android device is active
@HiI'mFrogatto There are no phones involved, just the Android TV box. And the question is how to do this without writing my own app, but with an existing one, like Tasker. I'm also open for a push-solution.
Dec
14
comment Find out over the network if Android device is active
@MarianPa┼║dzioch Android TV has a mode called "sleep mode", which is a low-power mode, similar to when the screen of a phone or tablet is off. I want to distinguish between this sleep mode, and the active mode, where the device is displaying stuff on the TV. Does that clarify the problem?
Dec
14
comment Find out over the network if Android device is active
@HiI'mFrogatto The device is not using WiFi, it's connected via Ethernet, so it's always connected to the network.
Dec
11
comment Find out over the network if Android device is active
Good idea, however this is a set-top-box and connected via Ethernet. And as I wrote, I know that I can write an app. The questions is if there's a way around doing that :)
Nov
17
asked Find out over the network if Android device is active
Jul
6
awarded  Enlightened
Jul
6
awarded  Nice Answer
Jun
7
awarded  Yearling
Oct
7
awarded  Teacher