Re: [mono-android] Slow Build- und Packaging-Process & few other things after update
Then, please let me know, that you have problems reading/translating the log. I didn't receive any feedback from you for days, so I can't help you, then. I can try to provide the log in english. This evening i'll reinstall 4.6.4 and install system-language english. I hope, this will write the log in english. Lee -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Slow-Build-und-Packaging-Process-few-other-things-after-update-tp5713139p5713247.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] Internal Storage file not found
Jon, You are exactly right, and I feel somewhat stupid on this one. When I restart the app, the old installation is being removed, thus removing all data. Thanks! Dan On Apr 24, 2013, at 4:52 PM, Jonathan Pryor wrote: > On Apr 23, 2013, at 2:29 PM, dstilwell wrote: >> However if I stop the app and then restart it, I get a File Not Found >> exception thrown and nothing returned from the read function. > > How are you stopping the app? Are you sure that WriteID() has finished? > > For that matter, how do you know that the data has actually been written to > disk? (Think kernel-level caching/etc.) I've not delved into the entire Java > stack to know if closing the Stream returned from OpenFileOutput() will > actually result in it being flushed to disk, so I don't actually know. > > Likewise, how are you restarting the app? Through the Home screen? Through > the debugger? If through the debugger, it's possible that your app is being > uninstalled and reinstalled, which will nuke your data directory, so that > might also explain the behavior you're seeing. > > - 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
[mono-android] AutoCompleteTextView
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 contacts name. The contact info will come from a custom service, not the phone's contacts. All the posts I've seen use an array adapter. I think I need to create a custom adapter to do this, but have been really confused at the options. Should I create a custom adapter that inherits from base adapter, or should it inherit from array adapter (or cursor adapter)? Do I need to implement IFilterable if I'm not doing a custom filter? This is the non-working code I have: class EmailAutocompleteAdapter: ArrayAdapter,IFilterable { private List _items; private int _selectedPosition = -1; public EmailAutocompleteAdapter(Context context, List_items) :base(context,_items); { _items = new List(); //not sure how to implement } public int SelectedPosition { get { return _selectedPosition; } set { if (value < -1 || value >= this.Count) throw new IndexOutOfRangeException(); _selectedPosition = value; } } public override int Count { get { return _items.Count; } } public override Java.Lang.Object GetItem (int position) { return _items[index]; } public override long GetItemId(int position) { return _items[position].Index; } public override View GetView(int position, View convertView, ViewGroup parent) { //not sure how to implement return new View(context); } } -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/AutoCompleteTextView-tp5713249.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] AutoCompleteTextView
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(Android.Resource.Layout.SimpleSpinnerDropDownItem); myAutoComplete.Adapter = myAdapter; Then use the EmailContactItem ToString() method to display what ever you want to display in the auto complete (presumably the email address field). -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/AutoCompleteTextView-tp5713249p5713250.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