To convert String->long

Asked 2 years ago, Updated 2 years ago, 28 views

long lroomtime = Long.parseLong(roomtime); Because of this code, when you run the app, roomtime gets a number like "321351531232" from the Firebase I want to change "321351531232" to long format 321351531232 what should I do!?

android

2022-09-21 18:12

1 Answers

Processed values in the Firebase as "", not null Thank you for your interest or I think you can solve it with try catch!


2022-09-21 18:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.