Long.getLong() failing, returning null to valid string

前端 未结 5 1261
遥遥无期
遥遥无期 2020-12-16 09:44

I\'ve spent the past two hours debugging what seems extremely unlikely. I\'ve stripped the method of a secondary Android Activity to exactly this:

public voi         


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-16 10:09

    You can use Long.parseLong(String), instead of getLong(String): it will solve the problem.

提交回复
热议问题