Thanks Greg! Exactly what I need! 2011/7/23 <[email protected]>
> Send Monodroid mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Monodroid digest..." > > > Today's Topics: > > 1. DialogInterfaceButton Sample. (Rodrigo Persevere) > 2. Re: DialogInterfaceButton Sample. (Greg Shackles) > 3. Re: Sync Adapter and Account Authenticator Services > (Jonathan Pryor) > 4. Re: Sync Adapter and Account Authenticator Services > (BarryJohnston) > 5. Re: Problems starting App on actual Device (mcgear) > 6. Mono code as Android Service and IPC speed estimations > (Igor Russkih) > 7. Re: Problems starting App on actual Device (Jonathan Pobst) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 22 Jul 2011 16:54:55 -0300 > From: Rodrigo Persevere <[email protected]> > Subject: [mono-android] DialogInterfaceButton Sample. > To: [email protected] > Message-ID: > <cah+nmapjut2aekv3exo3flt8-nxs+sxb+mgtztg_xsv6kyq...@mail.gmail.com > > > Content-Type: text/plain; charset="iso-8859-1" > > Good Afternoon, > > First sorry for my english, is terrible i know.....I?m having some problems > to use listeners at monodroid, mainly alert dialogs. Someone has a simple > example, please ? > > Follow my attempt: > > > AlertaMensagem = new AlertDialog.Builder(this) > > .SetIcon(Resource.Drawable.Icon) > > .SetTitle("Nova Mensagem !") > > .SetMessage(texto) > > //After it i want to put a confirmation button, How can i do it? > > > > Thank?s! > > Rodrigo Coladela > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.ximian.com/mailman/private/monodroid/attachments/20110722/ea799c42/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Fri, 22 Jul 2011 15:58:36 -0400 > From: Greg Shackles <[email protected]> > Subject: Re: [mono-android] DialogInterfaceButton Sample. > To: Discussions related to Mono for Android > <[email protected]> > Message-ID: > <CANF05G+Z87c8Y4Cnkjd=aL7EtfRHqp0R=bsgust0xidmwrd...@mail.gmail.com > > > Content-Type: text/plain; charset="iso-8859-1" > > I have a simple alert sample up here: > > > https://github.com/gshackles/Sample-Projects/blob/master/MonoDroid/MonoDroidSamples/MonoDroidSamples/DemoActivities/TextNotify/TextNotifyActivity.cs#L33 > > On Fri, Jul 22, 2011 at 3:54 PM, Rodrigo Persevere <[email protected] > >wrote: > > > Good Afternoon, > > > > First sorry for my english, is terrible i know.....I?m having some > problems > > to use listeners at monodroid, mainly alert dialogs. Someone has a simple > > example, please ? > > > > Follow my attempt: > > > > > > AlertaMensagem = > > new AlertDialog.Builder(this) > > > > .SetIcon( > > Resource.Drawable.Icon) > > > > .SetTitle( > > "Nova Mensagem !") > > > > .SetMessage(texto) > > > > //After it i want to put a confirmation button, How can i do it? > > > > > > > > Thank?s! > > > > Rodrigo Coladela > > > > _______________________________________________ > > Monodroid mailing list > > [email protected] > > > > UNSUBSCRIBE INFORMATION: > > http://lists.ximian.com/mailman/listinfo/monodroid > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.ximian.com/mailman/private/monodroid/attachments/20110722/edf4f624/attachment-0001.html > > ------------------------------ > > Message: 3 > Date: Fri, 22 Jul 2011 16:17:28 -0400 > From: Jonathan Pryor <[email protected]> > Subject: Re: [mono-android] Sync Adapter and Account Authenticator > Services > To: Discussions related to Mono for Android > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=windows-1252 > > Inline. > > On Jul 22, 2011, at 9:27 AM, BarryJohnston wrote: > > I'm attempting to create a SyncAdapter service which requires an > > AccountAuthenticator service but so far I have only been able to crash > the > > Android OS. > > > > Here is my code if it helps: > > > > namespace MyApp.DataManagement > > { > > [Service(Name = "myapp.datamanagement.AuthenticationService", Exported = > true)] > > [IntentFilter(new[]{ "android.accounts.AccountAuthenticator" })] > > [MetaData("android.accounts.AccountAuthenticator", Resource = > "@xml/authenticator")] > > public class AuthenticationService : Service > > { > > private Authenticator _authenticator = null; > > What is the full type of Authenticator? The only one I readily see is > Java.Net.Authenticator, which doesn't have an IBinder property. > > Is Authenticator a custom type? If so, are you also passing a custom > IParcel implementation around? The IParcel interface cannot currently be > implemented from managed code at this point in time, so that may be the > issue you're seeing? > > - Jon > > > > ------------------------------ > > Message: 4 > Date: Fri, 22 Jul 2011 13:28:26 -0700 (PDT) > From: BarryJohnston <[email protected]> > Subject: Re: [mono-android] Sync Adapter and Account Authenticator > Services > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > I've been a software developer for 15yrs but I'm new to MonoDroid > development. Could you explain about the IParcel? I don't think I'm using > that, however I do pass an Intent to Bundle.PutParcelable. I would think > that if Bundle has that function it would be supported. Is there a way > around this? > > Thanks! > > Here's my (partial) implementation of > Android.Accounts.AbstractAccountAuthenticator: > > namespace MyApp.DataManagement > { > class Authenticator : AbstractAccountAuthenticator > { > private Context _context = null; > > public Authenticator(Context context) : base(context) > { > _context = context; > } > > public override Bundle AddAccount(AccountAuthenticatorResponse response, > string accountType, string authTokenType, string[] requiredFeatures, Bundle > options) > { > Intent intent = new Intent(_context, typeof(AuthenticatorActivity)); > intent.PutExtra(AuthenticatorActivity.PARAM_AUTHTOKEN_TYPE, > authTokenType); > intent.PutExtra(AccountManager.KeyAccountAuthenticatorResponse, > response); > > Bundle bundle = new Bundle(); > bundle.PutParcelable(AccountManager.KeyIntent, intent); > return bundle; > } > > public override Bundle ConfirmCredentials(AccountAuthenticatorResponse > response, Account account, Bundle options) > { > ... > } > > public override Bundle EditProperties(AccountAuthenticatorResponse > response, string accountType) > { > throw new NotSupportedException(); > } > > public override Bundle GetAuthToken(AccountAuthenticatorResponse > response, Account account, string authTokenType, Bundle options) > { > ... > } > > public override string GetAuthTokenLabel(string authTokenType) > { > if (authTokenType == AuthenticatorActivity.AUTHTOKEN_TYPE) > { > return _context.GetString(Resource.String.ApplicationName); > } > > return null; > } > > public override Bundle HasFeatures(AccountAuthenticatorResponse > response, Account account, string[] features) > { > ... > } > > public override Bundle UpdateCredentials(AccountAuthenticatorResponse > response, Account account, string authTokenType, Bundle options) > { > ... > } > > } > } > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Sync-Adapter-and-Account-Authenticator-Services-tp4623034p4624606.html > Sent from the Mono for Android mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 5 > Date: Fri, 22 Jul 2011 20:55:44 -0700 (PDT) > From: mcgear <[email protected]> > Subject: Re: [mono-android] Problems starting App on actual Device > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > I did clean the solution and then rebuild. So i am confident that is not > the > issue. I will get another log snippet if that can be helpful. > > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Problems-starting-App-on-actual-Device-tp4619605p4625321.html > Sent from the Mono for Android mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 6 > Date: Sat, 23 Jul 2011 08:45:32 +0400 > From: Igor Russkih <[email protected]> > Subject: [mono-android] Mono code as Android Service and IPC speed > estimations > To: [email protected] > Message-ID: > <cajhyxqjh50e2xkuhlmzkddvu12ej695a-n9k7+5vp1zp-bp...@mail.gmail.com > > > Content-Type: text/plain; charset="iso-8859-1" > > Hello all, > > Glad xamarin is now alive and wish you good luck with your job, hope also > someone could give a review of my problem and comment my questions. > > Our main interest in monodroid is that we have wellestablished .net WM > application with quite big and complex 'business' logic codebase. For sure > we would like to review the opportunity to keep as much c# code shared as > we > can. > > The core of our .net "library" makes some heavy calculations/processings > (which are quite platform independent) and require relatively intensive > data > throughoutput. > > Our current idea is to keep this library running in monodroid as an android > service (and by this share the main "heavy" buisness logic code between > WM/android projects), and to create a UI wrapper. (it most probably will be > in native java). > > Service should interact with Bluetooth hardware (taking the input data), > and > give the output data to the UI part (for display, etc). > > Therefore there are two questions: > > Is it possible to work with android BT API directly from monodroid code? > How > efficient it'll be in terms of data transfers? I mean since monodroid > creates wrappers for Input/Output-Streams (does it?) how well stream.read > and stream.write will map data? The amounts of data is not high (several > bytes), but the request/response rate with BT hardware is required to be as > fast as possible. (normally its up to 50Hz). Won't read/write serialization > between dalvik/mono be a bottleneck here? > > Second question is service <-> UI interaction part. Normally this is done > with AIDL in java.. I haven't found any words on aidl support in monodroid. > Guess it could be implemented 'manually' - is there any experience exist in > this area? > > Igor > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.ximian.com/mailman/private/monodroid/attachments/20110723/6a67a601/attachment-0001.html > > ------------------------------ > > Message: 7 > Date: Sat, 23 Jul 2011 11:38:15 -0400 > From: Jonathan Pobst <[email protected]> > Subject: Re: [mono-android] Problems starting App on actual Device > To: Discussions related to Mono for Android > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Ok, I think I figured this out because I hit it too. > > It seems like Google's latest Android SDK can't run the emulator if you > install to a location that includes spaces in your path. > > Try uninstalling the Android SDK, and install it back to a place that > doesn't have space in it, like C:\Android. > > This seems to be a new regression for Google, as I've always had it in > Program Files before, but it didn't work on my new laptop. > > Jonathan > > > On 7/22/2011 11:55 PM, mcgear wrote: > > I did clean the solution and then rebuild. So i am confident that is not > the > > issue. I will get another log snippet if that can be helpful. > > > > > > > > -- > > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Problems-starting-App-on-actual-Device-tp4619605p4625321.html > > Sent from the Mono for Android mailing list archive at Nabble.com. > > _______________________________________________ > > Monodroid mailing list > > [email protected] > > > > UNSUBSCRIBE INFORMATION: > > http://lists.ximian.com/mailman/listinfo/monodroid > > > > > > > > ------------------------------ > > _______________________________________________ > Monodroid mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monodroid > > > End of Monodroid Digest, Vol 12, Issue 31 > ***************************************** >
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
