Jump to content

Covid-19 response - Need Android code


wisem2540
 Share

Recommended Posts

Hello all,

I have some experience with Autoit, but almost none for Android. I work for a healthcare organization and as part of their Covid response, we are attempting to check on patients remotely.

The idea here is that we would put android tablets in the rooms and use Cisco Jabber to call into the room. I would like to deliver an APK to the tablet that could detect an incoming call from Cisco Jabber, and then tap the answer button.

I realize this is probably not the appropriate use for this forum, so I apologize in advance. However, if someone would be willing to help with this code, we could save lives.

Thanks

Link to comment
Share on other sites

  • Moderators

wisem2540,

Excellent use of the forum. I will post a link to this thread in GH&S

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

18 minutes ago, Melba23 said:

wisem2540,

Excellent use of the forum. I will post a link to this thread in GH&S

M23

Thank you so much! 

Here is a snippet of part of my ADB log

 

I SurfaceFlinger: SolidColor | | 0000 | Unknown | 0.0 0.0 -1.0 -1.0 | 0 0 2048 1536 | com.cisco.im/com.cisco.jabber.telephony.call.CallIncomingActivity_dim#0

V WindowManager: Relayout Window{a548e2e u0 com.cisco.im/com.cisco.jabber.telephony.call.CallIncomingActivity}: viewVisibility=8 req=2048x1536 WM.LayoutParams{(0,0)(fillxfill) sim=#120 ty=1 fl=#81e90180 pfl=0x20000 fmt=-2 wanim=0x7f1200f6 vsysui=0x2600 needsMenuKey=2 colorMode=0 naviIconColor=0}

D InputEventReceiver: channel 'a548e2e com.cisco.im/com.cisco.jabber.telephony.call.CallIncomingActivity (client)' ~ Disposing input event receiver.

 

 

Edited by wisem2540
Link to comment
Share on other sites

I don't have much experience automating Android, but i've used MacroDroid to automate some things on my personal phone. (It's free if you don't use more than 5 "macros") It's something to check out at least. It has some triggers (like notifications being created) that might be helpful. There is one called an intent that looks like it might be useful, but I don't know anything about it.

Edit: Page 54 of this document seems to indicate that you select particular groups to always answer :) Let me know if this works!

Edited by seadoggie01

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

20 minutes ago, seadoggie01 said:

I don't have much experience automating Android, but i've used MacroDroid to automate some things on my personal phone. (It's free if you don't use more than 5 "macros") It's something to check out at least. It has some triggers (like notifications being created) that might be helpful. There is one called an intent that looks like it might be useful, but I don't know anything about it.

Edit: Page 54 of this document seems to indicate that you select particular groups to always answer :) Let me know if this works!

Thanks.  That guide is for Cisco UCM.  Cisco Jabber is a business messaging client and doesn't support auto answer on Android natively.

Edited by wisem2540
Link to comment
Share on other sites

Tasker is great for automating android, it also has a plugin called AutoInput by same developer Joaomgcd for clicking on things. Tasker costs 3.49 USD and AutoInput is free for limited use or pay to unlock is less than Tasker if i recall. you only need to purchase once to install on as many devices you want so long as the devices are signed into the same Google account. Tasker has a learning curve and is difficult to have someone do it for you unless they have access to the same app you are trying to automate, but for just a couple of functions you should be able to sort it out pretty quick.

the Tasker subreddit is the best place to find help.

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

Link to comment
Share on other sites

  • Moderators

wisem2540,

Great news!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...