In my application I am passing a string value from the edittext to the service where I have defined this
( t.scheduleAtFixedRate(new Task(), 0, long); )
How to convert from string to long in a service...? or is there any other method to pass a long value to the service...?
this method use to convert string to Long.
long l = Long.parseLong(string);
You can use this method for convert your string to long and after that you have passed that long variable to your service
long l = Long.parseLong(yourstring);