Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! Im programming an Android app (java). I have estabilished a wifi connection and im reading data from humidity sensor. I got 20 measures in 10 seconds. Now i want to graph this data.
So i have a string of data (humidity measuring), like this : 50.2050.2050.2550.3050.30, and so on... For graph i need an array, so i need to split every fifth character of the string, so i would get something like this: [50.20, 50.20, 50.25, 50.30, 50.30, ...]

Thank you for your help!
Posted

1 solution

 
Share this answer
 
Comments
Manas Bhardwaj 18-Nov-14 10:28am    
Sometimes, life is simple. :)

+5!
DamithSL 18-Nov-14 10:41am    
Thank you, Manas
Member 11235835 18-Nov-14 10:47am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900