For the application I am working on ,I want my text to be displayed as ticker text and I am using a Notification for that, the constructor is Notification(int,char array[],when).The problem is the second argument should be a char array but all I have is a string, now would the string serve the same purpose ,if I use it instead of the char array.
Share
You can convert strings into char-array by using
toCharArray()method on string.However, in Notification, its CharSequence at second place in constructor, not array of characters. And in this case,yes, you can use strings too.