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 found one more
compatibility problem with the WebClient class on Android: The Event
"DownloadStringCompleted" and probably other WebClient events, too, are not
fired on the UI thread but on some background worker thread. However, in
classic Windows Forms these events are fired on the UI thread. As the
WebClient class is derived from System.ComponentModel.Component and is
visible in the Windows Forms Designer, I would expect that the events are
fired as UI events on the UI thread. To improve compatibility with existing
code it would probably be better to fire these events on the UI thread in
Mono for Android, too.

Cheers,

Andreas

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Unexpected-Exception-from-System-Net-WebClient-result-tp5142099p5148240.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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 anyone know where I start to looking? 

Typically what does this mean?

Is it some as simple as an unhandled exception?

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/mgmain-JNI-OnLoad-Mono-has-exited-with-code-255-tp5148355p5148355.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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 process.

My background service polls a server reporting on location and sending data
periodically.

I have a control panel that shows this service is working as well as some
Notifications.

Does anyone know if this is a compliance issue with the Android Market
store?

It doesn't seem to be an issue on the Amazon store - nothing seemed to be
flagged in their FAQ:
https://developer.amazon.com/help/faq.html

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Background-service-fetching-data-Android-and-Amazon-store-restrictions-tp5148383p5148383.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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.1047100.n5.nabble.com/Kindle-Fire-feedback-the-process-and-use-tp5146984p5148385.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 issue or is there some workaround?

Thanks,
Gerry


On Jan 15, 2012, at 10:51 AM, Jonathan Pryor wrote:

> Really, the easier/saner thing to do is just have separate projects for 
> Kindle vs. non-Kindle builds, and Link the source files between the separate 
> projects. There's less hand-editing of .csproj files this way, and it'll be 
> easier to build your packages from within the IDE.
> 
> - Jon
> 
> On Jan 15, 2012, at 11:43 AM, Jonathan Pobst wrote:
> 
>> We also now support declaring permission in code, so you can use defines:
>> 
>> #if !KINDLE
>> [assembly: UsesPermission (Android.Manifest.Permission.Internet)]
>> #endif
>> 
>> But I am guessing the actual issue you are hitting is that referencing the 
>> GoogleMaps assembly automatically adds the  to your manifest.
>> 
>> So you would need to use conditions like JonP suggests, but on the 
>>  to the GoogleMaps.dll instead, and not reference the library on 
>> Kindle builds.
>> 
>> Jonathan
>> 
>> 
>> On 1/15/2012 10:33 AM, Jonathan Pryor wrote:
>>> On Jan 14, 2012, at 12:11 PM, Gerry High wrote:
 I'd like my monodroid app to be able to run on the Kindle Fire and as such 
 I need to be able to turn off Google maps.  Short of creating a new 
 project is there a way to tie the android manifest settings (e.g. 
 ACCESS_COURSE_LOCATION, ACCESS_FINE_LOCATION) to a build configuration?
>>> 
>>> _Probably_. This is untested, but you could presumably edit your 
>>> Project.csproj and add a Condition attribute to the the  
>>> element:
>>> 
>>> 
>>> 
>>> KindleManifest.xml
>>> AndroidManifest.xml
>>> 
>>> 
>>> Then you could set the TargetKindle property when building your project to 
>>> select the KindleManifest.xml file:
>>> 
>>> msbuild /t:SignAndroidPackage /p:TargetKindle=True Project.csproj ...
>>> 
>>> However, I have no idea what doing this will do to IDE support for editing 
>>> the AndroidManifest.xml file; it may break.
>>> 
>>> (The "silly" MSBuild ideas that come to mind...)
>>> 
>>> - Jon
>>> 
>>> ___
>>> Monodroid mailing list
>>> Monodroid@lists.ximian.com
>>> 
>>> UNSUBSCRIBE INFORMATION:
>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>> 
>>> 
>> 
> 
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 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 issue or is there some workaround?
> 
> Thanks,
> Gerry
> 
> 
> On Jan 15, 2012, at 10:51 AM, Jonathan Pryor wrote:
> 
>> Really, the easier/saner thing to do is just have separate projects for 
>> Kindle vs. non-Kindle builds, and Link the source files between the separate 
>> projects. There's less hand-editing of .csproj files this way, and it'll be 
>> easier to build your packages from within the IDE.
>> 
>> - Jon
>> 
>> On Jan 15, 2012, at 11:43 AM, Jonathan Pobst wrote:
>> 
>>> We also now support declaring permission in code, so you can use defines:
>>> 
>>> #if !KINDLE
>>> [assembly: UsesPermission (Android.Manifest.Permission.Internet)]
>>> #endif
>>> 
>>> But I am guessing the actual issue you are hitting is that referencing the 
>>> GoogleMaps assembly automatically adds the  to your manifest.
>>> 
>>> So you would need to use conditions like JonP suggests, but on the 
>>>  to the GoogleMaps.dll instead, and not reference the library on 
>>> Kindle builds.
>>> 
>>> Jonathan
>>> 
>>> 
>>> On 1/15/2012 10:33 AM, Jonathan Pryor wrote:
 On Jan 14, 2012, at 12:11 PM, Gerry High wrote:
> I'd like my monodroid app to be able to run on the Kindle Fire and as 
> such I need to be able to turn off Google maps.  Short of creating a new 
> project is there a way to tie the android manifest settings (e.g. 
> ACCESS_COURSE_LOCATION, ACCESS_FINE_LOCATION) to a build configuration?
 
 _Probably_. This is untested, but you could presumably edit your 
 Project.csproj and add a Condition attribute to the the  
 element:
 


KindleManifest.xml
AndroidManifest.xml

 
 Then you could set the TargetKindle property when building your project to 
 select the KindleManifest.xml file:
 
msbuild /t:SignAndroidPackage /p:TargetKindle=True Project.csproj ...
 
 However, I have no idea what doing this will do to IDE support for editing 
 the AndroidManifest.xml file; it may break.
 
 (The "silly" MSBuild ideas that come to mind...)
 
 - Jon
 
 ___
 Monodroid mailing list
 Monodroid@lists.ximian.com
 
 UNSUBSCRIBE INFORMATION:
 http://lists.ximian.com/mailman/listinfo/monodroid
 
 
>>> 
>> 
>> ___
>> Monodroid mailing list
>> Monodroid@lists.ximian.com
>> 
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
> 
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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 fullscreen activity (with no status and title bars) in Mono
for Android*

http://monodroyd.wordpress.com/2012/01/16/setting-fullscreen-activity-in-mono-for-android/


The entire list of tutorials can be found in our *Content Index* page at:
http://monodroyd.wordpress.com/content-index/


Please visit us often or follow us on Twitter at
@monodroydto see what new tutorials are
coming up next.

We wish you a wonderful new week, and thank you for reading Monodroyd.

- Monodroyd
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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-Licensing-with-MonoDroid-tp5144555p5148869.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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-Maps-activity-tp5082256p5149299.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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?

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.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid





___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace MarketLicensing
{
public class LicenseHelper
{
// Generate 20 random bytes, and put them here.
private Java.Lang.Byte[] Salt = new Java.Lang.Byte[] 
{ 
new Java.Lang.Byte(-46), 
new Java.Lang.Byte(65), 
new Java.Lang.Byte(30), 
new Java.Lang.Byte(-128), 
new Java.Lang.Byte(-103), 
new Java.Lang.Byte(-57), 
new Java.Lang.Byte(74), 
new Java.Lang.Byte(-64), 
new Java.Lang.Byte(51), 
new Java.Lang.Byte(88), 
new Java.Lang.Byte(-95), 
new Java.Lang.Byte(-45), 
new Java.Lang.Byte(77), 
new Java.Lang.Byte(-117), 
new Java.Lang.Byte(-36), 
new Java.Lang.Byte(-113), 
new Java.Lang.Byte(-11), 
new Java.Lang.Byte(32), 
new Java.Lang.Byte(-64), 
new Java.Lang.Byte(89)
};

public LicenseHelper(MainActivity activity)
{
// Get Android Device Id
var secure =
JNIEnv.FindClass("android/provider/Settings$Secure");
var secureAndroidId = JNIEnv.GetStaticFieldID(secure,
"ANDROID_ID", "Ljava/lang/String;");
var secureGetString = JNIEnv.GetStaticMethodID(secure,
"getString",
"(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;");
var androidId = JNIEnv.GetStaticObjectField(secure,
secureAndroidId);
var deviceId = JNIEnv.CallStaticObjectMethod(secure,
secureGetString, 
new JValue[] { new JValue(activity.ContentResolver.Handle),
new JValue(androidId) });

 // Below line proves that I get the android device id
//var aaa = JNIEnv.GetString(deviceId,
JniHandleOwnership.DoNotTransfer);

 // Below is the C# method for the above. Proves that the above
does work
//var deviceId2 =
Android.Provider.Settings.Secure.GetString(activity.ContentResolver,
Android.Provider.Settings.Secure.AndroidId);

 //  Below line proves that I get the package name
///var aaa = JNIEnv.GetString(new
Java.Lang.String(activity.PackageName).Handle,
JniHandleOwnership.DoNotTransfer);


var licensing =
JNIEnv.FindClass("com/android/vending/licensing/LicenseChecker");
var serverPolicy =
JNIEnv.FindClass("com/android/vending/licensing/ServerManagedPolicy");
var aesObfuscator =
JNIEnv.FindClass("com/android/vending/licensing/AESObfuscator");
var saltPointer = JNIEnv.NewArray(Salt);


// Below line proves that I get the Java byte array back
// var aaa = JNIEnv.GetArray(saltPointer);

var aesObfuscatorConstructor = JNIEnv.GetMethodID(aesObfuscator,
"", "([BLjava/lang/String;Ljava/lang/String;)V");


// THERE IS WHERE I AM STUCK 
// ALL THE ABOVE CODE WORKS BUT WHAT AM I DOING WRONG BELOW
// WILL CRASH!!

var aesObfuscatorInstance = JNIEnv.NewObject(
aesObfuscator,
aesObfuscatorConstructor,
new JValue[] { new JValue(saltPointer), new JValue(new
Java.Lang.String(activity.PackageName).Handle), new JValue(deviceId) });


// Below is what I am ultimately converting
// Construct the LicenseChecker with a policy.
//mChecker = new LicenseChecker(
  //  this, new ServerManagedPolicy(this,
//new AESObfuscator(SALT, getPackageName(), deviceId)),
  //  BASE64_PUBLIC_KEY);
//doCheck();


// Clean up
JNIEnv.DeleteLocalRef(aesObfuscatorInstance);
}
}
}


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Does-anyone-have-a-code-example-for-using-Google-Market-Licensing-with-MonoDroid-tp5144555p5149556.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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.nabble.com/wcf-and-android-tp5149358p5149594.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 = JNIEnv.FindClass("MagHelper/jni_helper");
IntPtr ctor = JNIEnv.GetMethodID(_helperClass, "", "()V"); 
IntPtr instance = JNIEnv.NewObject(_helperClass, ctor);

IntPtr methodId = JNIEnv.GetMethodID(instance, "InitializeReader",
"()V");
JNIEnv.CallVoidMethod(instance, methodId); 

When I call JNIEnv.GetMethodID should it be on the instance or the class?
Does the method name look correct since InitializeReader in the .java file
takes no parms and returns a void? 

I think I'm close, I just need that little extra push.

Thanks
DML

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/JNI-Help-Please-tp5144171p5149708.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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, "InitializeReader",
"()V");
IntPtr instance = JNIEnv.NewObject(helperClass, ctor);
JNIEnv.CallVoidMethod(instance, methodId);
JNIEnv.DeleteLocalRef(instance);

This fails on the JNIEnv.CallVoidMethod() call.  Is there a way to see what
the error actually is? Maybe it's from the java side?  Maybe my methodId is
wrong?

Thanks
DML

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/JNI-Help-Please-tp5144171p5149760.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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) block and 
print out the exception.

> Maybe it's from the java side?  Maybe my methodId is wrong

JNIEnv.GetMethodID() should throw if the method id is wrong; as a sanity check, 
ensure that the method isn't IntPtr.Zero.

Thanks,
 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 'Mono' has exited with code 255 (0xff).

Is there any other output, such as: "ERROR: Unable to attach current thread to 
the Java VM!"?

I don't recall seeing this error message before... :-/

> Typically what does this mean?
> Is it some as simple as an unhandled exception?

JNI_OnLoad() occurs before managed code runs, unless you're calling 
Java.Lang.JavaSystem.LoadLibrary() for another library or you have some custom 
Java code which is using java.lang.System.loadLibrary(). Assuming you're not 
using any custom Java code and not using JavaSystem...I have no idea what would 
be causing this. :-(

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 gps_LocationChanged(object sender, PositionEventArgs args)

I have the body of that method wrapped in extensive error trapping which
never gets called.

Does Eric have a later version of these DLLs? Happy to try them if needed.

I really would like to be able to leverage this common mobile API for
location information.

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/mgmain-JNI-OnLoad-Mono-has-exited-with-code-255-tp5148355p5149909.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 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 gps_LocationChanged(object sender, PositionEventArgs args)
>
> I have the body of that method wrapped in extensive error trapping which
> never gets called.
>
> Does Eric have a later version of these DLLs? Happy to try them if needed.
>
> I really would like to be able to leverage this common mobile API for
> location information.
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/mgmain-JNI-OnLoad-Mono-has-exited-with-code-255-tp5148355p5149909.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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 'Writing Responsive
Applications' tutorial).

However, I'm really struggling with getting the right layout so that it
shows the TextView at the bottom of the screen, with the ListView filling
all the remaining space. 

Can someone please point me in the right direction?

Thanks a lot,

James

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5149952.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 16, 2012 at 22:35, James Lavery  wrote:

> 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 'Writing Responsive
> Applications' tutorial).
>
> However, I'm really struggling with getting the right layout so that it
> shows the TextView at the bottom of the screen, with the ListView filling
> all the remaining space.
>
> Can someone please point me in the right direction?
>
> Thanks a lot,
>
> James
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5149952.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 message in context: 
http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5150113.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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() event.
How can I hook into this event or have the .java call the .NET side of
things to be notified when this event fires.

Thanks
DML

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/JNI-Help-Please-tp5144171p5150308.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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 package name but get errors with that as well.

Can anyone help?

Thanks
DML

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/package-R-does-not-exist-tp5150315p5150315.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 ones to
protect the identity of my product; however, I have verified that the
package path is the correct .net one.

Thanks
DML

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/package-R-does-not-exist-tp5150315p5150368.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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() and how does that code obtain the instance on which to 
call onReceiveMsgCardData()? That wasn't clear to me.

So let me assume something: the `uniMagReader` instance is responsible for 
calling onReceiveMsgCardData(), and the `uniMagReader` initialization is done 
within jni_helper.InitializeReader(). If that's the case, you could declare a 
Managed Callable Wrapper for `jni_helper` within C# (note: completely untested 
and uncompiled):

[Register ("MagHelper/jni_helper", DoNotGenerateAcw=true)]
class YourJniHelper : Java.Lang.Object {

public YourJniHelper ()
{
}

public YourJniHelper (IntPtr handle, JniHandleOwnership 
transfer)
: base (handle, transfer)
{
}

static IntPtr class_ref = JNIEnv.FindClass 
("MagHelper/jni_helper");

protected override Type ThresholdType {
get {return typeof (YourJniHelper);}
}

protected override IntPtr ThresholdClass {
get {return class_ref;}
}

static IntPtr id_InitializeReader;
public void InitializeReader ()
{
if (id_InitializeReader == IntPtr.Zero)
id_InitializeReader = 
JNIEnv.GetMethodID(class_ref, "InitializeReader", "()V");
JNIEnv.CallVoidMethod (Handle, id_InitializeReader);
}

static IntPtr id_onReceiveMsgCardData;

[Register ("onReceiveMsgCardData", "(B[B)V", 
"Get_onReceiveMsgCardData_Handler")]
public virtual void OnReceiveMsgCardData (sbyte flagOfCardData, 
JavaArray cardData)
{
if (id_onReceiveMsgCardData == IntPtr.Zero)
id_onReceiveMsgCardData = 
JNIEnv.GetMethodID(class_ref, "onReceiveMsgCardData", "(B[B)V");
if (GetType () == ThresholdType) {
JNIEnv.CallVoidMethod (Handle, 
id_onReceiveMsgCardData,
new JValue (flagOfCardData),
new JValue (JNIEnv.ToJniHandle 
(cardData)));
return;
}
JNIenv.CallNonvirtualVoidMethod (Handle, 
ThresholdClass, id_onReceiveMsgCardData,
new JValue (flagOfCardData),
new JValue (JNIEnv.ToJniHandle 
(cardData)));
}

static Delegate cb_onReceiveMsgCardData;
static Delegate Get_onReceiveMsgCardData_Handler ()
{
if (cb_onReceiveMsgCardData == null)
cb_onReceiveMsgCardData = 
JNINativeWrapper.CreateDelegate ((Action) 
n_OnReceiveMsgCardData);
return cb_onReceiveMsgCardData;
}

static void n_OnReceiveMsgCardData (IntPtr jnienv, IntPtr 
lrefThis, byte flagOfCardData, IntPtr n_cardData)
{
YourJniHelper __this = 
Java.Lang.Object.GetObject(lrefThis, 
JniHandleOwnership.DoNotTransfer);
using (var cardData = new JavaArray(n_cardData, 
JniHandleOwnership.DoNotTransfer))
__this. OnReceiveMsgCardData (flagOfCardData, 
cardData);
}
}

then subclass it:

class MyJniHelper : YourJniHelper {
public override void OnReceiveMsgCardData (sbyte 
flagOfCardData, IntPtr cardData)
{
/* ... */
}
}

then use it:

var helper = new MyJniHelper ();
helper.InitializeReader ();

You're not currently expected to understand the Managed Callable Wrapper; docs 
for that are in-progress, though you can follow the existing sample:

The base Java class: 
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/Adder.java
The C# glue code for inheritance: 
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/ManagedAdder.cs
The C# subclass of the Java type: 
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/ManagedAdder.cs#L155

 - Jon
 
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/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 tried replacing R in the .java file with the
> MonoDroid package name but get errors with that as well.

Within your build output, look at obj\Debug\android\src\R.java (or some other 
R.java file somewhere under obj\Debug\android\src). That is the 
`aapt`-generated R class for use from Java code; read it to determine the 
`package` that the type is within.

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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, it 
crashes Visual Studio.

I checked the project file, and it is still marked as 
true.

I did a compare with the previous version, and the only thing I changed in the 
project file that I'm seeing might be related is that I modified the 
RootNamespace and AssemblyName.  I tried modifying the AndroidManifest.xml file 
to set the PackageName to the same value as the AssemblyName (they were in sync 
prior to my restructuring) just in case that was the problem, but it didn't 
appear to have any effect.

How does Visual Studio determine if a project is deployable?  (I know it has to 
have the AndroidApplication set to true, but there is obviously something else 
preventing deploy at present)

Thank you for your help.

Chris Tossing
Software Engineer
G4S Technology Software Solutions LLC
Direct Dial:  +1 (781) 457-0779
Cell:+1 (847) 942-0359
chris.toss...@usa.g4s.com
www.1f.com
21 North Avenue, Burlington, Massachusetts 01803 USA

P Please consider the environment before printing this email



The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International 
Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.

This communication may contain information which is confidential, personal 
and/or privileged.

It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, 
forwarding, copying or use of this communication or the information in it is 
strictly prohibited.

Any personal views expressed in this e-mail are those of the individual sender 
and the company does not endorse or accept responsibility for them.

Prior to taking any action based upon this e-mail message, you should seek 
appropriate confirmation of its authenticity.

This e-mail has been scanned for all viruses by MessageLabs.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 file, but I didn't see anything 
there that would cause this.  I ended up noticing that I had file locks by some 
process and found that it was adb.  Killing it and reopening the solution made 
it deployable again.  It appears that this was some kind of caching issue?

Oh, well.  It's working now.

Thank you,

Chris Tossing
Software Engineer
G4S Technology Software Solutions LLC
Direct Dial:  +1 (781) 457-0779
Cell:+1 (847) 942-0359
chris.toss...@usa.g4s.com
www.1f.com
21 North Avenue, Burlington, Massachusetts 01803 USA

P Please consider the environment before printing this email

From: Tossing, Chris
Sent: Monday, January 16, 2012 9:32 PM
To: Discussions related to Mono for Android
Cc: Tossing, Chris
Subject: VS not recognizing manifest for my application after code restructuring

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, it 
crashes Visual Studio.

I checked the project file, and it is still marked as 
true.

I did a compare with the previous version, and the only thing I changed in the 
project file that I'm seeing might be related is that I modified the 
RootNamespace and AssemblyName.  I tried modifying the AndroidManifest.xml file 
to set the PackageName to the same value as the AssemblyName (they were in sync 
prior to my restructuring) just in case that was the problem, but it didn't 
appear to have any effect.

How does Visual Studio determine if a project is deployable?  (I know it has to 
have the AndroidApplication set to true, but there is obviously something else 
preventing deploy at present)

Thank you for your help.

Chris Tossing
Software Engineer
G4S Technology Software Solutions LLC
Direct Dial:  +1 (781) 457-0779
Cell:+1 (847) 942-0359
chris.toss...@usa.g4s.com
www.1f.com
21 North Avenue, Burlington, Massachusetts 01803 USA

P Please consider the environment before printing this email



The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International 
Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.

This communication may contain information which is confidential, personal 
and/or privileged.

It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, 
forwarding, copying or use of this communication or the information in it is 
strictly prohibited.

Any personal views expressed in this e-mail are those of the individual sender 
and the company does not endorse or accept responsibility for them.

Prior to taking any action based upon this e-mail message, you should seek 
appropriate confirmation of its authenticity.

This e-mail has been scanned for all viruses by MessageLabs.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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; 
mohammad.shaha...@usa.g4s.com
Subject: Re: [mono-android] VS not recognizing manifest for my application 
after code restructuring











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 file, but
 I didn’t see anything there that would cause this.  I ended up noticing that I 
had file locks by some process and found that it was adb.  Killing it and 
reopening the solution made it deployable again.  It appears that this was some 
kind of caching issue?
 
Oh, well.  It’s working now.
 
Thank you,
 


Chris Tossing
Software Engineer
G4S Technology Software Solutions LLC
Direct Dial:  +1 (781) 457-0779
Cell:+1 (847) 942-0359
chris.toss...@usa.g4s.com
www.1f.com
21 North Avenue, Burlington, Massachusetts 01803 USA
 
P
Please consider the environment before printing this email


 


From: Tossing, Chris


Sent: Monday, January 16, 2012 9:32 PM

To: Discussions related to Mono for Android

Cc: Tossing, Chris

Subject: VS not recognizing manifest for my application after code restructuring


 
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, it crashes 
Visual Studio.
 
I checked the project file, and it is still marked as
true.
 
I did a compare with the previous version, and the only thing I changed in the 
project file that I’m seeing might be related is that I modified the 
RootNamespace and AssemblyName.  I tried modifying the AndroidManifest.xml file 
to set the
 PackageName to the same value as the AssemblyName (they were in sync prior to 
my restructuring) just in case that was the problem, but it didn’t appear to 
have any effect.
 
How does Visual Studio determine if a project is deployable?  (I know it has to 
have the AndroidApplication set to true, but there is obviously something else 
preventing deploy at present)
 
Thank you for your help.
 

Chris Tossing
Software Engineer
G4S Technology Software Solutions LLC
Direct Dial:  +1 (781) 457-0779
Cell:+1 (847) 942-0359
chris.toss...@usa.g4s.com
www.1f.com
21 North Avenue, Burlington, Massachusetts 01803 USA
 
P
Please consider the environment before printing this email

 




The details of this company are as follows:

G4S Technology Limited, Registered Office: Challenge House, International 
Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.



This communication may contain information which is confidential, personal 
and/or privileged.



It is for the exclusive use of the intended recipient(s).

If you are not the intended recipient(s), please note that any distribution, 
forwarding, copying or use of this communication or the information in it is 
strictly prohibited.



Any personal views expressed in this e-mail are those of the individual sender 
and the company does not endorse or accept responsibility for them.



Prior to taking any action based upon this e-mail message, you should seek 
appropriate confirmation of its authenticity.



This e-mail has been scanned for all viruses by MessageLabs.





___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid  
  ___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 different screen size
(look at this link to understand
http://developer.android.com/resources/dashboard/screens.html)

And here is a sample for the recent android versions:
http://developer.android.com/resources/samples/MultiResolution/index.html.
And here is the documentation:
http://developer.android.com/guide/practices/screens_support.html#qualifiers
.

Hope it'll help,

--
Benjamin Baldacci linkedin 


On Mon, Jan 16, 2012 at 23:48, James Lavery  wrote:

> 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 message in context:
> http://mono-for-android.1047100.n5.nabble.com/Layout-Activity-with-ListView-and-TextView-below-it-tp5149952p5150113.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid