Try this instead. Intent intent = new Intent(Login.this, Browse.class); That normally works.
Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 6, 12:31 am, Ray <[email protected]> wrote: > I create 2 simple activities, first activity is to login, after that > proceed to the second activity. However, the intent is having some > runtime error: saying that the sources is not found. these are my > codes: > > public class Login extends Activity { > private EditText text; > private Button clearPinButton; > private Button loginButton; > > private OnClickListener clearPinListener = new OnClickListener() { > public void onClick(View v) { > text.setText(""); > } > }; > > private OnClickListener loginListener = new OnClickListener() { > public void onClick(View v) { > Intent intent = new Intent(); > intent.setClass(Login.this, Browse.class); > // intent.putExtra("com.android.samples.SpecialValue", > "Hello, Joe!"); > startActivity(intent); > } > }; > > .... > > public class Browse extends TabActivity { > > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.browse); > ..... > > <application android:icon="@drawable/icon" android:label="@string/ > app_name"> > <activity android:name=".Login" > android:label="@string/app_name"> > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > <category > android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity> > <activity android:name=".Browse"></activity> > </application> > > anyone can help me on this? -- You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en

