Category: StackOverflow

Debugger seems to be unable to connect to Android FM Application

Yesterday I installed Delphi XE7 with Mobile Add On Pack. Unformtunately I'm unable to debug an application running on the attached android device (Galaxy S5 / Asus Tablet). After experimenting for several hours I can report the following (based on a newly created app): The source code gets compiled, the application starts up (showing the splash screen) and then Shows the MainForm (The app seems to run properly). The Delphi compile Window stays open (forever, I suppose). Cancelling the compile window shows the "gdbserver" start error. Using another debugport results in following: The source code gets compiled, the app starts an then shows a black screen. The Delphi compile window closes and Delphi stays in dev mode (means the START/DEBUG button stays enabled the STOP is disabled). I've worked since severall weeks with XE6. At the beginning I faced similar Problems, I solved by using another debugport or using "adb kill-server" followed by "abd usb". An application created with XE6 ran properly until Installation of XE7 and shows now similar Problems (using XE6). The device is properly connected. "adb reboot" restarts the device. SDK Manager Settings seem to be correct. Using Windows 7 64 bit (Ultimate). Since several months I have Problems with the length of my PATH Variable, so I stripped it down by deleting unused entries. Maybe the problem is there. Has anyone experienced similar behavior? Any Help is apreciated.
Read More

Centering checkmark in FMX Grid

I want to center the checkmark control in an FMX TGrid. I have tried this on the OnGetValue (for a text cell): TColumn* column = Grid1->ColumnByIndex( Col ); TTextCell* cell = ( TTextCell * )column->Children->Items[Row]; cell->TextAlign = TTextAlign::Center; This crashes on the second row with an argument out of range exception on the second row and if I test by only working with the first row the text is not centered anyway. I also tried adding padding and margins to no effect. Trying a custom style does not bring up a checkboxcell style. Is there anyway to do this?
Read More

TListView record loading on demand

I have made my application using TListView to show the main dataset as a listing as way to navigate the records. I have used LiveBindings with the Sync <-> * connection. The major problem is that it loads the entire table into memory. That is slow most of the time, and now taking it to android even worst. I have not found any example on how to page it. I am not using sql, I am using a custom DataSet (Aurelius) that retrieve the records on demand. Since I have not found any documentation I have no starting point or code to share. How to make TListView load records on demand? PS. there is a similar SO question, but that could be solved by SQL statement. I don´t have SQL available and I wonder if with the actual version of FMX that could be a better approach.
Read More

Creating Custom Mobile Styles in Delphi Xe7 Firemonkey

I was wondering if anyone knew how it would be possible to create custom styles/designs from the ground up in Delphi xe7. What I have been able to achieve is editing a former style by replacing the bitmap file containing the style and just recolouring it and saving it as a new style. That was good for the short run. That method only allows slight changes on creating new styles, I was wondering if there is a way to create something like this as a style - http://www.pixeden.com/mobile-apps/ligavit-iphone-app-ui-kit-psd. What i'm really aiming to achieve is a very appealing look. I have a designer that has strong experience in photoshop and i'm just looking for a way to adapt complex styles into Delphi xe7. If anyone can help it would be much appreciated !
Read More

Delphi Video freezes

In firemonkey writes apps for android. I have a problem with displaying the image. Terribly stutters image procedure TForm1.CameraComponent1SampleBufferReady(Sender: TObject; const ATime: Int64); var bmp: TBitmap; begin bmp := TBitmap.Create(0, 0); CameraComponent1.SampleBufferToBitmap(bmp, True); TThread.Synchronize(nil, procedure begin Image1.Bitmap.Assign(bmp); end ); bmp.Free; end; Why are you painting hangs? Tests on the device Xperia m2 When compiling the wine works well
Read More

Cannot show a message during program load on iOS

During load of my application I am loading settings and other things, and want to be able to show a message to the user. However this does not work on my Delphi XE6 FireMonkey application targeting iOS (iOSSimulator). When I call ShowMessage or MessageDlg during program load, it locks, and nothing is shown. It is probably entering the modal state, but since the message is not shown, it is not possible to continue. Even in the main forms FormActivate, calling ShowMessage does not show anything. How can I show a message while loading the application?
Read More

Bidi Right to Left Language in Firemonkey Mobile

How can show any string in right to left languages such as Persian or Arabic in Android or iOS with FireMonkey, I Use Embarcadero Rad Studio XE6 (Delphi) and when I put a TLabel or TEdit and set it's text to "سلام" (Hello in Persian) everything is ok in Windows and Mac but in Mobile platform that is wrong display, in android shows "م ا ل س" and in iOS does not show any thing but space. The problem still exists in Delphi XE7.
Read More

Node.js Server (Mobile Client)

I am trying to make a Data Monitoring with Mobile App. I have a mysql database and i am planning use Node.js server. My project: Node.js server connect to mysql db. Mobile apps connect to node.js server and when the new data add to mysql, node.js server send to data mobile apps using restful service. Is it possible to communicate between node.js server and firemonkey mobile client apps? (I' ll build mobile apps via firemonkey - Delphi)
Read More