Re: [mono-android] Slow launch

2011-08-11 Thread Nicklas Møller Jepsen
After doing some testing I found out that the performance is radically improved when running the app on a device outside of Visual Studio (meaning disconnecting the phone from the PC and then starting the app on the phone). It's still slow to start, but that's only when doing a cold start, so a s

Re: [mono-android] How to use Resources.GetIdentifier()?

2011-08-11 Thread Jonathan Pryor
On Aug 11, 2011, at 3:05 PM, chobo2 wrote: > You want me to make a example application and send it to you? Yes, as previously on this thread I provided the lines I used on monodroid-samples/HelloWorld, so I'm not sure why things aren't working for you. - Jon __

Re: [mono-android] How to use Resources.GetIdentifier()?

2011-08-11 Thread chobo2
Jonathan Pryor-2 wrote: > > On Aug 11, 2011, at 2:02 PM, chobo2 wrote: >> I found my package name threw R.java but still won't grab the id of my >> image. I am not sure what I am doing wrong. > > Odd. Can you provide an example then? > > Thanks, > - Jon > > ___

Re: [mono-android] How to use Resources.GetIdentifier()?

2011-08-11 Thread Jonathan Pryor
On Aug 11, 2011, at 2:02 PM, chobo2 wrote: > I found my package name threw R.java but still won't grab the id of my > image. I am not sure what I am doing wrong. Odd. Can you provide an example then? Thanks, - Jon ___ Monodroid mailing list Monodroid@

Re: [mono-android] How to use Resources.GetIdentifier()?

2011-08-11 Thread chobo2
Ok I found my package name threw R.java but still won't grab the id of my image. I am not sure what I am doing wrong. If anyone has a better way I am all ears. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-use-Resources-GetIdentifier-tp4687726p4690392.htm

Re: [mono-android] Disk Full error while copying DB to emulator

2011-08-11 Thread Jonathan Pryor
On Aug 11, 2011, at 11:08 AM, vsr28 wrote: > This works fine with small database size but when i tries to do the same > with 38MB size of SQLite database then it gives me error of Disk Full after > running my application and hence application Unable to connect with > database. That's a rather larg

Re: [mono-android] Disk Full error while copying DB to emulator

2011-08-11 Thread Mike Child
Check to see how much space is available on your device. If your app & data is being deployed to your internal memory and not an SD card you may actually be out of space. Mike Child On Thu, Aug 11, 2011 at 11:08 AM, vsr28 wrote: > Hi Guys > > I have created one sample application to fetch

[mono-android] Disk Full error while copying DB to emulator

2011-08-11 Thread vsr28
Hi Guys I have created one sample application to fetch SQLite database records. It is working properly when database size is small. I kept SQLite database in Asset folder of Monodroid application and copying it to device and then tries to connect with it. This works fine with small database

Re: [mono-android] Slow launch

2011-08-11 Thread Matthew Groves
Here's a splash screen example from an older forum post from Brian Long that's worked for me (see also: http://mono-for-android.1047100.n5.nabble.com/Slow-poor-performance-td4390223.html;cid=1313068734524-953 ) http://blong.com/Downloads/MonoAndroidJavaSplashScreenApp.zip It's pretty simple, and

Re: [mono-android] Slow launch

2011-08-11 Thread Jonathan Pryor
On Aug 11, 2011, at 4:25 AM, BluePosition wrote: > Jonathan Pryor-2 wrote: >> That is, it launches in 2.3s. > > This is way to slow. If 2.3s is too slow for startup, would a splash screen work? Unfortunately we have no samples for what to do for custom splash screens, but it involves writing a

[mono-android] GZipStream does nothing

2011-08-11 Thread tsukrov
Hi! As I found GZipStream does nothing in Release 1.0.2. Read reads 0 bytes/ Write writes 0 bytes. Please confirm. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/GZipStream-does-nothing-tp4689438p4689438.html Sent from the Mono for Android mailing list archive a

Re: [mono-android] How to connect Sqlite Database with Monodroid?

2011-08-11 Thread Karl Heinz Brehme Arredondo
You can "print" somewhere the value of dbPath = Path.Combine ( Environment.GetFolderPath (Environment.SpecialFolder.Personal), FileName); Then you can see exactly where is the correct path where is the database. And this folder is read/write, inside

Re: [mono-android] Slow launch

2011-08-11 Thread WyrmUK
The app I'm writing starts up in around 2 seconds from cold on a Dell Streak 5 and is pretty fast. Are you doing a lot in your OnCreate? I'm only doing a minimal amount in my OnCreate and am using an AsyncTask to do any long-winded start-up stuff. BluePosition wrote: > > Thank you for the answer

Re: [mono-android] How to get better debug information while debugging?

2011-08-11 Thread WyrmUK
There are a few issues with the debugger but you can usually work around them. If an exception is being thrown then make sure there is somewhere to catch it and put the breakpoint there. Write debug messages to the Log (you can always #if DEBUG then so they don't go into the release) and view them

Re: [mono-android] SurfaceHolder AddCallback random errors

2011-08-11 Thread WyrmUK
Hi. I think V1.0.2 has solved this problem. Since installing that I've not had the issue at all. Here's to all you who helped made the release happen. Cheers, Laurence. WyrmUK wrote: > > Hi. > I'm trying to implement an activity which previews the camera and allows a > picture to be taken. > How

Re: [mono-android] Slow launch

2011-08-11 Thread BluePosition
Thank you for the answer. Jonathan Pryor-2 wrote: > > > That is, it launches in 2.3s. > > This is way to slow. And it is not only in the emulator. I've been running the app on a HTC Sensation and the startup speed isn't much better on that device. The app shoul be able to start as quickly as