Search found 273 matches

by anuraag
06 Jul 2019 14:31
Forum: User Help / Bug Reports
Topic: Pick file in start activity
Replies: 16
Views: 1242

Re: Pick file in start activity

There is a silly bug when creating cache dir which may causing this.

Can you remove 3rd action and add debug dialog, change connection type to exception between last action and debug dialig? Give me auth variable output.
by anuraag
06 Jul 2019 13:23
Forum: User Help / Bug Reports
Topic: map value low at first
Replies: 11
Views: 1005

Re: map value low at first

It will be tricky to add key value at specific index to map. It will be better to use two lists instead. example keys=newList(1,2,3,4); values=newList(4500,3200,7456,1200); To add an entry at 3rd place. We will use 2 here as index as index starts from 0 addElement(keys, 2, key),; addElement(keys, 2,...
by anuraag
06 Jul 2019 11:44
Forum: User Help / Bug Reports
Topic: map value low at first
Replies: 11
Views: 1005

Re: map value low at first

You want to replace 7456 with 3300?

addMapEntry(global_test_map, 3, 3300)

Or

global_test_map[3]=3300
by anuraag
06 Jul 2019 11:34
Forum: User Help / Bug Reports
Topic: Pick file in start activity
Replies: 16
Views: 1242

Re: Pick file in start activity

#deleted#

This flow isn't limited to opening image only. You can use any file format. If an app is installed to open that file then you will get list of apps to open with. I use similar flow with send/share intent received.
by anuraag
06 Jul 2019 11:30
Forum: User Help / Bug Reports
Topic: map value low at first
Replies: 11
Views: 1005

Re: map value low at first

You can use sort() and getMapValues() here like this.
list=sort(getMapValues(global_test_map));
by anuraag
06 Jul 2019 11:22
Forum: User Help / Bug Reports
Topic: Pick file in start activity
Replies: 16
Views: 1242

Re: Pick file in start activity

Pick file give data_string variable. You need to use query content provider action multiple times to get actual path of that file for further actions. I have shared an action which can do that. http://automagic4android.com/forum/viewtopic.php?f=5&t=8010&start=10#p24596 Place this action after pick f...
by anuraag
25 Jun 2019 08:08
Forum: User Help / Bug Reports
Topic: Default dialer: Phone, Skype, Linphone, etc
Replies: 4
Views: 582

Re: Default dialer: Phone, Skype, Linphone, etc

You can change android.intent.action.DIAL to android.intent.action.CALL to get (com.android.server.telecom) and maybe Linphone. or maybe a simpler approach: Is there a way to use "Call Number" and "End Call" and specify to specifically use com.android.dialer for these actions? Right now they use the...
by anuraag
25 Jun 2019 01:23
Forum: User Help / Bug Reports
Topic: Default dialer: Phone, Skype, Linphone, etc
Replies: 4
Views: 582

Re: Default dialer: Phone, Skype, Linphone, etc

This code will give you default dialer packageName http://automagic4android.com/forum/viewtopic.php?f=5&t=8101&sid=708eebd3eab30bfa8b48b90169efc15b#p24941 Below code can give you list of installed all dialers. You can use input dialog to create list then choose your desired dialer to dial. packageNa...
by anuraag
14 Jun 2019 02:15
Forum: User Help / Bug Reports
Topic: Launch Default Apps
Replies: 2
Views: 434

Re: Launch Default Apps

ctx=getContext(); tm=callJavaMethod(ctx, "android.content.Context", "getSystemService(java.lang.String)", "telecom"); defaultDialer=callJavaMethod(tm, "android.telecom.TelecomManager", "getDefaultDialerPackage()") Use above code in a script action. defaultDialer will contain default dialer package ...