java - How i can open browser onPostExecute -


यहां कोड है

  आशय browserIntent = नए आशय (Intent.ACTION_VIEW, उरी। ( "? उपयोगकर्ता नाम =" this.redirectUrl + + getValue (loginString) + "& amp; पासवर्ड =" + getValue (pwdString)) पार्स); startActivity (browserIntent);  

मैं इस त्रुटि है:

  10-17 15: 30: 35.288 5467-5467 / com.example.android.navigationdrawerexample डब्ल्यू / dalvikvm: threadid (समूह = 0x40cd7930) धागा न आया हुआ अपवाद के साथ बाहर निकलने 10-17 15: = 1 30: 35.298 5467-5467 / com.example.android.navigationdrawerexample ई / AndroidRuntime: गंभीर अपवाद: मुख्य java.lang.IllegalStateException: टुकड़ा PlanetFragment {41b91f78 } गतिविधि से जुड़ी नहीं  

इस लाइन पर:

  startActivity (browserIntent);  

और मेरे लिए काम नहीं करता है मैं क्या कर सकता है?

आप क्यों नहीं बस टुकड़ा से getActivity () कॉल नहीं करते और फिर फोन startActivity () जैसे getActivity ()। StartActivity (आशय);


Comments

Popular posts from this blog

c# - XML serialize base class without knowing derived class -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

udp - The relationship between MTU and size of skb in xmit function -