19.03.2011 13:57, Mahavir Jain пишет:
Is it valid to call AsyncTask from PendingIntent service or activity?
AsyncTask has nothing to do with pending intents or activities. It's
just a utility class.
Check your logcat more carefully:
ERROR/AndroidRuntime(473): Caused by: java.lang.NullPointerException
ERROR/AndroidRuntime(473): at
java.net.URLEncoder.encode(URLEncoder.java:53)
ERROR/AndroidRuntime(473): at
com.facebook.android.Util.encodeUrl(Util.java:86)
ERROR/AndroidRuntime(473): at
com.facebook.android.Util.openUrl(Util.java:146)
ERROR/AndroidRuntime(473): at
com.mobisys.android.app_widget.FBQueryAsyncTask.doInBackground(FBQueryAsyncTask.java:50)
Assuming that com.mobisys is your application, look in
FBQueryAsync.java, line 50.
Are you somehow calling Facebook classes with a NULL pointer?
Are you using AsyncTask from a widget's onReceive?
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en