I have an application which gathers wifi and cellular data usage and sends it as a string of data via SMS - however I need a bit of help modifying the string it sends into the correct format
The way it appears now:
USI;1;3056090866;06/16/58/06/24/13;CN25.48,WN86.957USI;CN34.931,WN16.656
The way I would like it to send in the following manner: (without the second USI in it)
USI;1;3056090866;06/16/58/06/24/13;CN25.48,WN86.957;CN34.931,WN16.656
How can this be accomplished? (I simply want to remove the 2nd occurance of the word USI but I'm not sure how you can programatically remove data using String.format)
CODE SNIPPET:
String info = String.format("USI%sCN%s,WN%s", tag + status + tag + mdn +tag + DToDevice + tag, mobileStr, totalStr + settings.getString("last_month", "0"));
String.format. You can, however, do areplaceafterwards or change the applicable parameter appropriately.