Tôi đã tạo ứng dụng Hello World và hệ thống đã tạo hầu hết ngôn ngữ Android bên dưới. Khi chạy ứng dụng không có câu lệnh System.out
, không có "Hello" được hiển thị trong trình mô phỏng. Sau đó, khi sử dụng hướng dẫn Eclipse, tôi đọc rằng tôi có thể thêm câu lệnh System.out.println
vào chính. Một lần nữa ứng dụng chạy, nhưng không có đầu ra.Ứng dụng "Hello World" trên Android của tôi không nói "Xin chào"
Tôi không hiểu gì ở đây?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
System.out.println =" Hello world!"
/>
</LinearLayout>
là nó nói thế giới? – Shawn