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.
以前は電話番号を入力として使用android:inputType = "phone"していましたが、6桁を指定すると強制的に閉じられ、エラーが発生します
android:inputType = "phone"
「NumberFormat 例外は有効な int 値ではありません」
実際、私はその値を整数に変換しようとしています:
phone = Integer.parseInt(phoneNumber.getText().toString());
Javaの整数の範囲を知っておく必要があります
ロングを使ってみてください...