Jump to content

erva

Members
  • Content Count

    48
  • Joined

  • Last visited

Posts posted by erva


  1. Hi,

     

    Added these properties to TIdmessage:

     

    mailMessage.ContentType := 'text/plain';
    mailMessage.CharSet := 'UTF-8';

     

    After that mail attachments shows in receivers mail as Base64 format in mail, no attached file is in mail like this:

     

    "This is a multi-part message in MIME format

     

    --sgPuwCmxSaiDhkWsCT2JPGRD=_YJcryGeg

    Content-Type: text/plain; charset="UTF-8"

    Content-Transfer-Encoding: quoted-printable

    Content-Disposition: inline

     

    T=C3=A4ss=C3=A4 on =C3=A4=C3=A4kk=C3=B6si=C3=A4 ja liite

     

    --sgPuwCmxSaiDhkWsCT2JPGRD=_YJcryGeg

    Content-Type: application/pdf;

                                 name="1.pdf"

    Content-Transfer-Encoding: base64

    Content-Disposition: attachment;

                                 filename="1.pdf"

     

    JVBERi0xLjcNCiXi48/TDQoyIDAgb2JqDQo8PC9MZW5ndGggMjcxMi9GaWx0ZXIvRmxhdGVEZWNv

    ZGU+Pg0Kc3RyZWFtDQp4Aa2aS4/sOhWF5yXVf8gvMH7mISGke+6D8YEjMUDMLiAhQDp3wt/nWzt2

    utLd5Up3apB2ynHSy2uvvb39+H69fL1evre/OWSXyjJMi3dTHIeQJ5d9pHRhSsNvf79e/nK9/Pd6

    +fLtevndL35Y3DKW4ds/rpe//m3ww6/Xi6fww2//vF7yPLsy8q3sljx849nvvU/F+zJzRe/zl7Us

    gXvVUfpEm5HfmWee8sc/DN/+db38zD/8eoN0vU8TcIdp8m6e8xDC4nwpn0ObZjcXPlVc8A1sAGwA

    kJW6B1AAWEg9UGEpbpzTkCExljyUxZU4fw5VjMkFfSq7PG2w4Cf8CBZBowzwGPIhSDCVQ3gKpCm7

    MW6QMJ+YkfkE7TGkajo4ktDikt3s0z2SArZ1S5nvKK3abkmYvyGK2EliS4v3EZISghO6CNKE0HSp

    TfyZ51x6bm31HFvrd/yJZ/pNe72r7+lbutKEULlGvqv3kv4HV6TO/gdGUpsxvmOYvbP86Y+4jZvK........."

     

    If mail is not including attachment, it shows as it should  in receivers email app.

     

    I need to chance some other properties also from TIdSMTP and/or TIdMessage but i don't have any idea what to change.


  2. Trying to set Android app so that it doesn't go to sleep mode. Added to uses Android.JNI.PowerManager but compiler doesn't find it.

     

    Does in Tools/Options/Language/Library paths need to add path to some folder where Android.JNI.PowerManager exists or what do i need to do?

     

     

     

     


  3. Thanks for help again, they were messed. I think it has something to do with that i installed one 3rd party component demo and from demo was support for macOS eluded. I didn't now it first and tested manually add library paths to components.

     

    Now i have added all missing items but when compiling error rises without any explation:

    image.thumb.png.27cdc0ac27b7917511ef78eef8e1b5f7.png

     

    And during compilation this windows appears:

    image.thumb.png.69df239873cfd57947f42141eb333c4a.png

     


  4. Haven't used Delphi for a while, 15 years, and have managed to forget things little. But just remember based on @Attila Kovacsanwer that IndexDefFields is answer.

     

    Already managed to sort records ascending order, now have to still find out how to get them descending order. Using RemObjects Data Abstract. Adding to IndexDefField "Column1:D" didn't work.

     

    Now finally managed to get records in descending order creating index at IndexDef and setting IndexName property to created index.

     

    But how to refresh index when changing records at StringGrid. Calling table.Close and after that table.Open methods didn't change records order. Tryed table.Refresh also but with no help.

     

    I'am using RemObjects DA but i guess there's properties and methods like in other TDataSet related stuff like FireDAC. 


  5. Simple question: How to sort values in TStringGrid based on one columns values?

     

    Searched with google and find only articles that are 6-8 years old. Is TStringGrid evolved from those days or are info in these still relevant? I mean is there any easier solution for sorting than these old articles?


  6. Is it possible to delete calls with code from Android call log. In permission is option to allow writing to call log, so probably it's possible to delete calls also?

     

    I manage to read calls from log and append them to DB. But user have to manually delete calls from phone so they don't get processed second time. Noticed also that if in log is more than 30 calls, my app crashes when reading calls.


  7. Thinking if can't get number in Android 10 and beyond that, solution might be adding in DB with client record same name what's in phones address book. We need to track existing clients calls and how long they take, one person takes care about 50 clients so that might be working solution.


  8. 16 hours ago, CarioJr said:

    I tried in android studio, it works in versions below 9. But my client have a galaxy s30 with the android 10. In him The number came null

    Can you get caller name from log?

     

    I have Android 9 and some day we have to move to Android 10. If phone number is not showing anymore, must think other solutions to link call to your customers in CRM.


  9. On 5/4/2020 at 5:22 PM, CarioJr said:

    Do you set the function on a timer, where do you call her? I can read the log but, it is comming with  all call logs, Can i bring just the last ones?

    I have just a "demo" app what reads call log when started. Been thinking solutions when to transfer calls to database.

     

    Maybe this kind of solution to append to DB only new calls:

     

    1. Read call from log

    2. Search from DB if call with same unix time exists in DB.

    3. If not found, append call to db

     

    Been thinking if it's possible remove calls from log with code?


  10. I abandod catching calls immediately when phone rings. Get calls info from call log, number and seconds what call last and move them database. Reading Android call logs seems to working flawless.

×