[android-developers] Re: Order of intents delivery

2014-05-16 Thread Doug
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

[android-developers] Android native process pauses after 10 to 15 seconds

2014-05-16 Thread Put_tiMe
[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,

[android-developers] Re: position value in getView seems too big

2014-05-16 Thread plnelson
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 (

[android-developers] Re: position value in getView seems too big

2014-05-16 Thread Streets Of Boston
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.

[android-developers] ListView getCount is wrong - how do I reset it?

2014-05-16 Thread plnelson
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,

[android-developers] Re: position value in getView seems too big

2014-05-16 Thread plnelson
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

Re: [android-developers] Re: position value in getView seems too big

2014-05-16 Thread Kostya Vasilyev
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:

[android-developers] Is android notepad sample not reachable from documentation?

2014-05-16 Thread wondering
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