Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-12 Thread Jay Sharma
Hello Elias, *First of all, Thank you very much for help. :)* *After I remove the static from function it worked well. * *Thanks* On Thursday, September 12, 2019 at 4:31:05 PM UTC+5:30, Elias Naur wrote: > > On Thu Sep 12, 2019 at 2:35 AM Jay Sharma wrote: > > >

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-12 Thread Jay Sharma
all using class name: it is working fine. but with object it is not working.* *Can you please provide your suggestion ? * *Thanks.* On Thursday, September 12, 2019 at 1:14:21 PM UTC+5:30, Jay Sharma wrote: > > Hello Elias, > > Following are the lines from proposals: > Creating new

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-12 Thread Jay Sharma
Object { return Object.New() } *How can I modify it for my class ? * I know, It is too much to ask. I got confused. *Thanks for your help.* On Wednesday, September 11, 2019 at 9:41:13 PM UTC+5:30, Elias Naur wrote: > > On Wed Sep 11, 2019 at 7:20 AM Jay Sharma wrote: > > > &

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-11 Thread Jay Sharma
r 11, 2019 at 4:36:20 PM UTC+5:30, Elias Naur wrote: > > On Wed Sep 11, 2019 at 3:51 AM Jay Sharma wrote: > > > > > > I have one doubt when we build using gomobile in that I am giving the > > classpath to my .class java file. > > *Will it be included in .a

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-11 Thread Jay Sharma
On Tue Sep 10, 2019 at 4:26 AM Jay Sharma wrote: > > --=_Part_1258_983331168.1568114760099 > > Content-Type: text/plain; charset="UTF-8" > > > > Hello @elias, > > > > I tried the following: > > > > 1. Created a java class :

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-10 Thread Jay Sharma
Just one more information: I am calling from my go code like this: RBinding.GetStringFromJava() On Tuesday, September 10, 2019 at 4:56:00 PM UTC+5:30, Jay Sharma wrote: > > Hello @elias, > > I tried the following: > > 1. Created a java class : > > package reverseb

Re: [go-nuts] Re: x/mobile: Samples for reverse binding in gomobile

2019-09-10 Thread Jay Sharma
code -6 in tid 9423 (Thread-2) *Can you please provide you opinion. Let me know if any other information is needed. * Thanks On Monday, September 9, 2019 at 5:40:25 PM UTC+5:30, Elias Naur wrote: > > On Mon Sep 9, 2019 at 3:09 AM Jay Sharma wrote: > > > > *Next I want

[go-nuts] x/mobile: Samples for reverse binding in gomobile

2019-09-06 Thread Jay Sharma
Hello All, *I can not see any samples for reverse binding (Calling function from go layer of java layer) in gomobile.* Is anybody tried any samples of reverse binding. Thank in advance. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] x/mobile: Launch a android application with given package name [String] in go

2019-08-25 Thread Jay Sharma
Hello All, *Following is the function written in go:* func LaunchApplication(packageName string) { Query : how can I execute application with given packageName } Generated the java binding [.aar] using *gomobile*. I want to include .aar generated in my android application and call

[go-nuts] Re: Regarding string immutablity

2018-08-28 Thread Jay Sharma
rite the same memory or it will create some copy ? @Jake Montgomery, It is about *security*. I have some keys and I want to delete the content of key, when no longer required. Here my API is expecting a string key. On Tuesday, August 28, 2018 at 8:25:27 PM UTC+5:30, Jay Sharma wrote: > >

[go-nuts] Regarding string immutablity

2018-08-28 Thread Jay Sharma
Hi All, I went through documentation and many post. Every where it is specified *strings are immutable*. I have some string : x := "teststring" I want to *wipe out/overwrite* the content of this string x from disk/memory. As per me the simplest way to do this: x = "" or If I want to