Olá Éderson,
-- Faltou o layout, activity_register.
2015-08-14 13:36 GMT-03:00 Éderson Sandre <ederson.sandre@gmail.com>:
Então Thiago, o duro que não!
public class RegisterActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_register, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}Em 14 de agosto de 2015 13:16, Thiago Neves <ttn.passos@gmail.com> escreveu:Provavelmente nessa Activity que você está chamando deve ter mais de um view como Filho, e só pode ter um filho direto, entendeu ?Em 14 de agosto de 2015 12:29, Éderson Sandre <ederson.sandre@gmail.com> escreveu:Boa tarde galera!Estou tendo dificuldade ao rodar aplicativo em um nova activity, ao criar um nova esta em apresentando o seguinte erro:java.lang.RuntimeException: Unable to start activity ComponentInfoCaused by: java.lang.IllegalStateException: ScrollView can host only one direct childSendo que nesta nova activity não tem ligação nenhuma com as outras do aplicativo, está no padrão que o sistema me gera de criação.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário