Putting initLoader in onCreate() causes onLoadFinished() be called twice.
There is also another thread
http://stackoverflow.com/questions/11293441/android-loadercallbacks-onloadfinished-called-twice.
It suggest put initLoader in onCreate() in onResume(). It works but I do
not know why.
2013/8/28
Same.
Although it is an old thread, I encounter the same issue, too. I find the
thread
http://stackoverflow.com/questions/11001475/listfragment-is-inflated-twice.
It says put initLoader in onCreate() according to Fragment lifecycle (
http://developer.android.com/guide/topics/fundamentals/fragm
Same
On Wednesday, June 27, 2012 4:53:47 PM UTC+3, szakalinhoPL wrote:
>
> Hello,
> I noticed a strange situation when using Loader in Fragment (in Activity
> works well). I init Loader in onActivityCreated() as suggested in
> documentation (http://developer.android.com/guide/components/loaders.
Same issue here!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more
4 matches
Mail list logo