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.
複数のカーソルを開いていますが、どのカーソルを閉じるかを見つけるにはどうすればよいですか? カーソルを返す前に、databasehelper に cursor.close() を含める必要がありますか?
Cursor を返す前に閉じてはいけません。Cursor は使用できなくなります。
知る限り、カーソルを使用するネイティブ Android 関数は自動的に閉じます