Re: [android-developers] Re: getSherlockActivity throwing Nullpointer Exception

2012-11-07 Thread Παύλος-Πέτρος Τουρνάρης
Diogo i have already tried that with no success!



On Mon, Nov 5, 2012 at 3:11 PM, Diogo Henrique diogj...@gmail.com wrote:

 why you don't try...

 progressDisplay.show(getAplicationConext(),
 LoadingDialog);






 Em segunda-feira, 5 de novembro de 2012 10h28min12s UTC-2, vani escreveu:


 HI friends,
 I am using Sherlock library for android

 progressDisplay = new LoadingDialog();
 progressDisplay.setCancelable(**false);
  progressDisplay.show(**getSherlockActivity().**
 getSupportFragmentManager(),
  LoadingDialog);

 LoadingDialog is the class which extends  SherlockDialogFragment.
 When i click on home button and close it, and again relaunch it on long
 press of home press app is force closing in the below line:

 progressDisplay.show(**getSherlockActivity().**
 getSupportFragmentManager(),
 LoadingDialog);

 Any clues why it is happeneing??
 Please give me ideas how to solve it.


 --
 Regards,
 Vani Reddy

   --
 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 options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: getSherlockActivity throwing Nullpointer Exception

2012-11-06 Thread Diogo Henrique
why you don't try...

progressDisplay.show(getAplicationConext(),
LoadingDialog);






Em segunda-feira, 5 de novembro de 2012 10h28min12s UTC-2, vani escreveu:


 HI friends,
 I am using Sherlock library for android

 progressDisplay = new LoadingDialog();
 progressDisplay.setCancelable(false);
  progressDisplay.show(getSherlockActivity().getSupportFragmentManager(),
  LoadingDialog);

 LoadingDialog is the class which extends  SherlockDialogFragment.
 When i click on home button and close it, and again relaunch it on long 
 press of home press app is force closing in the below line:

 progressDisplay.show(getSherlockActivity().getSupportFragmentManager(),
 LoadingDialog);

 Any clues why it is happeneing??
 Please give me ideas how to solve it.


 -- 
 Regards,
 Vani Reddy

  

-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en