What happens when you compile and execute that code?
Replace the ? with good values.
Type: Posts; User: Norm
What happens when you compile and execute that code?
Replace the ? with good values.
Try writing the code in Java SE first as it's easier to work with. When that works, copy it to the Android code.
Is this what you are trying to do:
Given a String: "11:23" you want to use today's date: (year, month and day) and that given hour and minutes with seconds = 0 to compute the milliseconds?
There are classes and methods for parsing those Strings into a Date object.
Where do the year, month and day come from?
Are the milliseconds you are asking about the count of time since the beginning of the epoch? About Jan 1, 1970
Does Android have the same classes as Java SE for parsing Strings and creating Date...