java - Android MyFirstApp - Unfortunately application stopped working -
I designed the first application in Android by following the tips mentioned in
"Send" button Press, it shows the "Unfortunately the app works to stop working" and related logs are as follows Code: DisplayMessageActivity: What is the problem ?? I think this should solve your problem. I think I saw this paste link. I think this should solve your problem. / P> your
10-10 12:10 10: 04.029: D / DelWiki (550): Late not able to checkJN (already) 10-10 12:10 10: 06.549: D / Gralok_Goldfish (550): Emulator was detected without GPU simulation. 10-10 12:10 10: 26.169: D / Android Random (550): VM 10-10 12:10 10: 26.169: W / DelWiki (550): Threaded = 1: threads with no exception (Group = 0x409961f8 ) 10- 12 12: 10: 26.229: E / AndroidRuntime (550): Fatal Exceptions: Main 10-10 12:10 to 26.229: E / AndroidRuntime (550): java.lang.RuntimeException: Unable to Initiate Activity ComponentInfo { Com.example .myfirstapp.Com.example.myfirstapp.DisplayMessageActivity}: java.lang.IllegalArgumentException: No visual piece found for PlaceholderFragment {4108e7c8 # 0 ID = 0x7f080000} ID 10-10 12 for ID 0x7f080000: 10: 26.229: E / AndroidRuntime (550): android.app.ActivityThread.performLaunchActivity (ActivityThread.java:1 955) 10-10 12:10 at: 26.229: E / AndroidRuntime (550): android.app.ActivityThread.handleLaunchActivity (ActivityThread.java1980) at 10-10 12:10:26: E / Android Rendime (550) : Android App ActiveTrade.X $ 600 (ActivityTrad.JavaP 22) 10-10 12:10 10: 26.229: E / Android Time (550): Android. ActivityThread $ H.handleMessage (ActivityThread.java: 1146) on the app 10-10 12:10 10: 26.229: E / Android Random (Android 5.0): Android. On. Handler DiskPachmail (Handler. Java: 99) 10-10 12:10 and 26.229: E / Android Time (550): at Android.os.Looper.loop (Looper.java:137) 10-10 12:10: 26.229: E / Android Rantime (550): Android. App ActiveTrade Main (activity.Java 4340) 10-10 12:10 to 26.229: E / Android Random (550): java.lang.reflect.Method.invokeNative at (native methode) 10-10 12:10 10: 26.229: E / AndroidtimeTime (550): java.lang.reflect.method Call (Method.java☆11) 10-10 12:10 to 26.229: E / AndroidRuntime (550): com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:784) at 10-10 12: 10: 26.229: E / AndroidRuntime (550): 10: 26.229: E / AndroidRuntime (550): com.android.internal.os.ZygoteInit.main (ZygoteInit.javaror51) at dalvik.system 10-10 12. NativeStart.main (Original Resident Method) 10-10 12:10 pm: 26.229: E / AndroidRuntime (550): java.lang.IllegalArgumentException: No visual fragment due to idle 0x7f080000 for PlaceholderFragment {4108e7c8 # ID = 0x7f080000} 10-10 12:10 10: 26.229: E / AndroidRuntime (550): at android.app.FragmentManagerImpl.moveToState (FragmentManager.java:789) 10-10 12:10 10: 26.229: E / AndroidRuntime (550): Android.app.FragmentManagerImpl .moveToState (FragmentManager.java:998) 10-10 12:10:10 6.229: E / AndroidRuntime (550): 10: 26.229: e android.app.BackStackRecord.run (BackStackRecord.java:622) at 10-1012 / AndroidRuntime (550): android.app.FragmentManagerImpl.execPendingActions (FragmentManager. Java: 1330) 10-10 12:10 to 26.229: E / AndroidRuntime (550): android.app.Activity.performStart (Activity.java at: 4474) 10-10 12:10 to 12: 22.229: E / AndroidRuntime (550) : 10: 26.229: android.app.ActivityThread.performLaunchActivity (ActivityThread.java:1928) 10-10-12E / AndroidRuntime (550):. .. 11 and 10-10 12:10 10: 31.0 99: I / Process (550): sending the signal PID: 550 SIG: 9
< Code> Public Zero sending message (see footage) {intention intended = new intent (this, display message.class); EditText EditText = (Edit Text) Find VVBIID (RaidAdit_message); String message = editText.toString (). ToString (); Intent.putExtra (EXTRA_MESSAGE, message); StartActivity; }
@Override Build on Protected Zero (Bundle Saved Instantestate) {super.onCreate (savedInstanceState); SetContentView (R.layout.activity_display_message); If (savedInstanceState == zero) {getFragmentManager () BeginTransaction () .add (R.id.container, new placeholder fragment ()). Commit (); } Intent = getIntent (); String message = intestine .getStringExtra (MainActivity.EXTRA_MESSAGE); TextView textView = new text view (this); TextView.setTextSize (40); TextView.setText (message); SetContentView (TextView); }
activity_display_message.xml < / Code> you must add the following code
android: id = "@ + id / activity_display_message . < / Html>
Comments
Post a Comment