[mono-android] Resources in Mono for Android Library Project

2012-04-08 Thread kizanlik
Hello everyone,

Is it possible to create any resource in Android Library Project?
If it is, how can I access these resources from another project?

Thank you...

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Resources-in-Mono-for-Android-Library-Project-tp5626331p5626331.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Crash on list scrolling

2012-04-08 Thread gnauck
Thanks Jon, works great now. So I started with the wrong example ;-)

Alex

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Crash-on-list-scrolling-tp5620102p5626483.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Resources in Mono for Android Library Project

2012-04-08 Thread Jonathan Pryor
On Apr 8, 2012, at 3:05 PM, kizanlik wrote:
> Is it possible to create any resource in Android Library Project?

I believe that support for Android resources within Android Library Projects 
was added in 4.1.

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] using custom sqlite.so with Mono.Data.Sqlite.dll

2012-04-08 Thread Jonathan Pryor
On Apr 7, 2012, at 4:57 PM, Mike Tajmajer wrote:
> Could Mono.Data.Sqlite.dll use my new .so?  Or, would it need to be rebuilt?

No, as Mono.Data.Sqlite.dll P/Invokes "sqlite3", which is dllmap'd to 
/system/lib/libsqlite.so (and there's no way I know of to override the dllmap).

You'd need to alter the Mono.Data.Sqlite sources to use a new native library 
name (matching the library that you bundle with your app):

https://github.com/mono/mono/tree/mono-2-10/mcs/class/Mono.Data.Sqlite

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] New Binding Generator

2012-04-08 Thread Atsushi Eno

Hello,

On 2012/04/07 13:01, Matt wrote:

I am seeing the same problem. I am trying to bind the licensing libraries
from google. In addition to the warnings, I noticed that most of the types
are not imported by the binding generator. I'm not sure if this is related
to the warnings, but it is a show stopper for getting the licensing working.


I believe you will hit some binding generator error during binding 
generation for LVL jar and won't get any dll. Please make sure where the 
assembly you are seeing is from (I guess it is not from binding library 
project output).


I have fixed the blocking error, and the generated binding with my it 
does not seem to miss types (at least, a lot; I confirmed the results on 
the assembly browser with my eyes).


Thanks,
Atsushi Eno

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Resources in Mono for Android Library Project

2012-04-08 Thread Atsushi Eno

Hello,

On 2012/04/09 4:05, kizanlik wrote:

Hello everyone,

Is it possible to create any resource in Android Library Project?
If it is, how can I access these resources from another project?



In short, library project resources are supported when you zip relevant 
library project build results (in "bin" directory in the Java project) 
and embed it as "LibraryProjectZip" in a Java binding library project.


We will be publishing relevant docs by the stable release, but so far, 
I'll explain here.


The library resource IDs should appear in the Resource.designer.cs like 
the resources in the pplication's own resources, but with some remarks, 
which is a bit tricky... Let me explain how it works.


The resources in the library project are embedded in the library project 
binding dll, and they are expanded when you *build* the application that 
references the library project.
In the build step, it collects the resources and generates 
Resrouce.designer.cs (like we do for usual resources). *At that stage*, 
you should be able to reference the resource IDs for the library project 
resources, like other resource IDs. (This "fist-time-missing" issue is 
somewhat itchy, but not very serious I assume.)


We have a sample for this Android Library Project support, as a Facebook 
SDK binding sample.

https://github.com/xamarin/monodroid-samples/tree/monodroid-4.1-preview/Facebook

In this sample ("simple"), you can e.g. reference  
"Resource.Drawable.close" image from the library project jar, not in the 
app project.


Hope this explanation helps.

Atsushi Eno

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid