You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
44 lines
1.3 KiB
package net.micode.notes.ui;
|
|
|
|
import android.os.Bundle;
|
|
import android.speech.tts.TextToSpeech;
|
|
import android.support.v7.app.AppCompatActivity;
|
|
import android.util.Log;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.widget.Button;
|
|
import android.widget.Toast;
|
|
|
|
import net.micode.notes.R;
|
|
|
|
|
|
public class GetLocation extends AppCompatActivity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
this.setContentView(R.layout.local);
|
|
Toast.makeText(GetLocation.this,"init",Toast.LENGTH_SHORT).show();
|
|
Button local_1 = new Button(this);
|
|
Button local_2 = new Button(this);
|
|
local_1.setOnClickListener(new View.OnClickListener() {
|
|
private static final String TAG = "GetLocation";
|
|
|
|
@Override
|
|
public void onClick(View v) {
|
|
Log.i(TAG, "onClick: button1");
|
|
Toast.makeText(GetLocation.this,"button1",Toast.LENGTH_SHORT).show();
|
|
}
|
|
});
|
|
local_2.setOnClickListener(new View.OnClickListener() {
|
|
@Override
|
|
public void onClick(View v) {
|
|
Toast.makeText(GetLocation.this, "button2", Toast.LENGTH_SHORT).show();
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
}
|