[android-developers] ArrayAdapter Vs BaseAdapter.

2013-02-28 Thread Seshu
Hi All, I want to show some students information i.e. id, name, address and contact number in listview. Which Adapter should i use here i.e, ArrayAdapter or BaseAdapter. What's the major difference between them. Thanks and Regards, S.Seshu. -- -- You received this message because you

Re: [android-developers] ArrayAdapter Vs BaseAdapter.

2013-02-28 Thread Parthi K
http://www.catb.org/esr/faqs/smart-questions.html#before should know this . Thanks Regards, Parthiban.k Software Engineer Mode FinServer Pvt. Ltd. Cell: +7204205850 Email: parthisof...@gmail.com shoaibj...@gmail.com |parthiban.k @modefinserver.com shoai...@modefinserver.com On Fri, Mar

Re: [android-developers] ArrayAdapter in background thread

2013-01-28 Thread Kostya Vasilyev
Directly modifying an adapter's data (especially changing the number of items) from a background thread is a recipe for disaster. The data can be loaded on a thread, but should be switched in the adapter on the UI thread, followed by a call to notifyDatasetChanged, also on the UI thread. -- K

Re: [android-developers] ArrayAdapter in background thread

2013-01-28 Thread Mark Murphy
On Sun, Jan 27, 2013 at 7:36 PM, dashman erjdri...@gmail.com wrote: You can modify the ArrayList directly from a background thread. How can i do that - i don't see any api for this. java.util.ArrayList has been around for, what, 15 years? Yes, it has an API to allow the list to be modified.

[android-developers] ArrayAdapter in background thread

2013-01-27 Thread dashman
Can an ArrayAdapter (holding data for a ListView) be modified in a background thread. I'd like to modify the array and then call adapter.notifyDataSetChangedhttp://developer.android.com/reference/android/widget/ArrayAdapter.html#notifyDataSetChanged%28%29 () -- -- You received this

Re: [android-developers] ArrayAdapter in background thread

2013-01-27 Thread TreKing
On Sun, Jan 27, 2013 at 5:26 PM, dashman erjdri...@gmail.com wrote: Can an ArrayAdapter (holding data for a ListView) be modified in a background thread. I'd like to modify the array and then call

Re: [android-developers] ArrayAdapter in background thread

2013-01-27 Thread Mark Murphy
On Sun, Jan 27, 2013 at 6:26 PM, dashman erjdri...@gmail.com wrote: Can an ArrayAdapter (holding data for a ListView) be modified in a background thread. I'd like to modify the array and then call adapter.notifyDataSetChanged() You cannot modify the *adapter* in a background thread if it is

Re: [android-developers] ArrayAdapter in background thread

2013-01-27 Thread dashman
mark, You can modify the ArrayList directly from a background thread. How can i do that - i don't see any api for this. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] ArrayAdapter in background thread

2013-01-27 Thread dashman
nevermind - i decided to subl-class BaseAdapter Thanks. On Sunday, January 27, 2013 7:36:06 PM UTC-5, dashman wrote: mark, You can modify the ArrayList directly from a background thread. How can i do that - i don't see any api for this. -- -- You received this message because you

[android-developers] ArrayAdapter confusion

2012-08-13 Thread bob
I'm looking at the docs for ArrayAdapter. It says this: To use something other than TextViews for the array display, for instance, ImageViews, or to have some of data besides toString() results fill the views, override getView(int, View, ViewGroup) to return the type of view you want. So, I

Re: [android-developers] ArrayAdapter confusion

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 9:12 PM, bob b...@coolfone.comze.com wrote: So, I guess you don't have to use a text view? Then why do all the constructors take a textViewResourceId? What should I pass in for that if I'm not really going to use a text view? If you're lucky it's only getView(…) that

Re: [android-developers] ArrayAdapter confusion

2012-08-13 Thread Justin Anderson
If I have ListView that doesn't use a TextView then I usually just subclass BaseAdapter... It is a little more work but it gives me complete control. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 13, 2012 at 12:26 PM, Harri Smått

Re: [android-developers] Arrayadapter

2012-04-09 Thread Justin Anderson
I am not facing any thing just I want steps to do it becauase I am beginer in android and java http://catb.org/esr/faqs/smart-questions.html I read alot but there is no example help me to do it There are plenty of examples out there. Take it in steps, and actually do some critical

[android-developers] Arrayadapter

2012-04-08 Thread sahar aseeri
Hello, I have qestion about arrayadapter i want to creat a list veiw and i want this list update it every minute by add new item and delet one item By using arrayadapter and send massege to the handler How can I do this part of code? Best Regards! Sahar -- You received this message because you

Re: [android-developers] Arrayadapter

2012-04-08 Thread Raghav Sood
What have you done so far? What specific problem are you facing? Thanks On Sun, Apr 8, 2012 at 3:32 PM, sahar aseeri saharase...@gmail.com wrote: Hello, I have qestion about arrayadapter i want to creat a list veiw and i want this list update it every minute by add new item and delet one

Re: [android-developers] Arrayadapter

2012-04-08 Thread Raghav Sood
You outlined the steps you wanted in the first email. You have the steps then, just code it. No one is going to hand out code to you, unless you pay them. Google can help you find hundreds on tutorials on this subject. Thanks 2012/4/8 sahar aseeri saharase...@gmail.com I am not facing any

Re: [android-developers] Arrayadapter

2012-04-08 Thread Ankita Kashyap
notifyDatasetChanged() on adapter 2012/4/8 sahar aseeri saharase...@gmail.com I am not facing any thing just I want steps to do it becauase I am beginer in android and java I read alot but there is no example help me to do it thanks بتاريخ 08 أبريل, 2012 01:11 م، جاء من Raghav Sood

Re: [android-developers] Arrayadapter

2012-04-08 Thread sahar aseeri
yes I know, I will do this code by my self but I what some one tell me what is the steps or if the steps that I wrote was correct or not because I searched in google and I didn't fine example like I want. بتاريخ 08 أبريل, 2012 04:52 م، جاء من Raghav Sood raghavs...@androidactivist.org: You

[android-developers] ArrayAdapter and AdapterView

2012-03-13 Thread Jags
I am using ArrayAdapter and AdapterView in one activity. Meaning, my base view is a gridview which uses BaseAdapter. i implement AdapterView.OnClickListener onClick method for knowing grid item selection. on grid item selection i show a dialog with listarrayadapter. now i need to have a

Re: [android-developers] ArrayAdapter and AdapterView

2012-03-13 Thread Anirudh Loya
OnView !! On Tue, Mar 13, 2012 at 6:08 PM, Jags jag...@gmail.com wrote: I am using ArrayAdapter and AdapterView in one activity. Meaning, my base view is a gridview which uses BaseAdapter. i implement AdapterView.OnClickListener onClick method for knowing grid item selection. on grid item

[android-developers] ArrayAdapter custom filtering over multiple activities

2012-01-10 Thread galapogos
Hi, I have an app with multiple tabs, each with its own ListActivity, let's call them SubActivities. The MainActivity that houses the SubActivities creates a list, and the SubActivities display a subset of the list based on some parameters. I'm currently implementing this with separate adapters

Re: [android-developers] ArrayAdapter not updating its ListView

2011-11-23 Thread scottishwildcat
Thanks, but as I said, I tried that, and it didn't help. And you shouldn't have to do that anyway -- according to the API documentationhttp://developer.android.com/reference/android/widget/ArrayAdapter.html#setNotifyOnChange(boolean), notification is meant to happen automatically when you're

[android-developers] ArrayAdapter not updating its ListView

2011-11-21 Thread scottishwildcat
Are their known issues with ArrayAdapters not updating their corresponding ListViews, even when you're just using the standard add(), remove(), insert() methods that are supposed to update them automatically? In my activity I'm declaring: public class ShoppingListAdapter extends

[android-developers] ArrayAdapter craziness

2010-07-20 Thread nwmotog...@gmail.com
I am using a custom array adapter in my ListView. It works fine when I am scrolling through a list of items slowly but when I attempt to scroll quickly the activity get's closed by the memory manager. Has anyone else run into this ? -- You received this message because you are subscribed to

[android-developers] ArrayAdapter use or misuse of the Adapter pattern

2010-02-12 Thread MCON Dev
I am about to give a class on Android, I am wondering if the ArrayAdapter is correctly used in the context of design patterns. Should it be ArrayStrategy instead ? Please share your thoughts Siddharth -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] ArrayAdapter use or misuse of the Adapter pattern

2010-02-12 Thread TreKing
On Fri, Feb 12, 2010 at 11:32 PM, MCON Dev mcon...@gmail.com wrote: Should it be ArrayStrategy instead ? Why? - TreKing - Chicago transit tracking app for Android-powered devices

[android-developers] ArrayAdapter also works with java.util.List (was Re: ListView with Streaming Content)

2009-10-21 Thread Miguel Paraz
Hi Marc and Streets of Boston, Thanks for the tips! As it turns out, subclassing is not necessary. The ArrayAdapter also works with java.util.List. I only found out while reading the source code (from the AOSP tree) to see how I can make a fork of it. Then, insert(object, index) will insert

[android-developers] ArrayAdapter of widgets (button and EditText)

2009-02-20 Thread zeeshan
Hi, i have wraped ArrayAdapter of a a single editText in a ListView (notepad example) ListView MsgListView = (ListView)findViewById(R.id.MsgListView); Button addimage = (Button) findViewById(R.id.addimage); final EditText EditMsgText = (EditText)findViewById(R.id.EditMsgText); final

[android-developers] ArrayAdapter / spinner help

2009-01-12 Thread Josh
I am querying the database and adding the results to a list. everything works fine until i set the adapter (setAdapter) on my spinner control. I get the error the application has stopped unexpectadely. can anyone tell me what Im doing wrong? ListString results = new

[android-developers] ArrayAdapter

2008-10-28 Thread Emery
How does the ArrayAdapter know when the array has been modified? I am using my own adapter, and I want to add items as they come in while asynchronously updating the ListView displaying them. --~--~-~--~~~---~--~~ You received this message because you are