[android-developers] Re: Facebook SDK error

2011-10-22 Thread Studio LFP
It looks like you are starting Activity B with startActivityForResult. Are you trying to receive some information back into Activity A from Activity B? If not, you just want to use startActivity instead. Steven Studio LFP http://www.studio-lfp.com On Saturday, October 22, 2011 9:36:10 AM

[android-developers] Re: Facebook SDK error

2011-10-22 Thread ndiiie90
hmm not really.. actually the error is only about when i press back button from activity B, it returns to activity A (where i implement the facebook sdk) but the facebook sdk returns error about nullPointerException since the startActivityForResult has no data for it parameters. how can i solve

Re: [android-developers] Re: Facebook SDK error

2011-10-22 Thread Appaholics
If you are not passing any parameters back then Activity A will receive one or more null values, hence causing an NPE. Try passing back RESULT_OK. Thanks On Sat, Oct 22, 2011 at 9:05 PM, ndiiie90 rnd...@gmail.com wrote: hmm not really.. actually the error is only about when i press back

[android-developers] Re: Facebook SDK error

2011-10-22 Thread Studio LFP
If you are not wanting to return info to Activity A from Activity B, just use startActivity() in Activity A instead of startActivityForResult(). If you use startActivityForResult() to launch Activity B from Activity A, Activity A expects Activity B to send information back when it closes. You'd

Re: [android-developers] Re: Facebook SDK error

2011-10-22 Thread Kostya Vasilyev
Assuming test.test.Test is your activity, the code crashes inside Test.onActivityResult at line 507 in Test.java. 10-22 21:33:23.445: ERROR/AndroidRuntime(538): Caused by: java.lang.NullPointerException 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at