Re: [mono-android] Layout - Activity with ListView and TextView below it

2012-01-16 Thread Benjamin Baldacci
To have the same size (for a button for exemple) you have to use dp instead of px. Then your UI does not depend of the density. But if you try to change the resolution, you'll find that your view is too long compare to the screen (or too small). To do this you have to create different layouts for

Re: [mono-android] VS not recognizing manifest for my application after code restructuring

2012-01-16 Thread Wally McClure
Chris, Thanks. This is really good information. it just reinforces to me the finicky-ness of adb. Wally From: chris.toss...@usa.g4s.com To: chris.toss...@usa.g4s.com; monodroid@lists.ximian.com Date: Tue, 17 Jan 2012 02:57:01 + CC: mahesh.mengh...@usa.g4s.com; simon.goldsh...@usa.g4s.com

Re: [mono-android] VS not recognizing manifest for my application after code restructuring

2012-01-16 Thread Tossing, Chris
I'm not sure what was going on, but I believe that what fixed the problem was killing adb.exe. I found that I was able deploy if I opened the project file for the android application directly instead of opening the solution file, which made me think it might be something wrong with the solution

[mono-android] VS not recognizing manifest for my application after code restructuring

2012-01-16 Thread Tossing, Chris
I just did a significant restructuring of our codebase, and Visual Studio is now not recognizing our android application project as a deployable project. It is also not recognizing the AndroidManifest.xml file when I go to the project property pages, and when I click the "Click to add one" link

Re: [mono-android] package R does not exist

2012-01-16 Thread Jonathan Pryor
On Jan 16, 2012, at 8:42 PM, digitalml wrote: > I have verified that the package path is the correct .net one. How are you verifying this? It should be a lowercased version of AndroidManifest.xml /manifest/@package attribute value - Jon ___ Monodroid

Re: [mono-android] package R does not exist

2012-01-16 Thread Jonathan Pryor
On Jan 16, 2012, at 8:10 PM, digitalml wrote: > I'm calling a .java file via JNI that is using a resource path via > R.path.resource. In regular java this works fine because R resolves to the > package. In MonoDroid this is not working because R does not resolve to the > MonoDroid package. I've tr

Re: [mono-android] JNI Help Please

2012-01-16 Thread Jonathan Pryor
On Jan 16, 2012, at 8:06 PM, digitalml wrote: > I still have the issue of the callback though. What happens in the .java code > is that when a hardware event occurs it fires the onReceiveMsgCardData() > event. My question from before remains the same: what code is calling onReceiveMsgCardData()

Re: [mono-android] package R does not exist

2012-01-16 Thread digitalml
The resource I'm trying to get an ID for is an xml file located in the .Net Resouces/raw folder. I tried this in the .java file to no avail. int resourceID = getResources().getIdentifier("xmlFileName", "raw", ".Net.Package.Path"); Note: I've substituted the values in getIdentifier() with fake

[mono-android] package R does not exist

2012-01-16 Thread digitalml
I'm calling a .java file via JNI that is using a resource path via R.path.resource. In regular java this works fine because R resolves to the package. In MonoDroid this is not working because R does not resolve to the MonoDroid package. I've tried replacing R in the .java file with the MonoDroid p

Re: [mono-android] JNI Help Please

2012-01-16 Thread digitalml
Hi Jon, Thanks for your help. Based on the exception info I was able to fix the issues with the .java code and can now call the methods via JNI. I still have the issue of the callback though. What happens in the .java code is that when a hardware event occurs it fires the onReceiveMsgCardData() ev

Re: [mono-android] Layout - Activity with ListView and TextView below it

2012-01-16 Thread James Lavery
Hi Ben, Thanks - that positions them correctly relative to each other, but are there width/height (well, specifically height) attributes which I can use to make the ListView fill the space left by the TextView, or do I have to specify the height specifically, in px, to do this? James -- View this

Re: [mono-android] Layout - Activity with ListView and TextView below it

2012-01-16 Thread Benjamin Baldacci
I think you could use a RelativeLayout. Put the Textiew on Bottom and the ListView OnTop of the TextView. There is maybe a better solution (because I didn't try it) but the first thing I could try is this :) -- Benjamin Baldacci linkedin On Mon, Jan

[mono-android] Layout - Activity with ListView and TextView below it

2012-01-16 Thread James Lavery
Hi, I'm getting to grips with the layout system in Android, and am probably just being thick here... What I want is to have a ListView which displays a scrolling list of data retrieved from my service, with a TextView below it to show a 'please wait...' message when retrieving data (as in the 'Wri

Re: [mono-android] mgmain JNI_OnLoad - 'Mono' has exited with code 255

2012-01-16 Thread Eric Maupin
Hi Derek, There have been three releases of the Xamarin Mobile API Preview so far, do you know which you are using? If not, you can try the latest version from http://xamarin.com/xamarinmobileapipreview.zip On Mon, Jan 16, 2012 at 4:20 PM, devbuzz wrote: > Hi Jon, > > I'm using the latest Mono

Re: [mono-android] mgmain JNI_OnLoad - 'Mono' has exited with code 255

2012-01-16 Thread devbuzz
Hi Jon, I'm using the latest Mono for Android AFAIK. - i.e. the fast version with the great debugging :) Using a process of elimination I have tracked the error down to the managed Xamarin Mobile API. Specifically it seems to occur in the geolocator.PositionChanged event handler. protected void

Re: [mono-android] mgmain JNI_OnLoad - 'Mono' has exited with code 255

2012-01-16 Thread Jonathan Pryor
On Jan 16, 2012, at 5:34 AM, devbuzz wrote: > I have an activity and a service which crash and completely lock up the > device. That's...very odd. :-/ Which version of Mono for Android is this? Which Android platform? > I see the following in the log: > > *In mgmain JNI_OnLoad > The program 'M

Re: [mono-android] more information in the VS.NET errors

2012-01-16 Thread devbuzz
I second that - it's made troubleshooting MUCH easier! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/more-information-in-the-VS-NET-errors-tp5142888p5149825.html Sent from the Mono for Android mailing list archive at Nabble.com. ___

Re: [mono-android] JNI Help Please

2012-01-16 Thread Jonathan Pryor
On Jan 16, 2012, at 3:16 PM, digitalml wrote: > This fails on the JNIEnv.CallVoidMethod() call. Is there a way to see what > the error actually is? An exception is thrown. Exception.ToString() will also print out the Java-side message and stack trace. Throw the code within a try/catch(Exception

Re: [mono-android] JNI Help Please

2012-01-16 Thread digitalml
Hi Jon, An update to my previous post... I looked into that sanity check code and updated my code based on it's example. IntPtr helperClass = JNIEnv.FindClass("MagHelper/jni_helper"); IntPtr ctor = JNIEnv.GetMethodID(helperClass, "", "()V"); IntPtr methodId = JNIEnv.GetMethodID(helperClass, "Ini

Re: [mono-android] Unexpected Exception from System.Net.WebClient result

2012-01-16 Thread Jonathan Pryor
On Jan 16, 2012, at 4:19 AM, subsembly wrote: > I am still investigating the orginal WebClient problems and found one more > compatibility problem with the WebClient class on Android: This has been filed as: http://bugzilla.xamarin.com/show_bug.cgi?id=2916 Thanks, - Jon

Re: [mono-android] JNI Help Please

2012-01-16 Thread digitalml
Hi Jon, First, thank you for taking the time to create such it a detailed response, it's greatly appreciated Based on what you said, I've made the ctor public in the .java file. I then changed my JNI code to this, but I get an error on the JNIEnv.GetMethodID call. IntPtr _helperClass = JNIE

Re: [mono-android] wcf and android

2012-01-16 Thread phoen52
Hi all, Many thanks for the answer. Jonathan, I need to connect using tcp binding by requirement. Atsushi thanks a lot for your answer. Any know if it's part of the next object to achieve tcp binding for WCF? Many thanks -- View this message in context: http://mono-for-android.1047100.n5.na

Re: [mono-android] Does anyone have a code example for using Google Market Licensing with MonoDroid?

2012-01-16 Thread Mark Eaton
I've started creating a C# helper class. Using JNIEnv I can get the Android Device Id. But I can't create an instance of ABESObfuscator. The signature looks right, it's just when I create the instance. The code below is more where I am up to. using System; using System.Collections.Generic; us

Re: [mono-android] wcf and android

2012-01-16 Thread Atsushi Eno
Even if it were about mono (for non-android), NetTcpBinding is not really working reliably, so there is no way to use it on Android either (unless anyone contribute code to get it working). Atsushi Eno Hi, I'm having as requirement to connect Android with WCF (tcp binding). Any suggestion?

Re: [mono-android] wcf and android

2012-01-16 Thread Jonathan Pryor
On Jan 16, 2012, at 12:33 PM, phoen52 wrote: > I'm having as requirement to connect Android with WCF (tcp binding). Mono for Android does provide an implementation of WCF, though it's known to be incomplete. If what's there works for you, then good. ;-) - Jon __

[mono-android] wcf and android

2012-01-16 Thread phoen52
Hi, I'm having as requirement to connect Android with WCF (tcp binding). Any suggestion? Many thanks -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/wcf-and-android-tp5149358p5149358.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] Add a marker on Google Maps activity

2012-01-16 Thread tequila slammer
At the moment I am facing the same problem but I do not have the time to investigate. My work-around is to use a pinpoint that suits all my needs and looks good at a high range of zoom levels. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Add-a-marker-on-Google-Ma

Re: [mono-android] Does anyone have a code example for using Google Market Licensing with MonoDroid?

2012-01-16 Thread Builder
Hello, I would also need an example how to use Google Market Licensing in Monodroid. I'm surprised that there is no example how to use it. Best Regards, Peter -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Does-anyone-have-a-code-example-for-using-Google-Market-L

[mono-android] 01/16/2012 - Our Most Recent Tutorials

2012-01-16 Thread Monodroyd Blog
Good Days, We would like to inform you about our most recent tutorials at Monodroyd: - *How to send a text message (SMS) and initiate a new call programmatically in Mono for Android* http://monodroyd.wordpress.com/2012/01/16/how-to-send-sms-and-initiate-call-in-mono-for-android/ - *How to set

Re: [mono-android] dynamically target Kindle Fire from same project

2012-01-16 Thread Gerry High
Disregard the last message--I hadn't changed the build action to AndroidResource on the linked layout files. On Jan 16, 2012, at 7:52 AM, Gerry High wrote: > This is the route I'm going--to have 2 projects within the same solution. > One thing I've run into is that the IDE doesn't seem like i

Re: [mono-android] dynamically target Kindle Fire from same project

2012-01-16 Thread Gerry High
This is the route I'm going--to have 2 projects within the same solution. One thing I've run into is that the IDE doesn't seem like it is smart if you link your layout files in that it is not updating the Resource.designer.cs with the IDs, etc. from the linked layout files. Is this a know issu

Re: [mono-android] I hope my 250 pounds/399 dollars makes Xamarin staff rich because

2012-01-16 Thread devbuzz
Is the app in the video on the linked page created with Monodroid? It looks really impressive! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/I-hope-my-250-pounds-399-dollars-makes-Xamarin-staff-rich-because-tp5142989p5148388.html Sent from the Mono for Android ma

Re: [mono-android] Kindle Fire feedback...the process and use

2012-01-16 Thread devbuzz
I'm heading down the same path with the Kindle Fire - so thank you for your observations. So, aside from the nonstd image sizing conventions, it sounds like taking an Android app and rejigging it for the Kindle Fire wasn't too problematic? -- View this message in context: http://mono-for-android

[mono-android] Background service fetching data - Android and Amazon store restrictions?

2012-01-16 Thread devbuzz
The one area I have been ignoring (stupidly - but you know how it goes) in developing my Android app for the marketplace is whether there are any restrictions on services that fetch data in the background. I did some quick searching but I would love to hear from someone who has gone through the pr

[mono-android] mgmain JNI_OnLoad - 'Mono' has exited with code 255

2012-01-16 Thread devbuzz
I have an activity and a service which crash and completely lock up the device. The service uses a number of thread timers to do some background processing as some logging to SQLite. I see the following in the log: *In mgmain JNI_OnLoad The program 'Mono' has exited with code 255 (0xff). * Does

Re: [mono-android] Unexpected Exception from System.Net.WebClient result

2012-01-16 Thread subsembly
Hi, this is the output: >adb shell getprop ro.product.cpu.abi armeabi-v7a >adb shell getprop ro.product.cpu.abi2 armeabi So, to be on the save side, I now have both checks, armeabi and armeabi-v7a, ticked in my Application settings. I am still investigating the orginal WebClient problems and