Re: [android-developers] Re: Problems with Custom Image View

2013-09-15 Thread Subin Sebastian
@Piren, The xml for the row is as below. Please take a look. http://schemas.android.com/apk/res/android"; android:id="@+id/rl_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp" >

Re: [android-developers] Re: How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Hand Green
Thank you a lot! Just setting setRetainInstance(true) in DialogFragment is not enough. The dialog just disappears after rotation. I happen to find a thread: http://stackoverflow.com/questions/8235080/fragments-dialogfragment-and-screen-rotation In addition to setRetainInstance(true), we should over

Re: [android-developers] Re: How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Piren
err, actually i've also missed something and read the stacktrace incorrectly. Only now i've noticed the NPE was actually in the framework code... If you didn't already, add SetRetainInstance to the DialogFragment as well (in its onCreate, not onCreateDialog). as a last resort you can always over

Re: [android-developers] Re: How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Greenhand
Yes. I am pretty sorry for my carelessness when extracting the related code snippets. new MyAsyncTask.execute() should be new MyAsyncTask(this).execute(). As for the MyAsyncTask: public class MyAsyncTask extends AsyncTask{ //do network operation private Fragment*A* fragment; public MyAsyn

Re: [android-developers] Re: How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Piren
and did you use that constructor? because the code snippet shows you've used the default constructor On Sunday, September 15, 2013 1:52:22 PM UTC+3, Greenhand wrote: > > Thanks for pointing out the mistakes. The whole code is too long to post > and maintain readability so I just put some snippet

[android-developers] Re: No recovery.fstab found

2013-09-15 Thread RichardC
AOSP groups are here: http://source.android.com/source/community/index.html This group is for developing applications that run on the Android Platform On Saturday, September 14, 2013 6:30:38 PM UTC+1, dino omanovic wrote: > > This is my first build from source. I got so far to this step: > > mak

Re: [android-developers] Re: How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Hand Green
Thanks for pointing out the mistakes. The whole code is too long to post and maintain readability so I just put some snippet. The "MyAsyncTask having a constructor named GetTokenAsyncTask" is a typo, the constructor should named MyAsyncTask. As for ProgressFragment, I use its toString() method to

[android-developers] Re: How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Piren
It's hard to follow your code since it seems some of it is incorrect (like MyAsyncTask having a constructor named GetTokenAsyncTask) and some of it is missing... Either way you should verify you actually used that constructor (in the current code you don't, so the member "fragment" is null).E

[android-developers] How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Greenhand
I use appcompat library to host some fragments for tabs. In a specific fragment A, I need to do network operation. In order not to block the UI thread, I use an AsyncTask and do the network operation in doInBackGround(). To prevent messing around keep AsyncTask to survive rotation in the fr

[android-developers] How to dismiss nested dialogfragment correctly after rotation?

2013-09-15 Thread Greenhand
I use appcompat library and support library v4 to host some fragments for tabs. In a specific fragment A, I need to do network operation. In order not to block the UI thread, I execute an AsyncTask in fragment A and do the network operation in doInBackGround() of the AsyncTask. To prevent me

[android-developers] problems with data security or lose data

2013-09-15 Thread Miro
I would like to ask you about your three most important issues of data security or lose data on your Smartphone. For this purpose, has been created web site. http://en.mydatasecuritymonitor.reembedded.com and the status of the Fan Page