Amazonã®AppStoreã§ä½ç½®æ å ±ã使ãã¢ããªã®å¯¾å¿ç«¯æ«ãå¢ããæ¹æ³
æè¿Amazonã®AppStoreã¯ãã¼ããã·ã§ã³ã«é¢ããå¶ç´ãå³ãããªã、ããã¾ã§ä½ãè¨ãããªãã£ãã¢ããªãè¦åæ±ãã«ãªã、ã¤ãã«é対å¿ã¨ãããã¨ã«ãªã£ã¦ãã¾ã£ã。
åé¡ã®ã¢ããªã¯ä½ç½®æ å ±ãæ±ãã¢ããªãªã®ã ã、Amazonã®ç«¯æ«ã¯GPSãæè¼ãã¦ãã端æ«ãå°ãªãã®ã§、ãã®ã¾ã¾ã§ã¯å¯¾å¿ç«¯æ«ãé常ã«éããã¦ãã¾ã。
æ¹åãã¹ãã¯AndroidManifest.xmlã«è¨å®ãã¦ãããã¼ããã·ã§ã³ã®æå®。ç¾å¨、ä½ç½®æ å ±é¢é£ã®ãã¼ããã·ã§ã³ã¯æ¬¡ã®ï¼ã¤。
ã¢ããªã®æ§è³ªä¸、GPSã»ã©ã®é«ã精度ã®ä½ç½®æ å ±ã¯å¿ è¦ç¡ãã®ã§、åãã¯ACCESS_FINE_LOCATIONãæ¶ãã¦ã¿ã。ããã§GPSã使ããªãããã«ãªãã®ã§ã¯ã¨èããããã 。
ããã§å¯¾å¿ç«¯æ«ã¯å¢ããã、ACCESS_COARSE_LOCATIONã ãã§ã¯ããåä½ã®ãºã¬ãçºçãã¦ãã¾ããã¨ãåãã£ã。ããã¯ãããã«ã¾ãã^^;
ã¨ã©ã¼ã®å 容ãããè¦ãã¨、「android.hardware.location.gps」ããã¡ã ã¨è¨ã£ã¦ãã。
ã¨ãããã¨ã¯、「GPSã¯å¿ é ã§ãªã」ã¨ããè¨å®ãããã¯ã。ããã¥ã¡ã³ããè¦ãã¨
<uses-feature> | Android Developers
「android.hardware.location.gps」ã¨ããããããã£ã¼ããã£ã。ããã§、ãã®ããã«æå®ãããã¨ã«ãã。
ããã¨、ä½ç½®æ å ±ã®ç²¾åº¦ã¯ãã®ã¾ã¾ã§、対å¿ç«¯æ«ãå¢ãã(・∀・)
åé¡ã®ã¢ããªã¯ä½ç½®æ å ±ãæ±ãã¢ããªãªã®ã ã、Amazonã®ç«¯æ«ã¯GPSãæè¼ãã¦ãã端æ«ãå°ãªãã®ã§、ãã®ã¾ã¾ã§ã¯å¯¾å¿ç«¯æ«ãé常ã«éããã¦ãã¾ã。
æ¹åãã¹ãã¯AndroidManifest.xmlã«è¨å®ãã¦ãããã¼ããã·ã§ã³ã®æå®。ç¾å¨、ä½ç½®æ å ±é¢é£ã®ãã¼ããã·ã§ã³ã¯æ¬¡ã®ï¼ã¤。
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
ã¢ããªã®æ§è³ªä¸、GPSã»ã©ã®é«ã精度ã®ä½ç½®æ å ±ã¯å¿ è¦ç¡ãã®ã§、åãã¯ACCESS_FINE_LOCATIONãæ¶ãã¦ã¿ã。ããã§GPSã使ããªãããã«ãªãã®ã§ã¯ã¨èããããã 。
ããã§å¯¾å¿ç«¯æ«ã¯å¢ããã、ACCESS_COARSE_LOCATIONã ãã§ã¯ããåä½ã®ãºã¬ãçºçãã¦ãã¾ããã¨ãåãã£ã。ããã¯ãããã«ã¾ãã^^;
ã¨ã©ã¼ã®å 容ãããè¦ãã¨、「android.hardware.location.gps」ããã¡ã ã¨è¨ã£ã¦ãã。
ã¨ãããã¨ã¯、「GPSã¯å¿ é ã§ãªã」ã¨ããè¨å®ãããã¯ã。ããã¥ã¡ã³ããè¦ãã¨
<uses-feature> | Android Developers
「android.hardware.location.gps」ã¨ããããããã£ã¼ããã£ã。ããã§、ãã®ããã«æå®ãããã¨ã«ãã。
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-feature android:name="android.hardware.location.gps" android:required="false" />
ããã¨、ä½ç½®æ å ±ã®ç²¾åº¦ã¯ãã®ã¾ã¾ã§、対å¿ç«¯æ«ãå¢ãã(・∀・)
ã³ã¡ã³ã
ã³ã¡ã³ããæ稿