I think I just answered my own question when browsing the Monkeyrunner source code. When starting an activity through MonkeyDevice, the extras dictionary gets passed to JythonUtils to translate the PyObjects to Java Objects. However, the map they use to translate these objects only recognizes Strings, Doubles and Integers... Is a fix for this in the works?
On Sep 14, 10:20 am, Case B <casebea...@gmail.com> wrote: > Hello, > > I'm trying to pass aParcelableobject in my extras when starting an > activity inMonkeyrunner. The area in the script looks like this > > user = FbUser() > extraDic = {} > extraDic['userName'] = 'Test' > extraDic['userId'] = 'me' > extraDic['userInfo'] = user > d.startActivity(extras=extraDic, component=runComponent + > postActivity) > > FbUser is the object in my java project that implementsParcelable. > The bin of the project has been properly added to the sys.path in the > JythonMonkeyrunnerscript. When I debug the script, it creates the > FbUser object correctly, however, when I print out the extras in > LogCat, the 'userInfo' extra is missing... Does anyone know why this > might be? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en