Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デスクトップまたはWebアプリを構築する場合、偽のhostsファイルエントリを簡単に追加できるため、アプリは本番サーバーではなく開発サーバーに接続できます。Androidアプリでも同様の可能性がありますか?
通常はrootアクセス権がないため、ほとんどのAndroidデバイスで/ etc/hostsファイルを編集することはできません。
より良いオプションは、アプリケーションに設定を組み込むことです。これにより、アプリケーションが接続を確立するときに使用できるサーバーを指定できます。