Re: [mono-android] Sqlite error on Android version 4.1/4.2/4.3

2014-01-03 Thread was
Hi Steve, I have had a couple of Beta testers using Android 4.1 (or later) devices for a few months now with no problems reported. ExecuteNonQuery is used extensively in the app to write/update records to the SQLite db using insert and update commands. I think the app was compiled using mono

Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-24 Thread was
After some xperimentation, I found using: $ adb shell cat /data/data/App.AppName/files/appname.db to copy the file to the PC results in a slightly larger file that cannot be opened by the PC's sqlite database (RazorSQL), while the file received using: adb pull /data/data/App.AppName/files/appna

Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-23 Thread was
Jon, Looking at the options, it seems that: using (var o = new StreamWriter(OpenFileOutput("appname.db", FileCreationMode.WorldReadable))) should solve the problem. However, I'm not familiar with StreamWriter and how to use it to copy the Assets empty sqlite database file - say appname

Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-23 Thread was
Many thanks Jon for your very comprehensive reply. I'll have to digest your response and try the methods therein - which look as though they should resolve my problems with the Nexus permissions. Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Changing-Fol

Re: [mono-android] Changing Folder/File permissions in MfA

2012-10-23 Thread was
Any answer to this? Is using permission: MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE the way foward? If so, why are they not included in the required permissions' list? Thanks...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Changing-Folder-File-permissi

[mono-android] Changing Folder/File permissions in MfA

2012-10-22 Thread was
I use ADB to transfer my app's sqlite file between PC and devices with my production app. However, while working fine up to now with many different devices, it doesn't work with a Galaxy Nexus running 4.1.1. Running the following adb command to check the permissions: "C:\Program Files (x86)\AppName

Re: [mono-android] MFA 4.0.6 on the Beta Channel

2012-03-31 Thread was
My App (built with MfA 4.0.4) crashes immediately when run on 4.0.3 (ICS) devices. I have re-built it with MfA 4.0.6 Beta and that seems to have resolved the issue. Any idea when 4.0.6 will be 'released'? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble

Re: [mono-android] Need help with an error

2012-01-28 Thread was
Is this similar to Bug 2528 - still there in 4.0.3? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Need-help-with-an-error-tp5435835p5437699.html Sent from the Mono for Android mailing list archive at Nabble.com. __

Re: [mono-android] Mono for Android 4.0.3 Release Available

2012-01-19 Thread was
As it's a Beta, I changed Tools>Options>Mono for Android>Settings>Notify of Updates of Quality to Beta and the update message disappeared. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Mono-for-Android-4-0-3-Release-Available-tp5155791p5157655.ht

Re: [mono-android] Strange problem with a packaged and signed app

2012-01-08 Thread was
Hi, Yes, the signed apk is not for distribution. I sign and align the other release apk for distribution 'manually' using, for example: E:\Java\jdk1.6.0_25\bin\jarsigner -verbose -keystore appname_android.keystore "E:\Android Project\AppName\V100\AppName.AppName.apk" appname E:\Android\android-s

Re: [mono-android] Strange problem with a packaged and signed app

2012-01-07 Thread was
Did you uninstall the unsigned (by you) version before trying to install the signed (by you) version? Use Settings>Applications>Manage Applications>App Name>Uninstall. If you don't the installation will fail. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.na

Re: [mono-android] Crash in Release Mode

2012-01-04 Thread was
Thanks Jon. The file name cases in the Obj Debug and Release Assets folders were indeed different! Should have spotted that! Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Crash-in-Release-Mode-tp5099176p5120429.html Sent from the Mono for Andr

Re: [mono-android] Handling Config Changes

2011-12-30 Thread was
Thanks for checking Enrico. I'm just using an alert message in OnCreate and it is only displayed once when the activity is started; not when the orientation is changed. I'm using MfA 1.2, so I'll check if it works with MfA 4. Regards...Andrew -- View this message in context: http://mono-for-andr

[mono-android] Handling Config Changes

2011-12-30 Thread was
I want to restart an activity when the user changes the screen orientation. The docs say: "public static final int configChanges Since: API Level 1 Specify one or more configuration changes that the activity will handle itself. If not specified, the activity will be restarted if any of these co

Re: [mono-android] Crash in Release Mode

2011-12-28 Thread was
Sorry, it's not different on my computers. This should read: Not quite! In Release mode I have to use: Stream myInput = Assets.Open("SkylogPro.db"); whereas in Debug mode I have to use: Stream myInput = Assets.Open("skylogpro.db"); The file in the Assets folder is: SkylogPro.db! How does o

Re: [mono-android] Crash in Release Mode

2011-12-28 Thread was
Not quite! On my laptop I have to use: Stream myInput = Assets.Open("SkylogPro.db"); whereas on my Desktop I have to use: Stream myInput = Assets.Open("skylogpro.db"); The file in the Assets folder on both machines is: SkylogPro.db! How does one clear the Assets cache? I've deleted and added

Re: [mono-android] Crash in Release Mode

2011-12-27 Thread was
Solved! The problem was that originally I used the SQLite file name 'SkylogPro.db' in; Stream myInput = Assets.Open("SkylogPro.db"); I then changed it to 'skylogpro.db': Stream myInput = Assets.Open("skylogpro.db"); and also changed the file name t

Re: [mono-android] Crash in Release Mode

2011-12-26 Thread was
I've gone back to MfA 1.2.0, so that isn't a consideration I'm afraid - wish it was! Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Crash-in-Release-Mode-tp5099176p5101544.html Sent from the Mono for Android mailing list archiv

Re: [mono-android] Crash in Release Mode

2011-12-26 Thread was
I notice that AboutAssets.txt says to use: InputStream input = Assets.Open ("my_asset.txt"); I get a missing directive/assembly error with InputStream and, hence, use Stream as other users have recommended. Could this be the problem? Regards...Andrew -- View this message in context: http://mon

Re: [mono-android] Crash in Release Mode

2011-12-25 Thread was
131224K available on my phone. 409296k available on the emulator. After working for a while with release builds generated on my laptop, the following line now fails again in release mode: Stream myInput = Assets.Open("skylogpro.db"); Works fine in debug mode. This all I get in the adb log: --

Re: [mono-android] Crash in Release Mode

2011-12-24 Thread was
Well, I'm at my in laws for Xmas with my laptop and, surprise, the release build works ok on the laptop in the emulator and phone. Obviously, something has become corrupted on my Desktop. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Crash-in-Rel

Re: [mono-android] Crash in Release Mode

2011-12-24 Thread was
And this is where it's crashing: //Open your local db as the input stream Stream myInput = Assets.Open(@"skylogpro.db"); Why is this not working in Release mode? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Crash-in-Release-Mode-tp5099176p50

[mono-android] Crash in Release Mode

2011-12-24 Thread was
ush(); myOutput.Close(); myInput.Close(); } has worked for many months. However, today it crashes (with no error messages) the app in the emulator in Release mode, but works ok in Debug mode. I was using MfA 4.0.1, but I have gone back to MfA V1.2.0 - but no difference. Any ideas? Regards...

Re: [mono-android] Adjust Emulator's Resolution

2011-12-22 Thread was
Never mind. Use esc as backpress and select the Sample Soft Keyboard in Settings>Language & keyboard settings. Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Adjust-Emulator-s-Resolution-tp5094302p5094835.html Sent from the Mono for Android mailing list arc

Re: [mono-android] Adjust Emulator's Resolution

2011-12-22 Thread was
Thanks Enrico. I now have the app installed on a 1280x800 emulator but all I see is the screen and no keyboard. I have both Keyboard and Keyboard lid support installed, but no sign of them. What am I missing? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.na

[mono-android] Adjust Emulator's Resolution

2011-12-22 Thread was
Is it possible to change the emulator's screen resolution? I have a customer with a Galaxy note with a 5.3” WXGA (1280 x 800) screen who has text overlapping problems. Can I emulate this? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Adjust-Emula

Re: [mono-android] Release Packaging Failed

2011-12-15 Thread was
After further investigation, Bug 2528 issued by Resco refers. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Release-Packaging-Failed-tp5071255p5077726.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] Release Packaging Failed

2011-12-15 Thread was
Never mind, there is obviously something wrong with the linking of my user assemblies. Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Release-Packaging-Failed-tp5071255p5077154.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] Release Packaging Failed

2011-12-15 Thread was
Well, packaging in Release mode works ok only if 'Use Shared Runtime' is checked. Linking is set to 'SDK and User Assemblies'. As the shared runtime isn't used in the release build, why is this so? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Re

Re: [mono-android] Release Packaging Failed

2011-12-13 Thread was
No, it has only worked with MfA 1.2.0. Did all you suggested, and packaging still fails. I now see the following messages. It looks as though it may be a problem with the Resco controls, so will flag it to them. Regards...Andrew _CompileJava: JavaSourceFiles: JavaLibraries: AddOnPlatf

[mono-android] Release Packaging Failed

2011-12-13 Thread was
Using M4A V4 in VS2010, my previously working app now won't create a release package. It works ok in debug mode on the emulator and San Francisco - not using 'Fast Deployment though! The Build messages are below. Have cleaned and rebuilt the app and re-installed MfA, but get the same error. Regar

Re: [mono-android] Deploy to device without going through store

2011-11-29 Thread was
Just use adb.exe in the \Android\android-sdk\platform-tools folder in cmd.exe or a bat file as follows: adb.exe install "C:\Program Files (x86)\yourapp.apk" Make sure Settings>Applications>Development>USB debugging is checked on your device. Regards...Andrew -- View this message in context: ht

Re: [mono-android] Test on Real Device before paying for a licence?

2011-11-25 Thread was
You're right, I'm only loading one row of config/preferences data on startup, so I don't think that increases the startup time by much at all; all other SQLite activities are only carried out when needed. As you say, hopefully the startup times can be brought down somewhat in future MfA updates. R

Re: [mono-android] Test on Real Device before paying for a licence?

2011-11-25 Thread was
Hi, Well, my app takes 6 secs to start up on my ZTC San Francisco. However, the main activity reads quite a few preferences from a SQLite table on startup, so that probably slows things a bit. I haven't really looked at optimising startup times yet, so I'm not sure whether or not it could be speed

Re: [mono-android] Telenor HTC HTC EVO 3D X515m

2011-10-24 Thread was
The only permission required is WRITE_EXTERNAL_STORAGE. The potential purchaser is Russian, but I don't know if that has any bearing on the matter eg, language setting etc. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Telenor-HTC-HTC-EVO-3D-X515

[mono-android] Telenor HTC HTC EVO 3D X515m

2011-10-21 Thread was
A customer tried to download my app from the Android Market to a Telenor HTC HTC EVO 3D X515m but gets the message: 'This app is incompatible with your Telenor HTC HTC EVO 3D X515m.' My app is built for OS 2.1 and above and armeabi and armeabi-v7a and the phone is OS 2.3. Any ideas what the probl

Re: [mono-android] Packaging Failed Issue

2011-10-13 Thread was
was wrote: > > the icon name is 'skylog' in all folders. This is as per the Android > guidelines. I also have an entry in the AndroidManifest: > > android:icon="@drawable-hdpi/skylog"> > > Never mind, the solution was to change

[mono-android] Packaging Failed Issue

2011-10-13 Thread was
I have low, medium and high resolution icons in the Resources sub-folders: drawable-hdpi drawable-mdpi drawable-ldpi the icon name is 'skylog' in all folders. This is as per the Android guidelines. I also have an entry in the AndroidManifest: However, I get a 'Packaging Failed' error when

[mono-android] Deployment error

2011-10-07 Thread was
When trying to upload my apk to the Market, I get error: the file is invalid: error: dump failed because no androidmanifest.xml found The AndroidManifest.xml file is in the apk which has been signed and zipaligned. I'm using a package name: "SkylogPro.SkylogPro" and, after zipaligning: "Skylog

Re: [mono-android] Date Format in Monodroid

2011-09-27 Thread was
Ok, Bug 1068 submitted. Given that at least one Android device I have encountered doesn't have an English(United Kingdom) locale, UK users with this device have to use the US m/d/ date format - which they are unhappy with! Is there a workround for this I wonder? Regards...Andrew -- View this

Re: [mono-android] Date Format in Monodroid

2011-09-26 Thread was
Right, the problem is that UseUserOverride is false in the following: System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.InstalledUICulture; DateTimeFormatInfo dtfi = ci.DateTimeFormat; if (ci.UseUserOverride)... even when Settings>Date & time>Automat

Re: [mono-android] Date Format in Monodroid

2011-09-26 Thread was
Thanks Glen. However, the issue I have is that my dates are always formatted according to the Android device's 'Settings>Language & keyboard>Select Locale' setting. The 'Settings>Date & time' format has no effect. I can't figure out how to get the 'Settings>Date & time' format to override the loca

[mono-android] Date Format in Monodroid

2011-09-25 Thread was
How do I make all dates display in the 'Settings>Date & Time>Select date format' date format in my app? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Date-Format-in-Monodroid-tp4838662p4838662.html Sent from the Mono for Android mailing list ar

Re: [mono-android] Android 4.0 Ice Cream Sandwich

2011-09-05 Thread was
Thanks for the detailed explanation Jon. I'm including both the armeabi and armeabi-v7a runtimes in my apk, so I guess my app should be ok. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Android-4-0-Ice-Cream-Sandwich-tp4765247p4771304.html Sent

Re: [mono-android] Android 4.0 Ice Cream Sandwich

2011-09-04 Thread was
Ah..Ok, thanks Greg. Shouldn't be a problem for my app then. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Android-4-0-Ice-Cream-Sandwich-tp4765247p4768075.html Sent from the Mono for Android mailing list archive at Nabble.com. __

Re: [mono-android] Android 4.0 Ice Cream Sandwich

2011-09-04 Thread was
Our app appears to run ok on a Beta tester's Acer A500 honeycomb tablet running OS 3.1. What problem areas should we look out for on Honeycomb devices with apps compiled using Mono for Android 1.0.3? Thanks...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/A

Re: [mono-android] SQLite Close

2011-08-27 Thread was
Works fine on my 2.1 device although Close() doesn't work as you found; I just leave the connection open while the app is running as I access different tables in the db all the time. However, I guess there may be other SQLite functions which don't work in 2.1, but the basic ones I use to open, read

Re: [mono-android] SQLite Close

2011-08-27 Thread was
Can anyone comment on this? I'm not sure which minimum Android OS version to target at the moment: 2.1 or 2.2. If I could find out which sqlite functionality was added in 2.2, that would help. Thanks. Regards...Andrew -- View this message in context: http://mono-for-android.10471

Re: [mono-android] SQLite Close

2011-08-25 Thread was
SQLite seems to work fine on my San Francisco with OS 2.1 using basic sql functionality. I don't create the db in the app. However, should we only target OS 2.2 and later devices? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/SQLite-Close-tp47319

Re: [mono-android] App crashes

2011-08-24 Thread was
Initial testing reveals that Update 1.0.3 has also solved my problems. My Beta testers will, hopefully, confirm. Many thanks. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp4642075p4729725.html Sent from the Mono for Android mailing

Re: [mono-android] App crashes

2011-08-23 Thread was
I'm experiencing the crashes on both the emulator and on various hardware too - an Acer tablet and a San Francisco mobile phone. So, hopefully, this will be fixed by the next update. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/App-crashes-tp464

Re: [mono-android] App crashes

2011-08-22 Thread was
I wonder if this relates to the problems I'm having using Resco's AdvancedList and DetailView (DV)components when scrolling records/items. My recent Resco forum message on this subject: /'Further info: With 6 ComboBoxes containing nearly 1500 records in total in the DV, the app crashes after a few

Re: [mono-android] Detecting Keystokes

2011-08-22 Thread was
Thanks John, I'll see if I can implement this with your code. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Detecting-Keystokes-tp4714994p4724111.html Sent from the Mono for Android mailing list archive at Nabble.com.

[mono-android] Detecting Keystokes

2011-08-19 Thread was
How can I detect soft and hard keyboard strokes in mfa? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Detecting-Keystokes-tp4714994p4714994.html Sent from the Mono for Android mailing list archive at Nabble.com. __

Re: [mono-android] Monodroid App on OS3

2011-08-13 Thread was
Thanks Jon. It turns out that using the armeabi-v7a architecture solved the problem after all - finger trouble! All works ok on OS 3.1 now. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Monodroid-App-on-OS3-tp4692796p4696395.html Sent from the Mo

Re: [mono-android] Monodroid App on OS3

2011-08-12 Thread was
I'll do that tomorrow. Herewith Toolbar.axml. However, during testing, I have commented out the code which uses this resource - and everything else in the OnCreate procedure except for: base.OnCreate(bundle); SetContentView(Resource.Layout.Main); so I don't think it can have any bearing on the

Re: [mono-android] Monodroid App on OS3

2011-08-12 Thread was
I have included the armeabi-v7a architecture in my release build (together with armeabi) but it makes no difference; the app still crashes as described earlier. I have commented out all code in my main form's activity except for: protected override void OnCreate(Bundle bundle) {

Re: [mono-android] ZeroConfig in Monodroid

2011-08-02 Thread was
Forget ZeroConf; use adb.exe over usb. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/ZeroConfig-in-Monodroid-tp4531166p4657952.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] getExternalStorageDirectory in Monodroid

2011-07-30 Thread was
Thanks Carlo, the following works: var externalStorageDirectory = Android.OS.Environment.ExternalStorageDirectory.ToString(); Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/getExternalStorageDirectory-in-Monodroid-tp4649338p4649501.html Sent fro

[mono-android] getExternalStorageDirectory in Monodroid

2011-07-30 Thread was
How do I get the external storage directory in Monodroid - as per Android code: import android.os.environment File extDir1 = Environment.getExternalStorageDirectory(); Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/getExternalStorageDirectory-in-

Re: [mono-android] ZeroConfig in Monodroid

2011-07-29 Thread was
Ok, but our requirements are more complex: We use a Delphi Conduit app on the PC which, when run, automatically connects to the iPhone over Wi-Fi and displays the User name (using ZeroConf) on a Sync page button on the iPhone. The User taps the button and the iPhone sqlite file is transferred to th

Re: [mono-android] ZeroConfig in Monodroid

2011-07-29 Thread was
between Android devices and PCs would be a fundamental requirement for many Android apps, so I was surprised to see this capability missing from Monodroid. Anyway, hopefully Xamarin Mono for Android V1 will help in this regard. My Android customers are tapping their feet! Regards...Andrew -- View

Re: [mono-android] ZeroConfig in Monodroid

2011-07-28 Thread was
I'm looking to use ZeroConf over Wi-Fi as we do in our iPhone apps. From googling, I understand that jmDNS has to be used, but I can't figure out how to use it in Monodroid - or even if it's possible? Support said: 'Thanks for your interest in Xamarin. This requires a little bit of speculation on

Re: [mono-android] ZeroConfig in Monodroid

2011-07-26 Thread was
My Android app is now complete except fror the ability to transfer an SQLite file to/from PC's. Any update to the inclusion of this capability in Xamarin V1? Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/ZeroConfig-in-Monodroid-tp4531166p4634004.

Re: [mono-android] ZeroConfig in Monodroid

2011-07-21 Thread was
It's ZeroConf of course! Xamarin support advised that it may be possible to use jmDNS in the next update - here's hoping, as my completed Android app is useless without a PC-App file syncing capability. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.c

Re: [mono-android] ZeroConfig in Monodroid

2011-06-30 Thread was
No I haven't. I don't see that as an available reference assembly in Monodroid. Regards...Andrew -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/ZeroConfig-in-Monodroid-tp4531166p4538220.html Sent from the Mono for Android mailing list archive at Nabble.com. _

Re: [mono-android] ZeroConfig in Monodroid

2011-06-30 Thread was
I'm really disappointed by the lack of any response. If our Monodroid apps cannot communicate with PC's, we'll have to drop Monodroid and redo all our work in Java - which we have no expertise in - and lose all our investments in Monodroid and Resco components. Before we take this drastic step, can

[mono-android] ZeroConfig in Monodroid

2011-06-28 Thread was
I need to transfer an sqlite file to/from Android - PC using a custom Bonjour for Windows app on the PC - as we do in our iPhone app. Is there a zeroconfig api in Monodroid to achieve this? I believe it can be done in Android using JmDNS, but I don't see any References to this Java package in Monod