統合完了

This commit is contained in:
it232115 2024-06-05 15:04:54 +09:00
parent b10f3409a6
commit ac3db6c0e4
3 changed files with 10 additions and 19 deletions

View File

@ -32,10 +32,10 @@
android:name=".MapsActivity" android:name=".MapsActivity"
android:exported="true" android:exported="true"
android:label="@string/title_activity_maps"> android:label="@string/title_activity_maps">
<intent-filter> <!-- <intent-filter>-->
<action android:name="android.intent.action.MAIN" /> <!-- <action android:name="android.intent.action.MAIN" />-->
<category android:name="android.intent.category.LAUNCHER" /> <!-- <category android:name="android.intent.category.LAUNCHER" />-->
</intent-filter> <!-- </intent-filter>-->
</activity> </activity>

View File

@ -1,28 +1,21 @@
package com.example.oplogy; package com.example.oplogy;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import androidd.os.Bunle; import android.os.Bundle;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.TextView; import android.widget.TextView;
import com.google.android.gms.tasks.OnFailureListener; import androidx.appcompat.app.AppCompatActivity;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.firebase.firestore.DocumentReference;
import com.google.firebase.firestore.DocumentSnapshot;
import com.google.firebase.firestore.FirebaseFirestore; import com.google.firebase.firestore.FirebaseFirestore;
import com.google.firebase.firestore.QueryDocumentSnapshot; import com.google.firebase.firestore.QueryDocumentSnapshot;
import java.util.HashMap;
import java.util.Map;
public class MainActivity extends AppCompatActivity {
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
private TextView textView; private TextView textView;
private Button btnShow; private Button btnShow;
private Button btnAdd; private Button btnAdd;
@ -33,9 +26,6 @@ public class MainActivity extends AppCompatActivity {
private FirebaseFirestore db = FirebaseFirestore.getInstance(); private FirebaseFirestore db = FirebaseFirestore.getInstance();
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
Button button; Button button;
// TextView textView; // TextView textView;
EditText editText; EditText editText;

View File

@ -11,6 +11,7 @@ import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions; import com.google.android.gms.maps.model.MarkerOptions;
import com.example.oplogy.databinding.ActivityMapsBinding; import com.example.oplogy.databinding.ActivityMapsBinding;
//import com.google.type.LatLng;
public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { public class MapsActivity extends FragmentActivity implements OnMapReadyCallback {