Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

extract missed call numbers and time

 
sam liya
Ranch Hand
Posts: 1240
  • 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: 42968
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