Note that there are some explanatory texts on larger screens.

plurals
  1. POYellow Warning everywhere TabActivity
    primarykey
    data
    text
    <p>I'm trying to make a tab activity from an example , in the example it has the yellow warning but it works fine but in my project it has the yellow warning but it keeps crashing it doesn't work</p> <p>this is the TabActivity c`package com.example.shsulimaan;</p> <pre><code>import android.app.TabActivity; import android.content.Intent; import android.content.res.Resources; import android.os.Bundle; import android.widget.TabHost; import android.widget.TabHost.TabSpec; public class MainActivity extends TabActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TabHost tabHost = getTabHost(); Resources resources = getResources(); // Tab for Photos TabSpec khspec = tabHost.newTabSpec("Khutab"); khspec.setIndicator("Khutab", getResources().getDrawable(R.drawable.khutab)); Intent khIntent = new Intent(MainActivity.this, kh.class); khspec.setContent(khIntent); // Tab for Songs TabSpec shspec = tabHost.newTabSpec("Shsuliman"); khspec.setIndicator("Shsuliman", getResources().getDrawable(R.drawable.suliman)); Intent shIntent = new Intent(MainActivity.this, sh.class); shspec.setContent(shIntent); // Tab for Videos TabSpec mspec = tabHost.newTabSpec("Multimedia"); mspec.setIndicator("Multimedia", getResources().getDrawable(R.drawable.multimedia)); Intent mIntent = new Intent(MainActivity.this, media.class); mspec.setContent(mIntent); // Adding all TabSpec to TabHost tabHost.addTab(mspec); // Adding photos tab tabHost.addTab(shspec); // Adding songs tab tabHost.addTab(khspec); // Adding videos tab } } </code></pre> <p>`</p> <p>the yellow warning shows in these codes</p> <pre><code>import android.app.TabActivity; TabActivity onCreate(savedInstanceState) TabHost tabHost = getTabHost(); Resources resources = getResources(); </code></pre> <p>also i have yellow warning in the manifest.xml</p> <pre><code> &lt;uses-sdk android:minSdkVersion="10" android:targetSdkVersion="16" /&gt; </code></pre> <p>it keeps telling me i must set the target sdk version while i've already done that !!</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