[android-developers] Get Current Location

2013-08-28 Thread Seshu
Hi developers, I am doing project on maps in which i need to get the current location. if both network provider and gps provider disabled means then i am opening the locations in setting menu and then user ll select either any one and after selecting any one option i need to get the cu

[android-developers] Re: how to load correct images i have all size images ldpi hdpi xhdpi xxhdpi

2013-08-28 Thread Harish
> > as long as things works i don't see any issue, standard density folders >> does't work always that's what we face and now every thing working as we >> want. > > However in future If I find a better solution with standard folder then perfect. -- You received this message because you are s

Re: [android-developers] Re: LoaderCallbacks.OnLoadFinished called twice in Fragments

2013-08-28 Thread Hand Green
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

[android-developers] Re: LoaderCallbacks.OnLoadFinished called twice in Fragments

2013-08-28 Thread Greenhand
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

[android-developers] Re: how to load correct images i have all size images ldpi hdpi xhdpi xxhdpi

2013-08-28 Thread kj
Putting images in drawable folders based on screen resolution is a bad idea, do not do this. Make the proper images and place them into the standard density folders: drawable-hdpi, drawable-mdpi, etc. See the icon design guidelines for sizing info: https://developer.android.com/design/style/ico

Re: [android-developers] Fwd: Android doubt

2013-08-28 Thread Sumedh Jiwane
Nothing is much clear from the description of your problem. I am suspecting that you are facing the UI issue. Are you calling logout function in main thread/ui thread? If so replace it with worker thread. Alternatively you can start a service using AlarmManager. On Fri, Aug 23, 2013 at 4:37 PM,