Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: nantian on November 07, 2021, 11:34:28 AM

Title: How to get AndroidJavaObject
Post by: nantian on November 07, 2021, 11:34:28 AM
I don't know how to get AndroidJavaObject in Variables. I hope someone can tell me. thank you.
Title: Re: How to get AndroidJavaObject
Post by: djaydino on November 07, 2021, 07:25:20 PM
Hi.
DO you want to get it from an existing script?

Can you give some more details as it looks like you will need specific custom made actions or a custom script and trigger with some actions
Title: Re: How to get AndroidJavaObject
Post by: nantian on November 08, 2021, 10:53:19 AM
Yes, I want to get it from an existing script. It would be nice to declare an androidjavaobject in variables. I want to store this object after performing a custom action.
Title: Re: How to get AndroidJavaObject
Post by: nantian on December 05, 2021, 09:09:16 PM
Hi.
DO you want to get it from an existing script?

Can you give some more details as it looks like you will need specific custom made actions or a custom script and trigger with some actions

Is there anybody who can help me? thanks.
Title: Re: How to get AndroidJavaObject
Post by: djaydino on December 06, 2021, 08:31:15 AM
Hi.
You can use the 'Object' Variable for uncommon variable types

Code: [Select]
[ObjectType(typeof(AndroidJavaObject))]
public FsmObject aJavaObject;
Title: Re: How to get AndroidJavaObject
Post by: nantian on December 07, 2021, 12:25:58 AM
Hi.
You can use the 'Object' Variable for uncommon variable types

Code: [Select]
[ObjectType(typeof(AndroidJavaObject))]
public FsmObject aJavaObject;

It works! Thank you.
Title: Re: How to get AndroidJavaObject
Post by: djaydino on December 07, 2021, 09:41:07 AM
Hi.
You can find the Playmaker API here  (https://hutonggames.fogbugz.com/default.asp?W127)btw (if you did not know already)
Title: Re: How to get AndroidJavaObject
Post by: TerryBK on August 07, 2022, 11:18:13 AM
In addition to that, I wanted to obtain it from an already existing script. It would be convenient if variables could be used to declare an androidjavaobject. Following the completion of a user-defined action, I want to save this object. Nevertheless, I did understand what was being discussed, and I appreciate you providing Playmaker api link.