For those that have seen and commented on this in the past, I'm still trying
to figure this out. I've trimmed the code from the last posting and am
getting closer (I think).
This is the error, I'll post the code below the stack trace:
/
05-29 19:47:00.731: E/AndroidRuntime(20277): FATAL EXCEPTION
Spencer wrote
> Try calling ca.NotifyDataSetChanged() after you've reloaded your adapter
> from the service.
What should be in that method? I put this method in the adapter, but not
sure how to implement. It gets called, but the list still doesn't get
displayed.
public override void NotifyDataSe
Try calling ca.NotifyDataSetChanged() after you've reloaded your adapter from
the service.
The call to get the company contacts should run in a new thread to prevent
UI thread from blocking. But the call to NotifyDataSetChanged needs to run
on the UI thread, so you should use RunOnUiThread to mak
I posted before regarding this question, but am still struggling. I created a
custom adapter to bind the autocomplete to an array list dynamically - a web
service is called after 2 characters are typed. The code is a combination of
the xamarin content control samples, and another sample on the web
I guess you could also try using the Threshold property to set the number of
characters that need to be input before the auto complete kicks in, in
conjunction with a key listener to determine when the threshold is met, so
you can call your webservice in a new thread.
You might run into threadin
I have done this with the Google Books api
I made a sample for Mvx - it's not currently live on v3 but you can see it
on v2 at
https://github.com/slodge/MvvmCross/tree/vnext/Sample%20-%20SimpleDialogBinding/DroidAutoComplete
Here's what i wrote at the time -
http://slodge.blogspot.co.uk/2012/05/m
Thanks, I'll try that. It looks like I'd need to retrieve the entire list
ahead of time, and auto complete would filter based on that? Is there a way
that I could call the web service when the threshold number of characters is
met? I'd rather pull down a subset of data from the service than the ent
An ArrayAdapter is the easiest way to go unless you want to use a custom
layout. All you need to do is convert your list into an array.
ArrayAdapter myAdapter =
new ArrayAdapter(context,
Android.Resource.Layout.SimpleSpinnerItem, items.ToArray());
myAdapter.SetDropDownViewResource(Androi
I've been searching for help, but most posts are using an array adapter. I
don't 'think' that is what I can use.
I have a requirement to use an autocomplete text view to provide suggestions
for an email address. When the user selects an address from the list, I'm to
populate the associated contact
}
>protected override void PublishResults
> (Java.Lang.ICharSequence constraint, Filter.FilterResults results)
>{
>a.NotifyDataSetChanged();
> }
>}
>
onodroid-boun...@lists.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pobst
Sent: 05 January 2012 21:46
To: Discussions related to Mono for Android
Subject: Re: [mono-android] AutoCompleteTextView
Not sure exactly what you are trying to do, but we have this code here:
Mine's a bit more contrived (looking up strings in an SQLite table via a
CursorAdapter). Looking at the sample here, I'd wager the same principles
will apply in M4A huh?
On Thu, Jan 5, 2012 at 14:45, Jonathan Pobst wrote:
> Not sure exactly what you are trying to do, but we have this code here:
Not sure exactly what you are trying to do, but we have this code here:
https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/Tutorials/AutoCompleteTutorial.cs
Jonathan
On 1/5/2012 3:32 PM, Tom Opgenorth wrote:
> I've use this before (in Java). Has anybody tried to out with M4A and
>
I've use this before (in Java). Has anybody tried to out with M4A and would
be willing share a sample/snippet?
--
http://www.opgenorth.net
___
Monodroid mailing list
Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/
14 matches
Mail list logo