Skip to content

Commit

Permalink
Erro de Toast concertado.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahuanls committed Jun 26, 2013
1 parent 785515f commit fd9dff1
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 26 deletions.
5 changes: 3 additions & 2 deletions LoveGame_Project/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="lib" path="Plugin/Google Gson/gson-2.2.2-javadoc.jar"/>
<classpathentry exported="true" kind="lib" path="Plugin/Google Gson/gson-2.2.2-sources.jar"/>
<classpathentry exported="true" kind="lib" path="Plugin/Google Gson/gson-2.2.2.jar"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
3 changes: 2 additions & 1 deletion LoveGame_Project/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<activity
android:name="com.example.lovegame_project.Menu_main"
android:label="@string/app_name" >
<intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -46,6 +46,7 @@
<activity
android:name="com.example.lovegame_project.Chat"
android:label="@string/title_activity_chat" >

</activity>
<activity
android:name="com.example.lovegame_project.DeviceList"
Expand Down
3 changes: 2 additions & 1 deletion LoveGame_Project/bin/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<activity
android:name="com.example.lovegame_project.Menu_main"
android:label="@string/app_name" >
<intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -46,6 +46,7 @@
<activity
android:name="com.example.lovegame_project.Chat"
android:label="@string/title_activity_chat" >

</activity>
<activity
android:name="com.example.lovegame_project.DeviceList"
Expand Down
Binary file modified LoveGame_Project/bin/LoveGame_Project.apk
Binary file not shown.
Binary file modified LoveGame_Project/bin/classes.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion LoveGame_Project/bin/jarlist.cache
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# cache for current jar dependecy. DO NOT EDIT.
# cache for current jar dependency. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
Binary file modified LoveGame_Project/bin/res/drawable-mdpi/credito.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LoveGame_Project/bin/res/drawable-mdpi/instrucao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LoveGame_Project/bin/resources.ap_
Binary file not shown.
2 changes: 1 addition & 1 deletion LoveGame_Project/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-10
target=android-17
1 change: 1 addition & 0 deletions LoveGame_Project/res/layout/activity_menumain.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/tela_inicio"
Expand Down
21 changes: 11 additions & 10 deletions LoveGame_Project/src/com/example/lovegame_project/Chat.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,28 @@ public class Chat extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);


//Criar classe para mudar orientacao e mexer com full screen etc
// Screen adjustments
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

setContentView(R.layout.activity_chat);

MinhasCoisas.setCurrentActivity(this);


this.bt_enviar = (Button)findViewById( R.id.bt_enviar);
this.edit_resposta = (EditText)findViewById( R.id.edit_resposta);
this.textv_pergunta = (TextView)findViewById(R.id.pergunta);
this.textv_resposta = (TextView)findViewById(R.id.resposta);


//this.edit_resposta.setEnabled(false);

//ChangeInterface(JogoEmSi.get().getTurn());

setContentView(R.layout.activity_chat);
MinhasCoisas.setCurrentActivity(this);

MinhasCoisas.Show(String.valueOf(JogoEmSi.get().getTurn()));
if(this.bt_enviar != null)
{
MinhasCoisas.Show("n Nulo");
this.bt_enviar.setText("Thauan Lopes");
}
}

public void ChangeVisualization(boolean turn)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public void handleMessage(Message msg) {
super.handleMessage(msg);
}
};

MinhasCoisas.Show("log");

}

Expand Down
12 changes: 3 additions & 9 deletions LoveGame_Project/src/com/example/lovegame_project/Menu_main.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,21 @@ protected void onCreate(Bundle savedInstanceState) {

MinhasCoisas.setCurrentActivity(this);
setContentView(R.layout.activity_menumain);

//MinhasCoisas.setGameFonte(Typeface.createFromAsset(getAssets(),"fonts/fonte.TTF"));


btAdapter = BluetoothAdapter.getDefaultAdapter();


ImageButton btcomecar = (ImageButton)findViewById (R.id.bt_comecar);
ImageButton btinstrucoes = (ImageButton)findViewById (R.id.bt_instrucoes);
ImageButton btcreditos = (ImageButton)findViewById (R.id.bt_creditos);

MinhasCoisas.Show("Bem vindo");
PegarPergunta();

//Start button
btcomecar.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
try{

SoundManager.getInstance().playSound(R.raw.test_sound, "Teste");


if(btAdapter != null)
{
//MinhasCoisas.Show("Este telefone possui tecnologia Bluetooth");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void Show(final String msg)
currentActivity.runOnUiThread(new Runnable(){
@Override
public void run() {
Toast.makeText(currentActivity, msg, Toast.LENGTH_SHORT).show();
Toast.makeText(currentActivity, msg, Toast.LENGTH_SHORT ).show();
}
});
}
Expand Down

0 comments on commit fd9dff1

Please sign in to comment.