Petr Vanek
unread,Jan 22, 2013, 3:13:57 PM1/22/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyjni...@googlegroups.com
Good evening,
as reported on irc, passing int values as arguments to an Intent fails with No methods matching your arguments.
Passing strings generally works ok. Here is an example code:
from jnius import cast
from jnius import autoclass
PythonActivity = autoclass('org.renpy.android.PythonActivity')
Intent = autoclass('android.content.Intent')
intent = Intent()
intent.setAction(Intent.ACTION_EDIT)
intent.setType('vnd.android.cursor.item/event')
intent.putExtra("eventLocation","Place")
intent.putExtra("description","desc")
intent.putExtra("beginTime", 1198628984102);
currentActivity = cast('android.app.Activity', PythonActivity.mActivity)
currentActivity.startActivity(intent)
failing with:
"jnius.jnius.JavaException: No methods matching your arguments"
It seems that the issue is somewhere in jnius_export_class.pxi:
def __call__(self, *args):
...
if not scores:
raise JavaException('No methods matching your arguments')
but this goes way above my head... shell i file a bugreport?
Is there any way for me to work around this, before it gets found?
thank you
Petr