Error TooFewArgumentsException when I run the sample "Open Reactor Help"

15 views
Skip to first unread message

Fonzo NDROID

unread,
Mar 8, 2014, 6:09:21 PM3/8/14
to app-reactor...@googlegroups.com
Hello,

I get the error:
TooFewArgumentsException: Function 'startIntent' expects at least 2 arguments but got 2 on line 3 at column 1
when I run the sample "Open Reactor Help".

// start the browser for the Reactor site which contains help

startActivityIntent("android.intent.action.VIEW", "http://appreactorandroid.blogspot.com/p/about.html");


What's wrong ?

Of course I allready checked the function startIntent in the reference
http://appreactorandroid.blogspot.ch/p/reference.html#startIntent
and it describes 4 parameters, which one are needed/optional ???
And no full example of startIntent !

Thanks and regards.

CONFIG: GALAXY Note3 N9005, Not Rooted. Android 4.4.2

Petr Nalevka

unread,
Mar 9, 2014, 9:25:35 AM3/9/14
to app-reactor...@googlegroups.com
Hello,

thank you very much for your feedback. 

In fact the 3rd parameter become obligatory and is mime type. To fix the script you should use:
startActivityIntent("android.intent.action.VIEW", "http://appreactorandroid.blogspot.com/p/about.html","text/html");

I will fix this for the next release. 

Thank you very much.

Best regards,

Petr




--
Tuto zprávu jste obdrželi, protože jste přihlášeni k odběru skupiny „App Reactor for Android“ ve Skupinách Google.
Chcete-li se odhlásit z této skupiny a přestat z ní dostávat e-maily, zašlete e-mail na adresu app-reactor-for-a...@googlegroups.com.
Další možnosti najdete na stránce https://groups.google.com/d/optout.



--
Best regards,

Petr

Fonzo NDROID

unread,
Mar 9, 2014, 6:45:40 PM3/9/14
to app-reactor...@googlegroups.com
Thanks a lot Petr, it works fine now.
I think the error message should say "... at least 3 arguments ...", not "... at least 2 arguments ..."
Thanks and regards.

Petr Nalevka

unread,
Mar 10, 2014, 11:36:59 AM3/10/14
to app-reactor...@googlegroups.com

Thank you very mach. I will have a look at the issue.

Sorry for being brief. I'm on my way now.

Thank you for your message.

Best regards,
Petr

--
Reply all
Reply to author
Forward
0 new messages