D
D
DarkByte20152017-05-24 08:47:35
Java
DarkByte2015, 2017-05-24 08:47:35

What to use for date?

What is there on android in java for the date? I understand the standard Date - deprecated. I googled some JodaTime, but I don’t understand where to initialize it. There in the repository it is written that somewhere in Application.onCreate you need to call JodaTimeAndroid.init (this); but I don't seem to have a class inherited from Application...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Kovalev, 2017-05-24
@DarkByte2015

>there is no class inherited from Application
So create a class. Infa.

D
Dmitry, 2017-05-24
@TrueBers

Why is he deprecated? It has a deprecated constructor without a locale, and the class itself is alive and well.
Created via google search... ugh, via java.util.Calendar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question