Click here to Skip to main content
15,877,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello Guys, i need your help actually the problem is am facing is that when i open new activity on button click so my app is closed automatically guys please help me please

What I have tried:

        public void onClick(View view) {
                // If EditText is not empty and CheckEditText = True then this block will execute.
//                UserRegisterFunction(F_Name_Holder,L_Name_Holder, EmailHolder, PasswordHolder,CNIC_Holder,Phone_Holder,UsernameHolder,active);
                Intent in = new Intent(Register.this,PhoneAuthActivity.class);
            else {
                // If EditText is empty then this block will execute .
                Toast.makeText(Register.this, "Please fill all form fields.", Toast.LENGTH_LONG).show();
Richard MacCutchan 23-Jan-18 4:11am    
What happens after the button click?
Member 9983063 23-Jan-18 4:25am    
app is close automatically after button click
Darren_vms 23-Jan-18 6:33am    
Do you have the correct activity defined in AndroidManifest.xml ?
Member 9983063 23-Jan-18 6:40am    
wseng 23-Jan-18 6:53am    
please post the stacktrace

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900