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

已查看 15 次
跳至第一个未读帖子

Fonzo NDROID

未读,
2014年3月8日 18:09:212014/3/8
收件人 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

未读,
2014年3月9日 09:25:352014/3/9
收件人 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

未读,
2014年3月9日 18:45:402014/3/9
收件人 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

未读,
2014年3月10日 11:36:592014/3/10
收件人 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

--
回复全部
回复作者
转发
0 个新帖子