{"id":853,"date":"2023-09-01T12:36:03","date_gmt":"2023-06-06T18:00:43","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/"},"modified":"2025-08-01T03:02:05","modified_gmt":"2025-07-31T18:02:05","slug":"%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/","title":{"rendered":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API"},"content":{"rendered":"<p>Android\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30e2\u30d0\u30a4\u30eb\u306e\u73fe\u5728\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3057\u3001\u30a2\u30d7\u30ea\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u73fe\u5728\u4f4d\u7f6e\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u53d6\u5f97\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u4f4d\u7f6e\u60c5\u5831API<\/h2>\n<p>\u79c1\u305f\u3061\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u4f4d\u7f6e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b2\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>android.location.LocationListener : This is a part of the Android API.<\/li>\n<li>com.google.android.gms.location.LocationListener : This is present in the Google Play Services API. (We\u2019ll look into this in the next tutorial)<\/li>\n<\/ul>\n<p>Android API 1\u4ee5\u964d\u3067\u306f\u3001Android\u306e\u4f4d\u7f6e\u60c5\u5831\u30b5\u30fc\u30d3\u30b9\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002Google\u306f\u516c\u5f0f\u306b\u3001Google Play\u306e\u4f4d\u7f6e\u60c5\u5831\u30b5\u30fc\u30d3\u30b9API\u306e\u5229\u7528\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001Google Play\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u30c7\u30d0\u30a4\u30b9\u306e\u305f\u3081\u306b\u3001\u307e\u3060Android\u306e\u4f4d\u7f6e\u60c5\u5831\u30b5\u30fc\u30d3\u30b9API\u3092\u4f7f\u7528\u3057\u3066\u4f4d\u7f6e\u60c5\u5831\u306b\u57fa\u3065\u3044\u305f\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u4f4d\u7f6e\u60c5\u5831\u30ea\u30b9\u30ca\u30fc<\/h3>\n<p>LocationManager\u306e\u4e00\u74b0\u3067\u3042\u308bLocationListener\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001\u5834\u6240\u304c\u5909\u66f4\u3055\u308c\u305f\u969b\u306bLocationManager\u304b\u3089\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002LocationManager\u30af\u30e9\u30b9\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u4f4d\u7f6e\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002LocationListener\u30af\u30e9\u30b9\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>onLocationChanged(Location location) : Called when the location has changed.<\/li>\n<li>onProviderDisabled(String provider) : Called when the provider is disabled by the user.<\/li>\n<li>onProviderEnabled(String provider) : Called when the provider is enabled by the user.<\/li>\n<li>onStatusChanged(String provider, int status, Bundle extras) : Called when the provider status changes.<\/li>\n<\/ul>\n<p>android.location\u306b\u306f\u3001\u5834\u6240\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e2\u3064\u306e\u624b\u6bb5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>LocationManager.GPS_PROVIDER: Determines location using satellites. Depending on the conditions, this provider may take a while to return a location fix<\/li>\n<li>LocationManager.NETWORK_PROVIDER: Determines location based on the availability of nearby cell towers and WiFi access points. This is faster than GPS_PROVIDER<\/li>\n<\/ul>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001GPS\u30d7\u30ed\u30d0\u30a4\u30c0\u307e\u305f\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30d0\u30a4\u30c0\u7d4c\u7531\u3067\u5b9a\u671f\u7684\u306a\u4f4d\u7f6e\u60c5\u5831\u306e\u66f4\u65b0\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306b\u3001LocationListener\u30af\u30e9\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>Android\u306e\u4f4d\u7f6e\u60c5\u5831API\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u9020<\/h3>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001Get Location\u3092\u8868\u793a\u3059\u308bMainActivity.java\u30af\u30e9\u30b9\u3068\u3001LocationTrack.java\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3API\u30b3\u30fc\u30c9<\/h3>\n<p>\u4ee5\u4e0b\u306bactivity_main.xml\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;RelativeLayout xmlns:android=\"https:\/\/schemas.android.com\/apk\/res\/android\"\r\n    xmlns:tools=\"https:\/\/schemas.android.com\/tools\"\r\n    android:id=\"@+id\/activity_main\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:paddingBottom=\"@dimen\/activity_vertical_margin\"\r\n    android:paddingLeft=\"@dimen\/activity_horizontal_margin\"\r\n    android:paddingRight=\"@dimen\/activity_horizontal_margin\"\r\n    android:paddingTop=\"@dimen\/activity_vertical_margin\"\r\n    tools:context=\"com.scdev.gpslocationtracking.MainActivity\"&gt;\r\n\r\n    &lt;Button\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:id=\"@+id\/btn\"\r\n        android:layout_centerInParent=\"true\"\r\n        android:text=\"GET LOCATION\" \/&gt;\r\n&lt;\/RelativeLayout&gt;\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306bMainActivity.java\u30af\u30e9\u30b9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.gpslocationtracking;\r\n\r\nimport android.annotation.TargetApi;\r\nimport android.content.DialogInterface;\r\nimport android.content.pm.PackageManager;\r\nimport android.os.Build;\r\nimport android.support.v7.app.AlertDialog;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.os.Bundle;\r\nimport android.util.Log;\r\nimport android.view.View;\r\nimport android.widget.Button;\r\nimport android.widget.Toast;\r\n\r\nimport java.util.ArrayList;\r\n\r\nimport static android.Manifest.permission.ACCESS_COARSE_LOCATION;\r\nimport static android.Manifest.permission.ACCESS_FINE_LOCATION;\r\n\r\npublic class MainActivity extends AppCompatActivity {\r\n\r\n\r\n    private ArrayList permissionsToRequest;\r\n    private ArrayList permissionsRejected = new ArrayList();\r\n    private ArrayList permissions = new ArrayList();\r\n\r\n    private final static int ALL_PERMISSIONS_RESULT = 101;\r\n    LocationTrack locationTrack;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n\r\n        permissions.add(ACCESS_FINE_LOCATION);\r\n        permissions.add(ACCESS_COARSE_LOCATION);\r\n\r\n        permissionsToRequest = findUnAskedPermissions(permissions);\r\n        \/\/get the permissions we have asked for before but are not granted..\r\n        \/\/we will store this in a global list to access later.\r\n\r\n\r\n        if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n\r\n\r\n            if (permissionsToRequest.size() &gt; 0)\r\n                requestPermissions(permissionsToRequest.toArray(new String[permissionsToRequest.size()]), ALL_PERMISSIONS_RESULT);\r\n        }\r\n\r\n\r\n        Button btn = (Button) findViewById(R.id.btn);\r\n\r\n\r\n        btn.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View view) {\r\n\r\n                locationTrack = new LocationTrack(MainActivity.this);\r\n\r\n\r\n                if (locationTrack.canGetLocation()) {\r\n\r\n\r\n                    double longitude = locationTrack.getLongitude();\r\n                    double latitude = locationTrack.getLatitude();\r\n\r\n                    Toast.makeText(getApplicationContext(), \"Longitude:\" + Double.toString(longitude) + \"\\nLatitude:\" + Double.toString(latitude), Toast.LENGTH_SHORT).show();\r\n                } else {\r\n\r\n                    locationTrack.showSettingsAlert();\r\n                }\r\n\r\n            }\r\n        });\r\n\r\n    }\r\n\r\n\r\n    private ArrayList findUnAskedPermissions(ArrayList wanted) {\r\n        ArrayList result = new ArrayList();\r\n\r\n        for (String perm : wanted) {\r\n            if (!hasPermission(perm)) {\r\n                result.add(perm);\r\n            }\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    private boolean hasPermission(String permission) {\r\n        if (canMakeSmores()) {\r\n            if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n                return (checkSelfPermission(permission) == PackageManager.PERMISSION_GRANTED);\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n\r\n    private boolean canMakeSmores() {\r\n        return (Build.VERSION.SDK_INT &gt; Build.VERSION_CODES.LOLLIPOP_MR1);\r\n    }\r\n\r\n\r\n    @TargetApi(Build.VERSION_CODES.M)\r\n    @Override\r\n    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\r\n\r\n        switch (requestCode) {\r\n\r\n            case ALL_PERMISSIONS_RESULT:\r\n                for (String perms : permissionsToRequest) {\r\n                    if (!hasPermission(perms)) {\r\n                        permissionsRejected.add(perms);\r\n                    } \r\n                }\r\n\r\n                if (permissionsRejected.size() &gt; 0) {\r\n\r\n\r\n                    if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n                        if (shouldShowRequestPermissionRationale(permissionsRejected.get(0))) {\r\n                            showMessageOKCancel(\"These permissions are mandatory for the application. Please allow access.\",\r\n                                    new DialogInterface.OnClickListener() {\r\n                                        @Override\r\n                                        public void onClick(DialogInterface dialog, int which) {\r\n                                            if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {\r\n                                                requestPermissions(permissionsRejected.toArray(new String[permissionsRejected.size()]), ALL_PERMISSIONS_RESULT);\r\n                                            }\r\n                                        }\r\n                                    });\r\n                            return;\r\n                        }\r\n                    }\r\n\r\n                }\r\n\r\n                break;\r\n        }\r\n\r\n    }\r\n\r\n    private void showMessageOKCancel(String message, DialogInterface.OnClickListener okListener) {\r\n        new AlertDialog.Builder(MainActivity.this)\r\n                .setMessage(message)\r\n                .setPositiveButton(\"OK\", okListener)\r\n                .setNegativeButton(\"Cancel\", null)\r\n                .create()\r\n                .show();\r\n    }\r\n\r\n    @Override\r\n    protected void onDestroy() {\r\n        super.onDestroy();\r\n        locationTrack.stopListener();\r\n    }\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001Android 6.0\u4ee5\u964d\u306e\u30c7\u30d0\u30a4\u30b9\u3067\u4f7f\u7528\u3055\u308c\u308b\u30e9\u30f3\u30bf\u30a4\u30e0\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002AndroidManifest.xml\u30d5\u30a1\u30a4\u30eb\u306bACCESS_FINE_LOCATION\u3068ACCESS_COARSE_LOCATION\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001LocationTrack.java\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002GPS\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u5834\u5408\u306b\u4f4d\u7f6e\u304cNULL\u306b\u306a\u3063\u305f\u5834\u5408\u3001LocationTrack.java\u30af\u30e9\u30b9\u304b\u3089showSettingsAlert()\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\uff08\u3059\u3050\u306b\u898b\u3066\u3044\u305f\u3060\u304f\u3067\u3057\u3087\u3046\uff09\u3002\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u7834\u68c4\u3055\u308c\u308b\u3068\u3001stopLocationTrack()\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u4f4d\u7f6e\u60c5\u5831\u306e\u66f4\u65b0\u304c\u505c\u6b62\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306bLocationTrack.java\u30af\u30e9\u30b9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>public class LocationTrack extends Service implements LocationListener {\r\n\r\n    private final Context mContext;\r\n\r\n\r\n    boolean checkGPS = false;\r\n\r\n\r\n    boolean checkNetwork = false;\r\n\r\n    boolean canGetLocation = false;\r\n\r\n    Location loc;\r\n    double latitude;\r\n    double longitude;\r\n\r\n\r\n    private static final long MIN_DISTANCE_CHANGE_FOR_UPDATES = 10;\r\n\r\n\r\n    private static final long MIN_TIME_BW_UPDATES = 1000 * 60 * 1;\r\n    protected LocationManager locationManager;\r\n\r\n    public LocationTrack(Context mContext) {\r\n        this.mContext = mContext;\r\n        getLocation();\r\n    }\r\n\r\n    private Location getLocation() {\r\n\r\n        try {\r\n            locationManager = (LocationManager) mContext\r\n                    .getSystemService(LOCATION_SERVICE);\r\n\r\n            \/\/ get GPS status\r\n            checkGPS = locationManager\r\n                    .isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\r\n            \/\/ get network provider status\r\n            checkNetwork = locationManager\r\n                    .isProviderEnabled(LocationManager.NETWORK_PROVIDER);\r\n\r\n            if (!checkGPS &amp;&amp; !checkNetwork) {\r\n                Toast.makeText(mContext, \"No Service Provider is available\", Toast.LENGTH_SHORT).show();\r\n            } else {\r\n                this.canGetLocation = true;\r\n\r\n                \/\/ if GPS Enabled get lat\/long using GPS Services\r\n                if (checkGPS) {\r\n\r\n                    if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &amp;&amp; ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n                        \/\/ TODO: Consider calling\r\n                        \/\/    ActivityCompat#requestPermissions\r\n                        \/\/ here to request the missing permissions, and then overriding\r\n                        \/\/   public void onRequestPermissionsResult(int requestCode, String[] permissions,\r\n                        \/\/                                          int[] grantResults)\r\n                        \/\/ to handle the case where the user grants the permission. See the documentation\r\n                        \/\/ for ActivityCompat#requestPermissions for more details.\r\n                    }\r\n                    locationManager.requestLocationUpdates(\r\n                            LocationManager.GPS_PROVIDER,\r\n                            MIN_TIME_BW_UPDATES,\r\n                            MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\r\n                    if (locationManager != null) {\r\n                        loc = locationManager\r\n                                .getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n                        if (loc != null) {\r\n                            latitude = loc.getLatitude();\r\n                            longitude = loc.getLongitude();\r\n                        }\r\n                    }\r\n\r\n\r\n                }\r\n\r\n\r\n                \/*if (checkNetwork) {\r\n\r\n\r\n                    if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &amp;&amp; ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n                        \/\/ TODO: Consider calling\r\n                        \/\/    ActivityCompat#requestPermissions\r\n                        \/\/ here to request the missing permissions, and then overriding\r\n                        \/\/   public void onRequestPermissionsResult(int requestCode, String[] permissions,\r\n                        \/\/                                          int[] grantResults)\r\n                        \/\/ to handle the case where the user grants the permission. See the documentation\r\n                        \/\/ for ActivityCompat#requestPermissions for more details.\r\n                    }\r\n                    locationManager.requestLocationUpdates(\r\n                            LocationManager.NETWORK_PROVIDER,\r\n                            MIN_TIME_BW_UPDATES,\r\n                            MIN_DISTANCE_CHANGE_FOR_UPDATES, this);\r\n\r\n                    if (locationManager != null) {\r\n                        loc = locationManager\r\n                                .getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n\r\n                    }\r\n\r\n                    if (loc != null) {\r\n                        latitude = loc.getLatitude();\r\n                        longitude = loc.getLongitude();\r\n                    }\r\n                }*\/\r\n\r\n            }\r\n\r\n\r\n        } catch (Exception e) {\r\n            e.printStackTrace();\r\n        }\r\n\r\n        return loc;\r\n    }\r\n\r\n    public double getLongitude() {\r\n        if (loc != null) {\r\n            longitude = loc.getLongitude();\r\n        }\r\n        return longitude;\r\n    }\r\n\r\n    public double getLatitude() {\r\n        if (loc != null) {\r\n            latitude = loc.getLatitude();\r\n        }\r\n        return latitude;\r\n    }\r\n\r\n    public boolean canGetLocation() {\r\n        return this.canGetLocation;\r\n    }\r\n\r\n    public void showSettingsAlert() {\r\n        AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\r\n\r\n\r\n        alertDialog.setTitle(\"GPS is not Enabled!\");\r\n\r\n        alertDialog.setMessage(\"Do you want to turn on GPS?\");\r\n\r\n\r\n        alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\r\n            public void onClick(DialogInterface dialog, int which) {\r\n                Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\r\n                mContext.startActivity(intent);\r\n            }\r\n        });\r\n\r\n\r\n        alertDialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\r\n            public void onClick(DialogInterface dialog, int which) {\r\n                dialog.cancel();\r\n            }\r\n        });\r\n\r\n\r\n        alertDialog.show();\r\n    }\r\n\r\n\r\n    public void stopListener() {\r\n        if (locationManager != null) {\r\n\r\n            if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &amp;&amp; ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n                \/\/ TODO: Consider calling\r\n                \/\/    ActivityCompat#requestPermissions\r\n                \/\/ here to request the missing permissions, and then overriding\r\n                \/\/   public void onRequestPermissionsResult(int requestCode, String[] permissions,\r\n                \/\/                                          int[] grantResults)\r\n                \/\/ to handle the case where the user grants the permission. See the documentation\r\n                \/\/ for ActivityCompat#requestPermissions for more details.\r\n                return;\r\n            }\r\n            locationManager.removeUpdates(LocationTrack.this);\r\n        }\r\n    }\r\n\r\n    @Override\r\n    public IBinder onBind(Intent intent) {\r\n        return null;\r\n    }\r\n\r\n    @Override\r\n    public void onLocationChanged(Location location) {\r\n\r\n    }\r\n\r\n    @Override\r\n    public void onStatusChanged(String s, int i, Bundle bundle) {\r\n\r\n    }\r\n\r\n    @Override\r\n    public void onProviderEnabled(String s) {\r\n\r\n    }\r\n\r\n    @Override\r\n    public void onProviderDisabled(String s) {\r\n\r\n    }\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u304b\u3089\u5c0e\u304b\u308c\u308b\u3044\u304f\u3064\u304b\u306e\u63a8\u8ad6\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>In the above code isProviderEnabled(String provider) is called upon the locationManager object and is used to check whether GPS\/Network Provider is enabled or not.<\/li>\n<li>If the Providers aren\u2019t enabled we\u2019re calling the method showSettingsAlert() that shows a prompt to enable GPS.<\/li>\n<li>requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener) method of the LocationManager class is used to register the current activity to be notified periodically by the named provider.<\/li>\n<li>onLocationChanged is invoked periodically based upon the minTime and minDistance, whichever comes first.<\/li>\n<li>Location class hosts the latitude and longitude. To get the current location the following code snippet is used.<br \/>\nLocation loc = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);On the above Location object, getters are called to store the double values of latitude and longitude. These double values are then disabled as a Toast message on the screen.<\/li>\n<li>To stop location updates removeUpdates method is called on the LocationManager instance.<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3067\u5b9f\u884c\u3057\u305f\u5834\u5408\u306e\u51fa\u529b\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\uff1a\u79c1\u305f\u3061\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3067\u306f\u4f4d\u7f6e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u7def\u5ea6\/\u7d4c\u5ea6\u306e\u5024\u3068\u3057\u30660.0\u3092\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3092\u63a5\u7d9a\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3067GPS\u306e\u4f4d\u7f6e\u60c5\u5831\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u3001Android Studio\u304b\u3089\u56fa\u5b9a\u306e\u7def\u5ea6\u3068\u7d4c\u5ea6\u306e\u5024\u3092\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u4ee5\u5916\u306b\u3082\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4e00\u756a\u4e0b\u306b\u3042\u308b\uff083\u3064\u306e\u30c9\u30c3\u30c8\u304c\u3042\u308b\uff09Extended Controls\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u958b\u304d\u3001\u30c0\u30df\u30fc\u306e\u5834\u6240\u60c5\u5831\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u3053\u308c\u3067\u7d42\u308f\u308a\u3067\u3059\u3002\u5f8c\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067Google Play\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3057\u3066Location API\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089Android GPSLocationTracking\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Android\u306e\u4f4d\u7f6e\u60c5\u5831API\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30e2\u30d0\u30a4\u30eb\u306e\u73fe\u5728\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3057\u3001\u30a2\u30d7\u30ea\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u73fe\u5728\u4f4d\u7f6e\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u53d6\u5f97\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u307e\u3059\u3002 \u30a2\u30f3\u30c9\u30ed\u30a4\u30c9\u306e\u4f4d\u7f6e\u60c5 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-853","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eandroid\u306e\u4f4d\u7f6e\u60c5\u5831api\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\" \/>\n<meta property=\"og:description\" content=\"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eandroid\u306e\u4f4d\u7f6e\u60c5\u5831api\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-06T18:00:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T18:02:05+00:00\" \/>\n<meta name=\"author\" content=\"\u967d, \u5411\u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u967d, \u5411\u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"32\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/\",\"name\":\"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-06-06T18:00:43+00:00\",\"dateModified\":\"2025-07-31T18:02:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\"},\"description\":\"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c\",\"name\":\"\u967d, \u5411\u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g\",\"caption\":\"\u967d, \u5411\u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API - Blog - Silicon Cloud","description":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eandroid\u306e\u4f4d\u7f6e\u60c5\u5831api\/","og_locale":"ja_JP","og_type":"article","og_title":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API","og_description":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eandroid\u306e\u4f4d\u7f6e\u60c5\u5831api\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-06T18:00:43+00:00","article_modified_time":"2025-07-31T18:02:05+00:00","author":"\u967d, \u5411\u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u967d, \u5411\u5b87","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"32\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/","name":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-06-06T18:00:43+00:00","dateModified":"2025-07-31T18:02:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c"},"description":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u73fe\u5728\u306e\u4f4d\u7f6e\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306eAndroid\u306e\u4f4d\u7f6e\u60c5\u5831API"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4aef6196128551a0f5d66db46c42866c","name":"\u967d, \u5411\u5b87","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ad96b120e219751fa368cbd7d2c48ca01b59185e6ed394449bac72614a760bf3?s=96&d=mm&r=g","caption":"\u967d, \u5411\u5b87"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hinatasora\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e7%8f%be%e5%9c%a8%e3%81%ae%e4%bd%8d%e7%bd%ae%e3%82%92%e8%bf%bd%e8%b7%a1%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aeandroid%e3%81%ae%e4%bd%8d%e7%bd%ae%e6%83%85%e5%a0%b1api\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=853"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":45841,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions\/45841"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}