Re: [mono-android] P/Invoke fails with JavaSystem.Load() in static constructor (bug?)

2012-07-17 Thread Atsushi Eno
shouldn't the build action for *.so be "AndroidNativeLibrary" ? Atsushi Eno Manski wrote: When I load a native shared library with "JavaSystem.Load()" in a static constructor like this: class MyClass { static MyClass() { Java.Lang.JavaSystem.Load("/path/to/libmylib.so"); }

Re: [mono-android] P/Invoke fails with JavaSystem.Load() in static constructor (bug?)

2012-07-17 Thread Manski
Atsushi Eno wrote > > shouldn't the build action for *.so be "AndroidNativeLibrary" ? > Yes, but "AndroidNativeLibrary" doesn't work in Android Class Library projects. So I had to create a workaround with .NET resources to be able to include native libraries in class library projects. -- View

Re: [mono-android] Creating a Softkeyboard with mono

2012-07-17 Thread JLee
have to push this thread a little bit, cause im stucking at this problem and can't get further. does anybody know, whicht project-type /-settings I have to use, to say mono, that this is an InputMethodService (or if it is possible to create IME-Projects with mono, anyway)? I think in Java, Android

[mono-android] Issue with InputStream

2012-07-17 Thread Francesco Colombo
Hi guys, After releasing my game Smashing Planets, I'm receiving some complains about a critical bug. This behaviour happens on a Galaxy S and Galaxy TAB. I can't reproduce it on my Galaxy S2. The game is based on the popular library Monogame. Any idea? Here the log: 07-11 10:59:10.263 E/mono

[mono-android] Best way to work offline?

2012-07-17 Thread javitxin
Hi, i would like to develop an app that could work online/offline mode..and i am studying all possibilities. One is working with typed dataset but when I add a typed dataset in an android class library.. it crashes.. so I suposse that an android class doesn`t support typed dataset.. maybe I am wr

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Ryan Smyth
Hello Francesco, If you have the steps to reproduce it, I have a Galaxy Tab 10.1 and have a quick look. I just bought it, and it's downloading now. Cheers, Ryan On Tue, Jul 17, 2012 at 7:52 PM, Francesco Colombo < francesco.colo...@gmail.com> wrote: > Hi guys, > > After releasing my game Smas

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Francesco Colombo
Great, just download it and run, it happens when you launch the game. On Tue, Jul 17, 2012 at 12:18 PM, Ryan Smyth wrote: > Hello Francesco, > > If you have the steps to reproduce it, I have a Galaxy Tab 10.1 and have a > quick look. I just bought it, and it's downloading now. > > Cheers, > > R

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Francesco Colombo
I'm not sure but the issue seem related to the Android asset reader. Monogame read precompiled binary assets. The fun fact is that a "binayrized" xml file is sucessfully readed, while a .png is not. Some additional info --- End of managed exception stack trace --- java.io.IOException at and

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Ryan Smyth
Sigh... Sorry. No error. :( I rebooted, and it still ran fine. Sorry I can't help out. Regards, Ryan On Tue, Jul 17, 2012 at 8:23 PM, Francesco Colombo < francesco.colo...@gmail.com> wrote: > Great, > > just download it and run, it happens when you launch the game. > > > On Tue, Jul 17, 2012 at

Re: [mono-android] Issue with InputStream

2012-07-17 Thread ChrisNTR
I just grabbed the game and it worked fine on my Galaxy Tab 8.9... so can't be of much use but it's a great game so nice work! ChrisNTR On Tue, Jul 17, 2012 at 1:00 PM, Ryan Smyth wrote: > Sigh... Sorry. No error. :( I rebooted, and it still ran fine. Sorry I > can't help out. > > Regards, > >

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Francesco Colombo
Ok, thanks anyway for the help! On Tue, Jul 17, 2012 at 2:25 PM, ChrisNTR wrote: > I just grabbed the game and it worked fine on my Galaxy Tab 8.9... so > can't be of much use but it's a great game so nice work! > > ChrisNTR > > > On Tue, Jul 17, 2012 at 1:00 PM, Ryan Smyth wrote: > >> Sigh... S

Re: [mono-android] Best way to work offline?

2012-07-17 Thread Miha Markic
Typed dataset is just some code on the top of the dataset. Perhaps you have just design time problems. Note that you can create it manually or using some sort of code generator such as CodeSmith or T4. As per offline, speaking theoretically, I'd go with storing the data in a local database and s

[mono-android] Profiling application

2012-07-17 Thread gpe
Hello, I have never done any extensive profiling (performance analysis) work and still don't really need it actually. But as my application is running too slowly I would like to spot the caveats of my code. It could be as well be a problem of memory as processor usage. In Visual Studio (2010) I sa

Re: [mono-android] getAssets()

2012-07-17 Thread Jonathan Pryor
On Jul 15, 2012, at 1:14 PM, SBlank wrote: > What is the equivalent for getAssets() ? I tried this.Assets but that throws > an exception. What exception is thrown, and what is the message + stack trace? Thanks, - Jon ___ Monodroid mailing list Monodr

Re: [mono-android] P/Invoke fails with JavaSystem.Load() in static constructor (bug?)

2012-07-17 Thread Robert Jordan
On 12.07.2012 19:15, Manski wrote: When I load a native shared library with "JavaSystem.Load()" in a static constructor like this: class MyClass { static MyClass() { Java.Lang.JavaSystem.Load("/path/to/libmylib.so"); } [DllImport("mylib")] private static extern int

Re: [mono-android] Creating a Softkeyboard with mono

2012-07-17 Thread Jonathan Pryor
On Jul 17, 2012, at 5:47 AM, JLee wrote: > does anybody know, whicht project-type /-settings I have to use, to say mono, > that this is an InputMethodService (or if it is possible to create > IME-Projects with mono, anyway)? InputMethodService is a Service, so you should use the [Service] custom

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Jonathan Pryor
On Jul 17, 2012, at 10:18 AM, Francesco Colombo wrote: > I really appreciate if someone can do a very simple test for me: > > 1) Create a new simple android application > 2) UNZIP and PUT the attached file (logoscreen.xnb) into Assets folder logoscreen.xnb is ~4MB in size. Android < 2.3 does not

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Francesco Colombo
@Jon: Ok I admit I'am a bit confused :S First of all, the file I've linked is the wrong one. The right one is 2mb unzipped and 12kb zipped. But this is the less important thing. The really wired thing is that the first version of the game I've developed and released (downloadeble in stores) use t

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Jonathan Pryor
On Jul 17, 2012, at 12:46 PM, Francesco Colombo wrote: > @Jon: Ok I admit I'am a bit confused :S It's Android. :-) > The really wired thing is that the first version of the game I've developed > and released (downloadeble in stores) use the same, and others, file which > are +1mb. > The game r

Re: [mono-android] Profiling application

2012-07-17 Thread Tossing, Chris
We don't use a profiler with M4A, so I don't have one to suggest, but performance problems can many times be due to performing CPU-intensive operations on the UI thread. If you are doing that, I strongly suggest you don't. Any kind of complex calculation or database access should be done using

Re: [mono-android] Multy Layer Icon

2012-07-17 Thread Jonathan Pryor
On Jul 15, 2012, at 8:17 AM, SBlank wrote: > I added my personal application icon to my project and ended up with a 16x16 > icon. I have no problems with this icon in Visual Studio for normal C# > programs so the question is: Is the 16x16 icon a result of a limitation of > Android or Mono Androi

Re: [mono-android] Program that reproduces Mono4Android deadlock

2012-07-17 Thread Jonathan Pryor
On Jul 16, 2012, at 7:49 AM, Meinrad Recheis wrote: > Another info: I just tested with an older Samsung Galaxy S that has only one > core and couldn't reproduce any deadlocks even with 10 background threads > whereas with the dual core Galaxy Tab 10.1 it is really easy to reproduce. Thank you fo

Re: [mono-android] Issue with InputStream

2012-07-17 Thread Francesco Colombo
Thanks Jon, your help is really appreciate! I think i will chose the "NON" fix: Require Android 2.3+ (thus preventing execution on your GS1 device). this because Android 2.2 share only 17% of the market devices and because it's the simpler solution at this time. On Tue, Jul 17, 2012 at 10:22 PM,

Re: [mono-android] Signing Error: Could not find msbuild.exe

2012-07-17 Thread dominique
Hi El-Sayed, It looks for the MSBuild path in this registry key - HKEY_LOCAL_MACHINE\Software\Microsoft\ASP.NET\4.0.30319.0\ I don't have Win8 here to check, so could you please confirm that this key exists in your registry and that the Path string value points also exists? On my Windows 7

[mono-android] Memory leak

2012-07-17 Thread Terry151151
I have a program that uses WebRequest and Sqlite. I sends request to the server and then updates a local database in background from the response. When I let the program stand idle it looses about 1Mb of ram about every 5 minutes. After standing idle for a couple of hours it uses 70mb of ram. Does

Re: [mono-android] Profiling application

2012-07-17 Thread g pe
Ooh that is a good point! My application is for now only drawing on the Canvas but all the pre-processing of the shapes etc is done on the same thread. Even though it always has been in the plan to separate everything in correct threads, it's still to be done. That could be enough to solve our curr