Re: [mono-android] Programmatically determine if App is running on Emulator

2011-10-18 Thread Miljenko Cvjetko
Hi Just from * Android.OS.Build http://developer.android.com/reference/android/os/Build.html Found several answers here: On 2011.10.18 02:46, Steve Sharrock wrote: This must be fairly simple; but, I haven't found the answer (well, it is late). */Steve Sharrock/* Architecture/Design/Progr

Re: [mono-android] Programmatically determine if App is running on Emulator

2011-10-18 Thread Miljenko Cvjetko
Hi Just from top of my head * Android.OS.Build http://developer.android.com/reference/android/os/Build.html Android.OS.Build.PRODUCT=="google_sdk" Android.OS.Build.MODEL=="google_sdk" it seems to change with versions, s

[mono-android] Problem Connection Sqlserver in Release Mode

2011-10-18 Thread antoniodst
Hi, i have a problem connecting sql server in release mode, i get error : "SqlServer does not exist or Connection Refused" In debug mode (using Shared runtime ) i have no problem to connect, here is my code string connectionString = "Data Source=192.168.2.123,1433;Initial Catalog=Pos;Persist Se

[mono-android] ORM for Mono for Android

2011-10-18 Thread Builder
Hello "Mono for Android" developers, I'm searching for ORM working with Mono for Android and Sqlite. So far I found the following ORMs working with MonoTouch: Vici CoolStorage (works good, API is not so cool) Catnap-ORM (very nice API, unable to run it, missing any example how to use it with Monot

[mono-android] Mono.Data.Sqlite and cursors

2011-10-18 Thread bmellac
Hi, have just a simple question, trying not to waste too much time on it : i'm trying to create a SimpleCursorAdapter for an AutocompleteTextView, based on a sqlite db. For that, I have to implement the IFilterQueryProvider interface. More precisely, I'm working on the public Android.Database.ICu

Re: [mono-android] Problem Connection Sqlserver in Release Mode

2011-10-18 Thread antoniodst
Solved. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Problem-Connection-Sqlserver-in-Release-Mode-tp4912877p4913091.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mailing list Mono

Re: [mono-android] Problem Connection Sqlserver in Release Mode

2011-10-18 Thread gabriel.b...@gmail.com
How? 2011/10/18 antoniodst > Solved. > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Problem-Connection-Sqlserver-in-Release-Mode-tp4912877p4913091.html > Sent from the Mono for Android mailing list archive at Nabble.com. > _

Re: [mono-android] ORM for Mono for Android

2011-10-18 Thread Greg Shackles
I've used sqlite-net with Mono for Android and it's worked well. I have some info about it in this post: http://www.gregshackles.com/2011/02/using-a-database-in-monodroid-applications/ On Tue, Oct 18, 2011 at 5:03 AM, Builder wrote: > Hello "Mono for Android" developers, > > I'm searching for OR

[mono-android] JNI DeleteLocalRef warning message

2011-10-18 Thread Andrew Sinclair
Hello, I'm seeing lots of messages in the adb log like JNI WARNING: DeleteLocalRef(0x40015170) failed to find entry (valid = 1) These happen during a series of HttpWebRequests. They seem to be benign most of the time but I'm getting occasional Stracktrace messages. Are they anything to

Re: [mono-android] Mono.Data.Sqlite and cursors

2011-10-18 Thread Greg Shackles
ICursor is part of the Android framework, so it gets returned when you use the standard data access methods. Since you're using the .NET data access classes, instead of using a SimpleCursorAdapter I would recommend using something like an ArrayAdapter [1] or you can extend BaseAdapter to create you

Re: [mono-android] Mono.Data.Sqlite and cursors

2011-10-18 Thread bmellac
Thx for the answers ! SO I have two (maybe 3) solutions : - use the Android sqlite classes : so it won't be crosscompilabe, but maybe it's just a little drawback if I manage to isolate the platform UI specific code... But for that , I need to actually manage to use Android's sqlite framework...

Re: [mono-android] Mono.Data.Sqlite and cursors

2011-10-18 Thread Greg Shackles
You're not forced to use SQLiteOpenHelper. It gives nice benefits as far as creating/updating the database for you, but it's definitely not required. My suggestion would be to have your data layer return a collection of your objects that the application can consume. Then your data layer can be more

Re: [mono-android] Mono.Data.Sqlite and cursors

2011-10-18 Thread bmellac
You also mentioned not knowing how to call into a base class constructor from the deriving class. In my sample code you posted, you can see I'm doing that in my helper class: public NoteDatabaseHelper(Context context) : base(context, DATABASE_NAME, null, DATABASE_VERSION) Sometime I surprise m

Re: [mono-android] Mono.Data.Sqlite and cursors

2011-10-18 Thread Greg Shackles
I certainly wouldn't recommend grabbing the entire contents of the table and shoving that into the view. Instead what you could do is override the AutoCompleteTextView's PerformFiltering() method and run your query based on the actual search term instead of selecting everything. On Tue, Oct 18, 20

Re: [mono-android] ArrayAdapter & NotifyDataSetChanged not showing new items

2011-10-18 Thread Stuart Johnson
Android.Runtime.JavaList has fixed it, thank you. On 16/10/11 03:13, Jonathan Pryor wrote: > On Oct 15, 2011, at 10:44 AM, Stuart Johnson wrote: >> I have a List<> with an ArrayAdapter that shows the contents of that list. >> >> If I make a change to one of those items in the List<>, and do >>

Re: [mono-android] ORM for Mono for Android

2011-10-18 Thread Tom Opgenorth
Related to this (but not directly an answer), if you search the Android developer's mailing list, you'll find that there have been a couple of discussions about ORM's in Android. DB4O was mentioned as an alternative (i.e. why use a database at all). IIRC, there was some discussion as well about t

Re: [mono-android] JNI DeleteLocalRef warning message

2011-10-18 Thread Jonathan Pryor
On Oct 18, 2011, at 7:33 AM, Andrew Sinclair wrote: > I’m seeing lots of messages in the adb log like > > JNI WARNING: DeleteLocalRef(0x40015170) failed to find entry (valid = 1) > > These happen during a series of HttpWebRequests. They seem to be benign most > of the time but I’m getting occa

Re: [mono-android] SMS Message Receiver

2011-10-18 Thread mcgear
Fantastic!!! Thank you for the help on this! I was now able to get the object array, the byte array and eventually get the SMS Messages from those bytes. Note: The GitHub link provided is not linking anywhere... However now I am facing another issue... After i get my messages (of which there

Re: [mono-android] Talking to a Google Maps activity

2011-10-18 Thread royeagle
Hi Tomasz, Did you get this working? I have the same requirements in my application. Please share. Roy -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Talking-to-a-Google-Maps-activity-tp4872012p4914688.html Sent from the Mono for Android mailing list archive at N

[mono-android] Emulator custom resolution vs. Device same resolution

2011-10-18 Thread Steve Sharrock
I've been testing on Galaxy Tab (600x1024 - Pixel Fmt 4 - Dpi X 168.8 Dpi Y 169.3 - Density 1.5 Density Dpi 240). All works fine because my "Styles" are retrieved from Resources/Values-large. Since I have to return the device, I've been trying to setup an emulator image with the same resolution.

Re: [mono-android] Emulator custom resolution vs. Device same resolution

2011-10-18 Thread Steve Sharrock
Forgot to mention on the emulator the dpiX is 240, dpiY 240 and Density Dpi 240. Steve Sharrock Architecture/Design/Programming www.sharkcode.com http://www.sharkcode.com/> _ From: Steve Sharrock [mailto:st...@sharkcode.com] Sent: Tuesday, October 18, 2011 10:47 AM To: 'Discussions

[mono-android] ItemClick not fired on ListView after NotifyDataSetChanged

2011-10-18 Thread profexorgeek
I have a ListView of product review titles that is populated by a custom ReviewListAdapter which extends BaseAdapter. When a review title is clicked it expands to show the review text. When the activity is loaded, a thread is created to load the data from an API. Once data is loaded it updates the

[mono-android] Building the .apk VS2010

2011-10-18 Thread Dustin Sprick
Is there a way to build the .apk without deploying it to the device? I am using VS2010 and building the solution, but that does not actually package the application. Mono seems to package it on the deploy step. Can this be done without a device attached? I am building an install script that create

Re: [mono-android] Building the .apk VS2010

2011-10-18 Thread El-Sayed Mohamed
Build -> Package project for Android(.apk) Thanks, El-Sayed From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Dustin Sprick Sent: Tuesday, 18 October, 2011 10:28 PM To: monodroid@lists.ximian.com Subject: [mono-android] Building the .ap

[mono-android] Building the .apk VS2010

2011-10-18 Thread Dustin Sprick
Is there a way to build the .apk without deploying it to the device? I am using VS2010 and building the solution, but that does not actually package the application. Mono seems to package it on the deploy step. Can this be done without a device attached? I am building an install script that create

Re: [mono-android] Building the .apk VS2010

2011-10-18 Thread Jonathan Pobst
build the .apk: msbuild.exe MyApp.csproj /p:Configuration=Release /t:PackageForAndroid or build and sign the .apk: msbuild.exe MyApp.csproj /p:Configuration=Release /t:SignAndroidPackage Jonathan On 10/18/2011 3:55 PM, Dustin Sprick wrote: > Is there a way to build the .apk without deploying it

[mono-android] Samsung Galaxy... Mono and Android 2.1

2011-10-18 Thread mcgear
I did notice there was already a thread on the Samsung device, but felt that my question better fit a new post... We are developing an app for Android with Mono and our client's baseline device is the Samsung Galaxy Android Version 2.1-update 1. When trying to load the mono app on a Galaxy with 2

Re: [mono-android] Samsung Galaxy... Mono and Android 2.1

2011-10-18 Thread Jonathan Pobst
On 10/18/2011 4:07 PM, mcgear wrote: > Is it possible to run a Mono Android app on a Galaxy with 2.1-U1? No, it is not. From the release notes: http://android.xamarin.com/Releases/Mono_for_Android_1/Release_1.0 Warning: Samsung shipped a broken kernel with Android 2.1, which is not able to supp

[mono-android] Can create new UdpClient() in Debug build, not Release?

2011-10-18 Thread HSSoftware
I create a couple of UdpClient's for an app I am building. All works well when, from VS 2010, I am in Debug mode. However, when I switch to Release mode, and Deploy to the cell phone, I get an Access Denied exception somewhere while executing these lines of code: if (mUdpClientTx =

Re: [mono-android] Can create new UdpClient() in Debug build, not Release?

2011-10-18 Thread HSSoftware
Problem solved. I was missing the INTERNET permission for the app. Curious that it causes it to fail for Release, but not for Debug. Maybe the permission is automatically turned on for Debug to allow debugging over WiFi? -- View this message in context: http://mono-for-android.1047100.n5.nabbl

Re: [mono-android] Talking to a Google Maps activity

2011-10-18 Thread Tomasz Cielecki
I've decided to postpone this a while and implement on iPhone first and revisit it later. I will indeed share when I find out something. On Tue, Oct 18, 2011 at 7:49 PM, royeagle wrote: > Hi Tomasz, > > Did you get this working? > I have the same requirements in my application. > Please share. >

Re: [mono-android] Can create new UdpClient() in Debug build, not Release?

2011-10-18 Thread Jonathan Pobst
Add the Internet permission to your project. Project Properties -> Android Manifest -> Permissions We add this by default in Debug mode because we used to need it to enable the debugger. We no longer need it, but I haven't gotten around to removing it. Jonathan On 10/18/2011 4:38 PM, HSSoft

Re: [mono-android] Activation Lost

2011-10-18 Thread Paul Breckon
I'm experiencing the same thing. In my case I believe it is caused by switching between vpn'ing from home on my laptop, and connecting it directly to the work network. Often when I change between these two I have to re-activate, taking up another of my licenses until I run out, and have to contact