Re: [mono-android] Splash screen ratio

2012-09-04 Thread g pe
If your using an image you don't have choice but have a big version it. So you are sure that it is never scaled up. Then for a different ratios either you have have two bands on the "missing" sides like the black lines on 4:3 TVs showing 16:9 movies. A nice trick would be to have your original imag

[mono-android] Facebook SDK

2012-09-04 Thread matthieugd
Hello, In my app I referenced the Facebook SDK in a JAR bindings Project. When the device has the Facebook app installed there's no problem. If not the WebView dialog crash the app with this exception: java.lang.NoClassDefFoundError: com.facebook.android.R$drawable 09-04 20:49:38.090 I/MonoDroid(

Re: [mono-android] Android.Views.InflateException: unable to inflate Fragment inside Fragment

2012-09-04 Thread Jonathan Pryor
On Sep 4, 2012, at 3:09 PM, Stephan Steiner wrote: > As requested all the output from android device logging: > http://justpaste.it/1a07 . This one is from switching between tabs. This seems relevant: UNHANDLED EXCEPTION: Android.Views.InflateException: Exception of type 'Android.Views

Re: [mono-android] Android.Views.InflateException: unable to inflate Fragment inside Fragment

2012-09-04 Thread Stephan Steiner
Jon As requested all the output from android device logging: http://justpaste.it/1a07 . This one is from switching between tabs. I cleared the log before entering the activity that hosts my two tabs.. And here's another one where I enter the activity that hosts my tabs, then I change screen orient

Re: [mono-android] Make IEnumerable covariant

2012-09-04 Thread Jonathan Pryor
On Sep 3, 2012, at 3:59 AM, Manski wrote: > Is there a way to make IEnumerable covariant (i.e. "IEnumerable")? Not at this time. > Or is this a "bug"? Should I open a bug report for this? We should be moving to covariant generics when we rebase atop Mono 2.12...whenever we get there. - Jon

Re: [mono-android] Hangs on startup

2012-09-04 Thread Jonathan Pryor
On Sep 3, 2012, at 9:19 AM, Daniele Salvatore Albano wrote: > Any ideas? Are you using Threads? Does using the armeab-v7a runtime fix things? We inadvertently broke the armeabi runtime in 4.1.x, preventing it from tying the runtime to a single CPU core. The result is that the armeabi runtime i

Re: [mono-android] cannot find symbol - compile error

2012-09-04 Thread Jonathan Pryor
On Sep 3, 2012, at 10:59 PM, ddebilt wrote: > I'm getting the following error when I inherit from SQLiteOpenHelper: > > Error 1cannot find symbol > symbol : class DatabaseErrorHandler > location: package android.database > public Db_DatabaseHelper (android.content.Context p0, java.

Re: [mono-android] Sensor Handler loses GREF handles

2012-09-04 Thread Jonathan Pryor
On Sep 4, 2012, at 12:51 PM, NebulaSleuth wrote: > The problem seems to be in my Sensor Handler, but for the life of me I don't > know what is wrong. I have boiled it down to simply reading the X,Y,Z data. >public void OnSensorChanged(SensorEvent sensorEvent) >{ > // If

[mono-android] Sensor Handler loses GREF handles

2012-09-04 Thread NebulaSleuth
I have a problem where my application seems to lose GREF's very quickly. I tracked it down to the Sensor handler. Basically after running for about an 20 minutes my application becomes unresponsive (very slow) and produces and ANR dialog. The problem seems to be in my Sensor Handler, but for t

Re: [mono-android] Android.Views.InflateException: unable to inflate Fragment inside Fragment

2012-09-04 Thread Jonathan Pryor
On Sep 4, 2012, at 10:20 AM, Stephan Steiner wrote: > when I either select another tab then return, or simply change the device's > orientation, I get an inflateexception when inflating the fragment layout What's the full exception message + stack trace as printed in the Android Debug Log?

Re: [mono-android] Splash screen ratio

2012-09-04 Thread tsukrov
My main problem is neither density nor size, but hei/wid ratio. Android supports long/notlong. What's the best way for other ratio-s? drawable-h300dp-w200dp or something like that? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Splash-screen-ratio-tp5711680p571

Re: [mono-android] Splash screen ratio

2012-09-04 Thread Tomasz Cielecki
Best practices for how to make your drawables display pretty on all screen sizes can be read here: https://developer.android.com/guide/practices/screens_support.html Refer to table 1 and table 2 and use the naming schemes they suggest. This way the device will pick the appropriate drawables. On T

Re: [mono-android] MonoDroid to Mono Touch

2012-09-04 Thread Tomasz Cielecki
If a lot of your activities display data in tables or such it would be wise to use something like MonoTouch.Dialog to create these parts. Though if you have a lot of custom views where you manually draw stuff it will be a bit more work. I did some custom controls displaying some graphs where the l

[mono-android] Android.Views.InflateException: unable to inflate Fragment inside Fragment

2012-09-04 Thread Stephan Steiner
HI I have a fragment inside a fragment that is causing trouble.. it works at first, but it's hosted in a tabbed view, and when I either select another tab then return, or simply change the device's orientation, I get an inflateexception when inflating the fragment layout (in the first line of Call

[mono-android] Splash screen ratio

2012-09-04 Thread tsukrov
Hi! I have a splash in the described way. http://docs.xamarin.com/android/tutorials/Creating_a_Splash_Screen I've port/land + long/notlong drawables. Unfortunately it's not enough, e.g. A500 scales the splash ugly. Is there are a better way to do the trick? -- View this message in context:

[mono-android] MonoDroid to Mono Touch

2012-09-04 Thread Jonathan Chapman
We've created a very large line of business application (100+ Activities) in MonoDroid and are looking to move it to Mono Touch. The structure is such that the business logic are in separate libraries so we are anticipating the majority of changes to be in the screen architecture. I was hoping so

Re: [mono-android] ListViewItem selection

2012-09-04 Thread Tomasz Cielecki
Usually I just set the ItemClick event on the ListView itself and not on each of the items created by the adapter. So instead of having your ItemClickHandler method in the adapter and setting that for each item do something like this: * In your activity where you set up the ListView and ListAdapt

[mono-android] ListViewItem selection

2012-09-04 Thread Александр
Hello. I've made a ListView with custom Adapter and ListItem, but event "ItemClick" is not working. internal class ShellListAdapter:BaseAdapter { private Activity _context; private List _items; private OnShellItemClick _handler; /// /// Initializes a new