[mono-android] UNSUBSCRIBE

Philip Pierce spry981 at yahoo.com
Sun Jan 15 12:11:41 UTC 2012


UNSUBSCRIBE

-----Original Message-----
From: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] On Behalf Of
monodroid-request at lists.ximian.com
Sent: Sunday, January 15, 2012 7:00 AM
To: monodroid at lists.ximian.com
Subject: Monodroid Digest, Vol 18, Issue 34

Send Monodroid mailing list submissions to
	monodroid at lists.ximian.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.ximian.com/mailman/listinfo/monodroid
or, via email, send a message with subject or body 'help' to
	monodroid-request at lists.ximian.com

You can reach the person managing the list at
	monodroid-owner at lists.ximian.com

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Monodroid digest..."


Today's Topics:

   1. Re: dynamically target Kindle Fire from same project (HSSoftware)
   2. Re: mapping sample (Tomasz Cielecki)
   3. SimpleCursorAdapter and
      SimpleCursorAdapter.CursorToStringConverter (Tom Opgenorth)


----------------------------------------------------------------------

Message: 1
Date: Sat, 14 Jan 2012 13:51:15 -0800 (PST)
From: HSSoftware <david at headstandsoftware.com>
To: monodroid at lists.ximian.com
Subject: Re: [mono-android] dynamically target Kindle Fire from same
	project
Message-ID: <1326577875675-5145681.post at n5.nabble.com>
Content-Type: text/plain; charset=us-ascii

How about moving all your code to a class library, and creating two app
projects? One for normal Android, and one for Kindle Fire.

--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/dynamically-target-Kindle-Fire
-from-same-project-tp5145294p5145681.html
Sent from the Mono for Android mailing list archive at Nabble.com.


------------------------------

Message: 2
Date: Sat, 14 Jan 2012 23:43:59 +0100
From: Tomasz Cielecki <tomasz at ostebaronen.dk>
To: Discussions related to Mono for Android
	<monodroid at lists.ximian.com>
Subject: Re: [mono-android] mapping sample
Message-ID:
	<CACWcBbkDP7sSUObu3akzjns4wk+Y=57hYJBHOkW9n65B1fwxhA at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

In Activity1.cs move the line 32: mapView.PostInvalidate(); down to after
the last myItemizedOverlay.AddOverlayItem(); call.

On Sat, Jan 14, 2012 at 10:00 PM, Wally McClure
<theevilprogrammer at hotmail.com> wrote:
> Tomasz,
>
> The problem I am running into is that pins don't display.
>
> Wally
>
>> Date: Sat, 14 Jan 2012 20:04:54 +0100
>
>> From: tomasz at ostebaronen.dk
>> To: monodroid at lists.ximian.com
>> Subject: Re: [mono-android] mapping sample
>>
>> This sample does not center the map around the pins. Also I think 
>> there is a bit of a mistake in the sample. The
>> mapView.PostInvalidate() call should be after putting on the two 
>> points.
>>
>> On Sat, Jan 14, 2012 at 4:02 PM, Wally McClure 
>> <theevilprogrammer at hotmail.com> wrote:
>> > Tomasz,
>> >
>> > Thanks.? One thing I don't understand is what type of output I am 
>> > suppossed to get when I load your app.? All I get is world map, but 
>> > I don't see the points on the map that I would expect.? I have put 
>> > may mapkey in.? Is there something that I am missing?? Any help is 
>> > greatly appreciated.
>> >
>> > Wally
>> >
>> >> Date: Fri, 13 Jan 2012 11:20:17 +0100
>> >> From: tomasz at ostebaronen.dk
>> >> To: monodroid at lists.ximian.com
>> >> Subject: Re: [mono-android] mapping sample
>> >
>> >>
>> >> Here is the full URL to the project.
>> >> https://github.com/Cheesebaron/MonoDroid.SimpleOverlayItem there 
>> >> is a very simple sample which has a MapView and an ItemizedOverlay.
>> >>
>> >> To show your own location on the map you can use MyLocationOverlay
>> >>
>> >> On Fri, Jan 13, 2012 at 7:43 AM, Tomasz Cielecki 
>> >> <tomasz at ostebaronen.dk>
>> >> wrote:
>> >> > I have a sample on my github with an itemized overlay.
>> >> > http://github.com/Cheesebaron
>> >> > It should be the one called SimpleOverlay or something like that 
>> >> > (writing this from my phone)
>> >> >
>> >> > On Jan 12, 2012 8:52 PM, "Wally McClure"
>> >> > <theevilprogrammer at hotmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Does anyone have a mapping sample that I can use that use the 
>> >> >> integrated google maps support?? I am looking for something 
>> >> >> that displays a location and then just puts some points on the 
>> >> >> resulting map.? I have a need for something simple, but am in a 
>> >> >> time crunch.? Any help is appreciated.
>> >> >>
>> >> >> Waly
>> >> >>
>> >> >> _______________________________________________
>> >> >> Monodroid mailing list
>> >> >> Monodroid at lists.ximian.com
>> >> >>
>> >> >> UNSUBSCRIBE INFORMATION:
>> >> >> http://lists.ximian.com/mailman/listinfo/monodroid
>> >> >>
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Med Venlig Hilsen / With Best Regards
>> >> Tomasz Cielecki
>> >> http://ostebaronen.dk
>> >> _______________________________________________
>> >> Monodroid mailing list
>> >> Monodroid at lists.ximian.com
>> >>
>> >> UNSUBSCRIBE INFORMATION:
>> >> http://lists.ximian.com/mailman/listinfo/monodroid
>> >
>> > _______________________________________________
>> > Monodroid mailing list
>> > Monodroid at lists.ximian.com
>> >
>> > UNSUBSCRIBE INFORMATION:
>> > http://lists.ximian.com/mailman/listinfo/monodroid
>> >
>>
>>
>>
>> --
>> Med Venlig Hilsen / With Best Regards
>> Tomasz Cielecki
>> http://ostebaronen.dk
>> _______________________________________________
>> Monodroid mailing list
>> Monodroid at lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk


------------------------------

Message: 3
Date: Sat, 14 Jan 2012 21:47:29 -0700
From: Tom Opgenorth <tom at opgenorth.net>
To: monodroid <monodroid at lists.ximian.com>
Subject: [mono-android] SimpleCursorAdapter and
	SimpleCursorAdapter.CursorToStringConverter
Message-ID:
	<CAJbSEHWpXZgU88o7R74GY5ahLf546NArvAM8DO=nmO5CV4e3WA at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Porting some Java to C# again. In Java I was doing it this way:
adapter.setCursorToStringConverter(new
SimpleCursorAdapter.CursorToStringConverter() {
            @Override
            public CharSequence convertToString(Cursor cursor) {
                final int colIndex =
cursor.getColumnIndexOrThrow(VehicleDescriptionsTable.DESCRIPTION);
                return cursor.getString(colIndex);
            }
        });


Now, in M4A, it seems to me that I probably need to implement
SimpleCursorAdapter.ICursorToStringConverter like so:

public class VehicleTripDescriptionCursorToStringConverter :
Java.Lang.Object, ? ?SimpleCursorAdapter.ICursorToStringConverter
? ? {
? ? ? ? public ICharSequence ConvertToStringFormatted(ICursor cursor)
? ? ? ? {
? ? ? ? ? ? var colIndex =
cursor.GetColumnIndexOrThrow(VehicleTripDescriptionTable.Columns.DESCRIPTION
);
? ? ? ? ? ? var value = cursor.GetString(colIndex);
? ? ? ? ? ? return new Java.Lang.String(value);
? ? ? ? }
? ? }


and then in my adapter I can go:
adapter.CursorToStringConverter = new
VehicleTripDescriptionCursorToStringConverter();

Is this the correct way to port this code over?  Or is there a simpler way.
-- 
http://www.opgenorth.net


------------------------------

_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodroid


End of Monodroid Digest, Vol 18, Issue 34
*****************************************



More information about the Monodroid mailing list