Heres my code.
I don't see a .setText for View.
I guess I am confusing button and view.
thanks for any help.
jp


--------AndroidManifest.xml--------------

        <activity android:name=".About25"
                android:label="@string/about_title"
                android:theme="@android:style/Theme.Dialog">
        </activity>


-------Translate.java----------------


   private void findViews
      // Set up click listeners for all the buttons
      View aboutButton25 = findViewById(R.id.about_button25);
      aboutButton25.setOnClickListener(this);

      broke here <<<<<<??>>>>>>
      if(mph) {
         aboutButton25.setText("25 Mph");
      } else {
         aboutButton25.setText("25 Kph");
      }

   }


   public void onClick(View v) {

      switch (v.getId()) {

      case R.id.about_button25:
         Intent i25 = new Intent(this, About25.class);
         startActivity(i25);
         break;
   }


------About25.java-----------


public class About25 extends Activity {

}




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to