do you change the parameter in setContentView() in onCreate.
for example, first activity is setContentView(R.layout.bluetooth_main);
and second is setContentView(R.layout.bluetooth_editmydevice);
in second activity code onCreate
@Override public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.bluetooth_editmydevice);
editTextDeviceName =
(EditText)findViewById(R.id.EditTextDeviceName);
editTextDeviceAddress =
(EditText)findViewById(R.id.EditTextDeviceAddress);
editTextDeviceProfile =
(EditText)findViewById(R.id.EditTextDeviceProfile);
radioGroupDeviceDiscoverable =
(RadioGroup)findViewById(R.id.RadioGroupSetDiscoverable);
saveButton = (Button)findViewById(R.id.ButtonSave);
saveButton.setOnClickListener(btnSaveOnClick);
...
}
private OnClickListener btnSaveOnClick = new OnClickListener() {
public void onClick(View v) {
.....
}
}
pls try.
On Thu, Nov 20, 2008 at 9:14 AM, Lawrence Samantha <[EMAIL PROTECTED]>wrote:
> how about putting a try catch block and run it on debug... see where it
> fails.
>
> 2008/11/18 Light052 <[EMAIL PROTECTED]>
>
>>
>> Hi All,
>>
>> Am very new to the Android platform as a developer and have been
>> struggling with some issues, one of which is:
>>
>> I have a number of screens in my application (activities). Now, the
>> main splash screen has a button which, upon being clicked moves on to
>> the main menu (Activity no. 2). That works well. The second page has a
>> number of buttons too. It seems though that I'm not able to implement
>> Listeners for any of the buttons in the second page. It throws an
>> Exception yet the exception does not have any message ( I tried
>> printing it by a Toast, as a form of debugging, and it just flashed a
>> blank screen)
>>
>> Please, please, please HELP! I have such a tight deadline and have
>> much left to be done....
>>
>> Thank you all in Advance...
>>
>>
>> Hussein
>> >>
>>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---