tag:blogger.com,1999:blog-7079428611757265020.post313139766497488367..comments2022-04-11T05:37:28.064-07:00Comments on Delphi Android programming: How to fetch SMS messages from the Android inbox using DelphiUnknownnoreply@blogger.comBlogger13125tag:blogger.com,1999:blog-7079428611757265020.post-53296565424289285562019-09-07T02:20:27.657-07:002019-09-07T02:20:27.657-07:00Thanks nice post !!SMS plugins are one of the best...Thanks nice post !!SMS plugins are one of the best ways to send SMS directly from the browser. SMS plugins help you to create a buzz in the market and making your marketing much easier than other traditional means of communication.Shivangi Rathorehttps://www.blogger.com/profile/01300065637327728048noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-72939740732110692322017-01-31T08:25:42.560-08:002017-01-31T08:25:42.560-08:00 want to fetch a specific number messages ?? want to fetch a specific number messages ?? DAHMANIhttps://www.blogger.com/profile/16051543499802172802noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-83889464120809253692016-09-24T07:12:59.219-07:002016-09-24T07:12:59.219-07:00please exam following link
http://stackoverflow.co...please exam following link<br />http://stackoverflow.com/questions/14097500/get-inbox-messages-from-android-device-to-show-in-custom-listview<br /><br /><br /><br />I defined a StringList as "s"<br />then move cursor to the first position then add it to s stringlist. Finally I moved to Memo contents of s<br /><br />cursor.moveToFirst; //<br /> while (cursor.moveToNext) do begin<br /> ..<br /> ..<br /> s.Add(Result); //<br /> end;<br /> Form3.Memo1.Text := s.Text;//<br /> s.Free;//<br /> end;<br />Anonymoushttps://www.blogger.com/profile/02164003123130639764noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-13016673437716588982016-07-22T05:13:52.672-07:002016-07-22T05:13:52.672-07:00Thanks, this code was really helpful for me.Thanks, this code was really helpful for me.DAHMANIhttps://www.blogger.com/profile/16051543499802172802noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-5815751037325484912014-06-05T07:51:17.847-07:002014-06-05T07:51:17.847-07:00How do I delete a sms after I read itHow do I delete a sms after I read itAnonymoushttps://www.blogger.com/profile/02480715678885806988noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-25958711763871312372014-05-06T03:31:24.191-07:002014-05-06T03:31:24.191-07:00Hi, Lars,
and thanks for this very useful code !!
...Hi, Lars,<br />and thanks for this very useful code !!<br />However when i call this function with this little bit of code, i get only the very first sms on the android device.<br /><br />procedure TForm1.Button2Click(Sender: TObject);<br />begin<br /> Memo1.Text := FetchSms;<br />end;<br />Can you tell me how to get to the other end of the table containing the sms's and maybe how to select a sender phone number.<br />I suspect that this latter one is done with the line<br />getContentResolver.query(uri, nil, nil,nil,nil); , but i dont quite get it.<br />If you could help me with theese 2 problems i would be grateful.<br />Thanks in advance,<br />ChristianAnonymoushttps://www.blogger.com/profile/13686552296335649599noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-1680687815268699202014-01-27T11:57:31.584-08:002014-01-27T11:57:31.584-08:00How can I use the result of this function? Can I p...How can I use the result of this function? Can I put the 'fetchsms' in one timer?<br />Like this:<br />begin<br />memo1.lines.add(fetchsms);<br />end;<br /><br />If not, show me the way please.Anonymoushttps://www.blogger.com/profile/14962427716043442344noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-8808084360017964762014-01-17T21:11:32.261-08:002014-01-17T21:11:32.261-08:00If you want to get the correct delivery and sent d...If you want to get the correct delivery and sent dates in your query, you need to use "date2" instead of sent_date -> for inbox!<br /><br />However, for outbox, for which you keep the exact same code as above, only change the path from /sms/inbox to /sms/sent you must use "report_date" instead of "sent_date".<br />So, this little modification, and you'll have all the data you need :)<br /><br />There's also SO topic on this one:<br />http://stackoverflow.com/questions/21104999/sms-messages-date-sent-on-android-with-delphi-xe5-always-returns-0MarcShttps://www.blogger.com/profile/03040380252164269548noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-65383322247887392232014-01-13T17:24:47.944-08:002014-01-13T17:24:47.944-08:00+, why cursor.getString(msgdatesentidx)); always r...+, why cursor.getString(msgdatesentidx)); always returns 0, either for sent or received messages?<br />MarcShttps://www.blogger.com/profile/03040380252164269548noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-74056676686618394722014-01-11T21:26:50.316-08:002014-01-11T21:26:50.316-08:00I'd also like to know if there's any way t...I'd also like to know if there's any way to get the contacts from XE5 android app?<br />I'm trying to make a sms/mms backup app, along with contact names.<br /><br />So, to add one more questions: this code reads smses. Can you please provide sample for reading mms-es as well? (with attachments or without them, text-only would also be a way...)<br /><br />THANKS! :)MarcShttps://www.blogger.com/profile/03040380252164269548noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-56491829126947419112014-01-07T18:03:08.695-08:002014-01-07T18:03:08.695-08:00Lard, is it possible to access the contact directo...Lard, is it possible to access the contact directory of android phone with XE5 ?Anonymoushttps://www.blogger.com/profile/16399518466968450167noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-5942571975791490102013-11-07T01:33:42.777-08:002013-11-07T01:33:42.777-08:00In the Android SDK, that is supported using servic...In the Android SDK, that is supported using services. I have not heard, that it is possible to implement that with Delphi XE5, we will probably have to wait for Delphi XE6 to do that. XE5 is Embarcadero's first venture into Android land, and while it makes GUI app development significantly easier, it does not support everything.Lars Dhttps://www.blogger.com/profile/06217303713945608384noreply@blogger.comtag:blogger.com,1999:blog-7079428611757265020.post-23404409689358275772013-11-05T08:14:46.429-08:002013-11-05T08:14:46.429-08:00Thanks, this code was really helpful for me.
Now I...Thanks, this code was really helpful for me.<br />Now I'm trying to understand how to get an event triggered<br />when a sms arrives so that I don't have to check the sms<br />inbox continously by means of a timer.<br />Any ideas about that?<br />/OleOlehttps://www.blogger.com/profile/08296399767856336564noreply@blogger.com