Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid eclipse. Error when running my application
    primarykey
    data
    text
    <p>I cant get my application to work, but theres no error message in the development. Im trying to learn how to link my page to another page.</p> <p><img src="https://i.stack.imgur.com/LC2wZ.png" alt="enter image description here"></p> <p>TMactivity page 1.</p> <pre><code> public class TmActivity extends Activity { private ImageButton NewPage; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.main); this.NewPage = (ImageButton)this.findViewById(R.id.widget38); this.NewPage.setOnClickListener(new OnClickListener() { public void onClick(View WebView) { Intent i = new Intent(TmActivity.this, New.class); startActivity(i); } }); } } </code></pre> <p>// Page 2:</p> <pre><code> public class WebView extends Activity { public class New extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.web); } } } </code></pre> <p>//first xml:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;AbsoluteLayout android:id="@+id/widget0" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;ImageButton android:id="@+id/widget37" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#FFFFFF" android:layout_x="4dp" android:layout_y="387dp" /&gt; &lt;ImageButton android:id="@+id/widget38" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="69dp" android:layout_y="386dp" /&gt; &lt;ImageButton android:id="@+id/widget39" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="151dp" android:layout_y="386dp" /&gt; &lt;ImageButton android:id="@+id/widget40" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="242dp" android:layout_y="383dp" /&gt; &lt;TextView android:id="@+id/widget43" android:layout_width="wrap_content" android:layout_height="47px" android:background="#FF0000" android:text="Teknikmagasinet" android:textSize="20sp" android:typeface="sans" android:textStyle="bold" android:textColor="#FFFF00" android:layout_x="74dp" android:layout_y="11dp" /&gt; &lt;TextView android:id="@+id/widget44" android:layout_width="203px" android:layout_height="30px" android:text="nyheter" android:textColor="#FFFF00" android:layout_x="34dp" android:layout_y="77dp" /&gt; &lt;ImageView android:id="@+id/widget45" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ff33cc00" android:layout_x="44dp" android:layout_y="143dp" /&gt; &lt;TextView android:id="@+id/widget46" android:layout_width="wrap_content" android:layout_height="47px" android:background="#ffcc6600" android:text=" emil bergstrlm han &amp;#228;r kung " android:hint="phuong" android:layout_x="13dp" android:layout_y="255dp" /&gt; &lt;/AbsoluteLayout&gt; </code></pre> <p>// second xml:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" package="tm.com" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;ImageButton android:id="@+id/widget38" android:layout_width="150dp" android:layout_height="wrap_content" /&gt; &lt;Button android:text="Second Page" android:id="@+id/close" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/Button&gt; &lt;/LinearLayout&gt; sting xml: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;string name="hello"&gt;Hello World, TmActivity!&lt;/string&gt; &lt;string name="app_name"&gt;Tm.com&lt;/string&gt; &lt;string name="main_title"&gt;My Main Title&lt;/string&gt; &lt;/resources&gt; </code></pre> <p>Thank you for any help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload