Created
June 8, 2013 22:29
-
-
Save caioerick/5736845 to your computer and use it in GitHub Desktop.
Problema com mudança de tela Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.aplicacao.app; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
public class MainActivity extends Activity { | |
Button Votar; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.inicio); | |
Votar = (Button) findViewById(R.id.btVotar); | |
} | |
public void Votar(View v) { | |
Intent troca = new Intent(IntensaoActivity.this, Votar.class); | |
startActivity(troca); | |
finish(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="br.com.aplicacao.app" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="7" | |
android:targetSdkVersion="7" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:allowBackup="true" | |
android:icon="@drawable/ic_launcher" | |
android:label="@string/app_name" | |
android:theme="@style/AppTheme" > | |
<activity | |
android:name="br.com.aplicacao.app.MainActivity" | |
android:label="@string/app_name" | |
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" > | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
<activity | |
android:name="br.com.aplicacao.app.Login" | |
android:label="@string/app_name" | |
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" > | |
</activity> | |
</application> | |
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.aplicacao.app; | |
import android.app.Activity; | |
import android.os.Bundle; | |
public class Login extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.tela_votar); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment