Hi i’m trying to read xml duration to a new duration but i’t says
“Cannot instantiate the type Duration”
I’m quite new to java and android dev. so please keep any nonconstructive comments to yourself..
the code
import javax.xml.datatype.Duration;
Duration duration = new Duration();
Found it myself.
Edit..
The above is not possible due to a DatatypeFactory bug sooo i built this class to fix it myself..