Just to update, the code works :) Thanks again!
On Tue, Jan 10, 2012 at 6:06 PM, Tomasz Cielecki wrote:
> Oh nice! I will try this out. I really appreciate the help and
> time you put into this!
>
> On Tue, Jan 10, 2012 at 5:08 PM, Jonathan Pryor wrote:
>> One of these days we'll get the JNI
Oh nice! I will try this out. I really appreciate the help and
time you put into this!
On Tue, Jan 10, 2012 at 5:08 PM, Jonathan Pryor wrote:
> One of these days we'll get the JNI doc published which discusses many of
> these issues.
>
> In the meantime...
>
> On Jan 10, 2012, at 4:58 AM, To
One of these days we'll get the JNI doc published which discusses many of these
issues.
In the meantime...
On Jan 10, 2012, at 4:58 AM, Tomasz Cielecki wrote:
> My guess it has something to do with my implementation of my GetNotifyHandler.
Not GetNotifyHandler(), but n_Notify():
>stati
My guess it has something to do with my implementation of my
GetNotifyHandler. It looks like this:
static Delegate cb_notify;
static Delegate GetNotifyHandler()
{
if (cb_notify == null)
cb_notify =
JNINativeWrapper.CreateDelegate((Action)n_Notify
OK, So it kind of works, but there is a small problem. The notify
method I override always has null as its parameter when a result of
not being null is expected. So the Javascript Interface invokes the
method, but nothing is passed along as parameter.
So investigating a bit I tried just instantiat
On Jan 9, 2012, at 6:42 PM, Tomasz Cielecki wrote:
> Would it be enough just to copy it into the main project?
Yes, or Link the file into your main project. The key point is that if you want
it in the .apk and it's not C# code, it needs to be in the main project. This
includes resources, Java so
I tried first with having the java file in the library project, which
fails. So that is exactly as you describe that the build system does
not include files located in library projects when marked as
AndroidJavaSource.
Would it be enough just to copy it into the main project?
Thanks, I will try i
On Jan 9, 2012, at 4:57 AM, Tomasz Cielecki wrote:
> Seems to me that it cannot find the java file I created even though I have
> set the build action to AndroidJavaSource, can it have anything to do with
> that I am doing this in a Mono for Android Class Library?
Is the AndroidJavaSource item i
Hi again,
I think I have narrowed it down to occur when trying to do this in a
Mono for Android Class Library project. If I put the code in a normal
project it compiles the Java code fine. Any reason to why it won't
work with a Class Library project?
On Mon, Jan 9, 2012 at 10:57 AM, Tomasz Cielec
Ok, I have been messing around a bit with this JNI stuff and can't
seem to get it to work. The C# code compiles fine, so it must be the
Java code that fails somehow as I get two errors:
"C:\Users\tcielecki\Desktop\MonoDroid.WAToolkit\MonoDroid.WAToolkit\MonoDroid.WAToolkit.Sample.csproj"
(SignAndr
Thank you Jon,
I will see if I can get this to work.
On Jan 5, 2012 6:53 PM, "Jonathan Pryor" wrote:
> On Jan 5, 2012, at 4:50 AM, Tomasz Cielecki wrote:
> > I am trying to add a javascript interface to my webview but it the
> method in the object I pass to the webview does not get triggered.
>
On Jan 5, 2012, at 4:50 AM, Tomasz Cielecki wrote:
> I am trying to add a javascript interface to my webview but it the method in
> the object I pass to the webview does not get triggered.
...
> I was thinking whether it is possible to tell mandroid to put the methods in
> the generated Java file
12 matches
Mail list logo