public void writeToParcel(Parcel parcel, int flags) throws IOException {
doSomethingThatThrowsIOException();
}
:私のParcelable.writeToParcel(Parcel、int)からIOExceptionをスローできないのはなぜですか?コンパイラquothが
例外にIOExceptionがと互換性がありませんが、 Parcelable.writeToParcel(小包、int型)にthrows節
私は、内の任意の場所にthrows節が表示されませんdocsまたは実際のParcelable
コードです。これは厄介なスレッドの問題ですか?
私は皆の答えを受け入れることができない、私はnoobのに信用を与えるでしょう... catchブロック。入力いただきありがとうございます! – QED
ありがとうpsoft! :-) –