Yes, if they are called from the same thread because they will eventually
be processed serially from the queue on the main thread's looper.
Doug
On Thursday, May 15, 2014 4:49:59 AM UTC-7, Durgadoss Ramanathan wrote:
Hi,
I have a Service from which I send an intent twice like below. I have
[I'm not sure if I have to ask this question in the NDK forum]
I have an Android Java app, and also a native app. The native app is
launched from the Java app, like this:
mProcess = Runtime.getRuntime().exec(cmdLaunch, null, new File(files_dir));
The native process actually runs in a loop,
Sorry - should be lv.get*Count*.
And yes, I am calling notifyDataSetChanged.
I've also tried calling the ListView's *invalidate()* method, with no
change in the behavior.
Since posting this I've written a whole separate version of the program
where I initially display 12 items (
That is hard to figure out without you posting the code of your adapter and
how you create an instance of your adapter. It is probably a subtle bug...
On Friday, May 16, 2014 2:34:19 PM UTC-4, plnelson wrote:
Sorry - should be lv.get*Count*.
And yes, I am calling notifyDataSetChanged.
I have a listView in an android app which works fine when I first populate
it - it displays and scrolls with no problem. But if I load in a new,
smaller dataset and call notifyDataSetChanged() the app crashes because
getView() gets called with a position value that's bigger than the dataset,
There's a lot of proprietary code in the adapter; I'll see if I can whittle
it down to something simple but meanwhile I'd like to pursue the listview's
strange getCount result. Because that's a separate question from the
getView()'s position value (maybe) I've started a separate thread
The value returned by AdapterView.getCount is cached.
https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/AdapterView.java#580
It's also updated after you've called notifyDataSetChanged:
Anyone knows why the familiar Notepad sample - and perhaps others - is not
reachable from
http://developer.android.com/training/index.html ?
I found this page only by googling
http://developer.android.com/training/notepad/index.html
--
You received this message because you are subscribed to
8 matches
Mail list logo