Need to kill an activity of a foreground app?

373 views
Skip to first unread message

dhinch...@gmail.com

unread,
May 27, 2015, 5:04:15 AM5/27/15
to automa...@googlegroups.com
1)I want to stop an activity of an foreground app ?
2)Also if I could get a complete activity name from where the device is not rooted?
3)Can  I get a complete list of contacts from device?

Automate developer

unread,
May 27, 2015, 2:31:45 PM5/27/15
to automa...@googlegroups.com, dhinch...@gmail.com
1. Try the Kill app block, or Interact block with Back or Home action.
2. Complete activity name of what, the foreground app?
3. Try using the Contact query block with only * as the query value.

dhinchak dhoom

unread,
May 28, 2015, 12:14:38 AM5/28/15
to automa...@googlegroups.com
2. Yes I am getting activity as com.llamalab.autona....skRemovedActivity that's not good because I am not able to get the complete name if it is a longer name. It can be the foreground app and background app.
3. I tried with '*' at first place but it didn't provide me anything.

Automate developer

unread,
May 28, 2015, 6:56:22 AM5/28/15
to automa...@googlegroups.com, dhinch...@gmail.com
2. Are you using the "Pick activity..." button in the "App in foreground" block? The name are only displayed with an ellipsis in the dialog, tap the an item and the "Activity class" field will contain the full name. The full class name are too long to fit on a single line.
3. Sorry, forgot to check. Yes, that won't work since the Contact query block only returns a single contact. I'll have to make a new block for matching multiple contacts.

dhinchak dhoom

unread,
May 28, 2015, 6:43:34 PM5/28/15
to automa...@googlegroups.com, dhinch...@gmail.com
2 Yes I am using the 'pick activity'  button  from 'App in Foreground' . 
3 It's not a problem if we don't have a block where multiple contact are not extracted from a single query. But can we have a pointer that extract the next contactname from current query because I tried with loop but getting the same contactname again and again. 


I have a doubt " I got in my DATA USE that Automate has used DATA around 1 MB. May I know the reason why?  Because it neither use DATA from Internet for things like advertisement dry nor I had used for DATA setting? Is it like if I provide access to my contact then they are copied to server in background same like Google ?"😈😈😈😈

Automate developer

unread,
May 28, 2015, 7:08:49 PM5/28/15
to automa...@googlegroups.com, dhinch...@gmail.com
3. The Query contact block is designed to be used to look up a single contact by phone number, e-mail, name, etc., and not to get every contact. Why do you need to loop through every contact? If you want the user to select a contact use the Contact pick block.

Automate only access the internet when you're browsing the community, or using the FTP, Google Drive and HTTP request blocks in you flows.
Uninstall the Connectivity permission, then it's impossible for Automate to access the internet.

dhinchak dhoom

unread,
May 29, 2015, 2:48:08 AM5/29/15
to automa...@googlegroups.com, dhinch...@gmail.com
3. I want to get the list of contact that have special dates in a particular month. So that I can greet them.

Also If you can suggest me how to throw complete values from an array or dictionary on a single dialog.

Thanks for the perfect reply as I was expecting :)

Automate developer

unread,
May 29, 2015, 3:13:54 PM5/29/15
to automa...@googlegroups.com, dhinch...@gmail.com
To show "select from a list" dialog use the Dialog choice block, it takes an array or dictionary of labels.

dhinchak dhoom

unread,
Jun 2, 2015, 3:23:18 AM6/2/15
to automa...@googlegroups.com, dhinch...@gmail.com
How would I get two or more than two contacts that has same number ?

Automate developer

unread,
Jun 2, 2015, 6:53:36 PM6/2/15
to automa...@googlegroups.com, dhinch...@gmail.com
Currently not possible. But i'll probably going to create another version of the Contact query block which returns an array of Contact URIs and a new Contact get block, similar to how the Calendar query/get block works.

dhinchak dhoom

unread,
Jun 7, 2015, 11:02:45 PM6/7/15
to Automate developer, automa...@googlegroups.com
But what can I do woth URI?
i am new beginner with Automate and Android.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Automate" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/automate-user/yrYP_Q3OWSI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> automate-use...@googlegroups.com.
> To post to this group, send email to automa...@googlegroups.com.
> Visit this group at http://groups.google.com/group/automate-user.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/automate-user/20b1e583-7155-4318-a5b7-7cab8b359d65%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

Automate developer

unread,
Jun 8, 2015, 1:07:02 AM6/8/15
to automa...@googlegroups.com, dhinch...@gmail.com, henrik.l...@gmail.com
With a Contact URI? It's used by the Contact pick and Contact query blocks, it can also be viewed with the Content view block.


On Monday, June 8, 2015 at 5:02:45 AM UTC+2, dhinchak dhoom wrote:
But what can I do woth URI?
i am new beginner with Automate and Android.

dhinchak dhoom

unread,
Jun 8, 2015, 12:03:17 PM6/8/15
to Automate developer, automa...@googlegroups.com
Can you provide me scenarios where you think that CONTACT URI is useful?
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Automate" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/automate-user/yrYP_Q3OWSI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> automate-use...@googlegroups.com.
> To post to this group, send email to automa...@googlegroups.com.
> Visit this group at http://groups.google.com/group/automate-user.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/automate-user/5d09c01a-c560-49f0-92cc-b43b91092a73%40googlegroups.com.

Automate developer

unread,
Jun 8, 2015, 2:31:02 PM6/8/15
to automa...@googlegroups.com, dhinch...@gmail.com, henrik.l...@gmail.com
    Pick contact?
   Contact URI: uri
          |
    Contact query?
   Query value: uri
 Primary e-mail: email
          |
     Gmail send
      To: email
Message: "I'll be there soon"
   

On Monday, June 8, 2015 at 6:03:17 PM UTC+2, dhinchak dhoom wrote:
Can you provide me scenarios where you think that CONTACT URI is useful?

dhinchak dhoom

unread,
Jun 8, 2015, 10:44:02 PM6/8/15
to automa...@googlegroups.com
Hello Developer,
But can I get the other values like relationship, Other mobile number than primary number, Other events, event types,event dates and all other values related with contact.
Message has been deleted

dhinchak dhoom

unread,
Jun 8, 2015, 11:07:13 PM6/8/15
to automa...@googlegroups.com
In sms sent block I am not getting the timestamp when the sms sent but getting the UNIX timestamp as described in the documentation.
I think it is the bug i also tried with changing the timestamp using dateFormat function.

Automate developer

unread,
Jun 9, 2015, 12:24:02 AM6/9/15
to automa...@googlegroups.com, dhinch...@gmail.com
Currently no.

Automate developer

unread,
Jun 9, 2015, 12:38:47 AM6/9/15
to automa...@googlegroups.com, dhinch...@gmail.com
The SMS sent time may not always be available. It's an Android bug which never gets fixed:
http://forum.xda-developers.com/showthread.php?t=2695980

I'll change it so null returned, instead of 0.

dhinchak dhoom

unread,
Jun 19, 2015, 2:47:39 AM6/19/15
to automa...@googlegroups.com, dhinch...@gmail.com
But in the same link it was already told that it is working for Android 4.4.4 so why do we need to set it zero.

Automate developer

unread,
Jun 19, 2015, 1:51:33 PM6/19/15
to automa...@googlegroups.com, dhinch...@gmail.com
When i get the time i'll try to come up with a workaround, until then don't rely on the "Sent timestamp" in the SMS Sent nor SMS Received blocks.

Fred Kleytman

unread,
Sep 23, 2015, 4:06:43 PM9/23/15
to Automate, dhinch...@gmail.com
Do you a list of devices kill app does not work on?
I have rooted LG V410 and kill app gives me JAVA script error.

Automate developer

unread,
Sep 23, 2015, 5:25:38 PM9/23/15
to Automate, dhinch...@gmail.com
Please user the Help & feedback menu to send me a system log, then i'am able to see the cause.

Also, read the following post to help be resolve superuser/root issues:
https://groups.google.com/d/msg/automate-user/xMNgMjH4x_U/KhxYtEIJ3FcJ
Reply all
Reply to author
Forward
0 new messages