This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

extract missed call numbers and time

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to get details from SMS.When we received missed call alert,i need to get callers phone numbers and time for each.Below is the example SMS Alert for missed call.



I am able to get whole SMS..but i need to show "772070614 called you 11/07 20:14".
how to extract them from SMS?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A combination of String.indexOf(...) and String.substring(...) ?
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or with capture groups in a regular expression.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic