Jump to content

JohnLM

Members
  • Content Count

    218
  • Joined

  • Last visited

Everything posted by JohnLM

  1. I want to delete many of my Messages on my Android phone, but I'd like to save the text someplace before I do that. Is there a way that I can save them? How would I do that? TIA
  2. Sorry, I lost this topic and just found it. I meant, for Android, when you click on the Message [...] icon at the bottom, to type a text message to someone who's phone number you have. You enter their phone number to create a new contact if not already there, and you begin texting back and forth to that person in Messages. I want to copy all the messages in each contact that I have had text conversations with, but there is no Select-All, just Copy Text, where you have to long-press on a single message and a pop-up menu shows 'copy text' or 'copy to SIM card'. but it only copies that one text message, not all the messages. If I could select-all the text and copy it to the clipboard and then send that to my laptop via app-tethering, now that I have that working.
  3. @stano - this works-thanks, if I shrink the left side pane area for the Object Inspector using the mouse, but I do have to play a bit with it every time I adjust it in order to see the - and + slider. I am still looking for a keyboard shortcut.
  4. No overlay. I have the Dell Inspiron 5520 15R laptop. It is the one with the (home/pgup/pgdn/end) keys on the right side.
  5. SPECS: Delphi 11.2, Galaxy S10+ phone (Android 12) (screen size is 6.4 inches) Issue: I want to change the view in the IDE to match my phone but the closest one is the 'Android 5" phone', and when I add componets on the form in that view, after compiling, the controls don't fit the screen and/or are sometimes off the view of the screen. In Delphi XE7, in the View's drop-down list, there is a custom setting option. I think I only used it once for a tablet years ago, but could not figure it all out and gave up. However, in 11.2, there is no listing for custom. So, I was wondering if there are downloadable views, or does the developer has to figure it out manually by eye/try. I've been searching around but cannot find any answers. TIA.
  6. update. . . regarding the pixel dimensions for the screen size. It appears that the 567x1008 pixels is correct for that Galaxy S10+ Android phone. And, it is 390x520 on the Galaxy A10 Android phone. Now I can move forward in this project. Thanks for all the help/tips/etc., thus far.
  7. Nope. Does not work on my laptop, no "Num" key here. I also tried Ctrl+ and Ctrl- and still does not work.
  8. Hi. To bad that is not available in the Professional version.
  9. Okay, I finally figured out the code and where to insert it so that it sends a screenshot of my device (my phone) to my laptop. Now to update the Photowall mobile app to include a TLayout and copy all its controls over to it and then do a screenshot and see how that looks through the PhotoWallVLC app on my laptop.
  10. I think its because I believe the the 412x869 dimensions are not true. When I send a photo to my windows machine, the dimensions are very large. I am trying to determine the exact x,y pixels of my device, and its been truely deceptive and annoying. At this moment: * I am trying to figure out how to take a screenshot of my current display--I figure out that part: put a tlayout componet on the form and use layout1.MakeScreenshot;** * I am also trying to re-work the Photowall mobile app to send the bitmap from .MakeScreenshot via stream. But the snippet I updated/edited is not working. The image is not showing in the PhotoWallVCL app on my laptop computer (with the uppdated/edited code in the mobile app). If I REM out the code, it works. So I am in the middle of debugging that portion of code now. ** but I'm not sure how to use tlayout. I've never used it. I assume that whatever components (buttons/edits/etc) I add to it, that when I call .MakeScreenshot it will capture the whole current viewport of the device, whatever is displaying on it. But the problem is, none of the controls are sticking to the tlayout control. That is, none of the controls are bound to it, that if I click and drag the layout1 control, all the controls (buttons/edits/etc) should move with it--but they don't.
  11. The above idea did not work out as planned. I did not take into account the camera's photo dimensions. The capture-to-clipboard image was 567x1008 pixels. I believe that I have to capture the form's image instead. That may work. I will try that next, as soon as I return.
  12. Okay, I think I know what I can do. 1. I can use the 'Photowall' app, take a picture of a black background (lay the phone face-down) take a photo, and send that to the Photowall app in Windows via app-tethering. 2. update the windows photowall app to capture the bitmap to the clipboard 3. paste that into windows paint 4. edit the image somehow to remove most of the black area (or make it white) and leave a 2 to 4 pixel black edge around the whole dimension. 5. save that to png 6. open in delphi ide, device manager and update the custom view with this new image. I'll call it Galaxy S10+ 7. finish
  13. In Delphi 11.2, I found it under Tools\Options\Form Designer\Device manager and I played around in it, but under the field, [Device Background] I could not find an image to use, so it failed to complete without that field being filled in. I believe my Galaxy S10+ pixel display view is 412x869 - per this link https://yesviz.com/devices/s10+/
  14. specs: window 7 64bit, delphi 11.2, phone s10+ with android 12 I've been wanting to ask this question for some time and an opportunity came to me and I'm now asking... I would like to send text from my galaxy s10+ phone to my laptop over wifi, and back, from my laptop to Android over wifi. I want to type some text, a word, or a whole paragraph, and send it. Are there any demos or how-tos for this? I searched my sample folders but did not find anything. Also, I do not want to use a USB cable, nor do I want to join/use any outside services from other sources. I don't want to download any apps, register, and all that. I want this to be strictly private and only from my two devices. TIA
  15. update #2 on App Tethering process. . . I have not found a good resource that goes through all the steps to build an app tethering project from a beginner's point of view. All the ones I did find and tried to follow were too advanced for me. I could not follow. Instead, I had to read many different resources found through Google searches and those on Embarcadero's websites and try different things. The notes below are what I have accomplished so far. Later, I will follow up with the steps and code of how to build a working app tethering project for sending: TEXT, PARAGRAPH, and a PHOTO between devices. History so far. . . I ended up rebuilding as a new project from scratch, piece by piece, compiling in Windows, then compiling as Android, multiple times while observing that the Android version continued to work. And once I reached the point where the Android was able to receive TEXT from my laptop, I knew I had it working. By then, I was getting confused about what does what and so on, and so the project became a mess, all-be-it a working mess. Then, I wanted to be able to send TEXT back and forth between the two devices, the laptop, and the Android phone. Another day's coding mess now turned into a shameful mess of spaghetti and still trying to remember what each part of the code does. And now I need to add and update the spaghetti code to be able to send a paragraph (or memo) of TEXT between devices. But at this time, I do not know how to, but I will figure it out soon. Then, I want to figure out how to send an image photo between each device. To be able to do all three will be great.
  16. update on App Tethering process. . . After a week or so of more searching and trial/error attempts, I managed to finally get one project to work, found via google search. I can send a text to another vcl app in windows. However, when I compile the Client side project for mobile instead, I get the following error: [PAClient Error] Error: E7688 Unable to execute ..and at the bottom of the list of error messages, I see that it also says "Circular Reference..." on the last line. I am not sure what that means let alone, how to resolve it.
  17. Update on compiling the PhotoWall app under Delphi 11.2 Alexandria for mobile. . . Success!! (The reason I could not compile the mobile portion was because my phone still had the compiled version (from XE7) and I did not uninstall it) I was able to finally compile the mobile portion to my phone and app-tether a live photo from it and sent it to my computer laptop. * folder -> C:\Users\Public\Documents\Embarcadero\Studio\22.0\Samples\Object Pascal\RTL\Tethering\PhotoWall * Must remember to turn on wifi on the phone and the computer/laptop in order for app-tethering to work. 2nd edit: I forgot to mention that I renamed the "MobilePhotoApp" to "MobilePhotoApp_D11_FMX_w7" and that was how I had success and no error message like the above-posted image shows.
  18. Delphi XE7 / 11.2, Windows 7, tablets(Android 4.4.) and phones (Android 11 and 12) I am searching around but have not found the answer. I am looking for obtaining the IP address of all my devices, but I want to do it through code. I would like to test different ideas around with sending plain Text and Stream data to all my devices. I have a several laptops, tablets and mobile phones (android). Is this possible? TIA.
  19. Update. . . Remy, I am getting 127.0.0.1 on Android with your code, compiled in Delphi 11.2 Alexandria. Note, I compiled for both my Galaxy phones, the A01 (32bit) and S10+ (64bit), and both report 127.0.0.01 on them. { creation 8-8-2023 tue purpose - to obtain the IP addresses of all devices } unit Unit1; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Memo.Types, FMX.StdCtrls, FMX.ScrollBox, FMX.Memo, FMX.Controls.Presentation, FMX.Edit, IdGlobal, IdStack; type TForm1 = class(TForm) eb1: TEdit; m1: TMemo; btnGet: TButton; btnGetRemy: TButton; ToolBar1: TToolBar; Label1: TLabel; Memo1: TMemo; procedure btnGetRemyClick(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.fmx} {$R *.LgXhdpiPh.fmx ANDROID} // remy's code function GetLocalIpList2(Name: string): TStringList; var Lista: TIdStackLocalAddressList; temp: TIdStackLocalAddress; I: Integer; begin Result := TStringList.Create; try TIdStack.IncUsage; // instantiates GStack if needed... try Lista := TIdStackLocalAddressList.Create; try GStack.GetLocalAddressList(Lista); for I := 0 to Lista.Count-1 do begin temp := Lista[I]; if temp.IPVersion = Id_IPv4 then Result.add(temp.IPAddress); end; finally Lista.Free; end; finally TIdStack.DecUsage; // frees GStack if needed... end; except Result.Free; raise; end; end; procedure TForm1.btnGetRemyClick(Sender: TObject); begin m1.Lines := GetLocalIpList2(''); end; end.
  20. @ Remy - for the one that reports 127.0.0.1, that was from the XE7 Pro compile. I've also ported that to D11.2 Pro, so I will report back what it produces. Note, the only code that works for Android is yours, and that is the one that I am using for mobile.
  21. I started a new mobile app, threw a button and edit box, and compiled it to Android successfully and it ran. So it appears to be an issue with the XE7 vs D11.2 when compiling the D11.2 version of the Photowall sample app in D11.2 If anyone know's have to resolve the issue mentioned in my previous post above with the photo showing the error, please advise how I can fix and compile it in D11.2, TIA
  22. The USB cable part is a new situation. I never use to get a pop-up for it to configure it for the network. I used to plug it the cable in the laptop and phone and that was it. Due to the nature of unexplained issues way back in the XE7 days of mobile development, I decided not to allow the pop-up to auto-accept and never pop up. I wanted to make sure that I had a true connection to each device, each time I connected the cable. But, until recently, and I don't remember exactly when or why, on one day this past July/2023, when I plugged in the USB cable that it started to pop-up a network dialog box with three options to choose to setup with, (home, work, or public) and ask me which one I wanted for that session at the time of plug-in, as seen below. This started when I was debugging and reinstalling Bluetooth support on this laptop this past July.
  23. Patrick, when I attempt to compile (under Delphi 11.2) the Photowall app for mobile, it fails to complete -- see below. Do you know how I can resolve this new conflict? I think it has to do with XE7 and D11.2 is not compatible or something all the sudden. I've never had this issue before when writing mobile apps in both XE7 and D11.2 on the same day.
  24. Patrick, I was busy trying another idea using one of the Embarcadero samples (the Photowall) from the Rad Studio Delphi XE7 Pro IDE and samples folder, and it worked. I was able to take a photo from my phone and send it over to a VCL app in Windows on my laptop. Only this time, I had the wifi turned on in my phone. When I turned it off, the app did not work. Now, I want to try the same app but from the Delphi 11.2 IDE and its sample folder version (not the XE7's one).
×