Jump to content

saeedbay

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. saeedbay

    ProgressBar not update in android

    thanx but I don't know much about it can u write simple sample for my code so I know how to do this
  2. saeedbay

    ProgressBar not update in android

    i have used threads before but it didnt work and i had to delete it my current code is : procedure TSettingF.UpdateStoreFromServer; var count,i,StoresCount,BPrice:integer; step:Real; BoughtPrice:Double; fieldNames1,fieldNames2,UpdFieldNames:String; begin ProgressBar1.Visible:=True; ProgressBar1.Max:=100; ProgressBar1.Value:=0; Progress:=0; lblLastUpdate.Text:='please wait...'; lblLastUpdate.Repaint; RunMSQuery('Select ID,TITLE,BOUTH_PRICE,SELL_PRICE,UNIT'+fieldNames1+' from Stor WITH(NOLOCK) ',DataM.MSStorQry); count:=DataM.MSStorQry.RecordCount; if count>0 then step:=100/count; i:=0; ExecFDQuery('DELETE FROM STOR WHERE (1=1) ',DataM.FDStorQry); while not DataM.MSStorQry.Eof do begin try DataM.FDStorQry.Close; DataM.FDStorQry.SQL.Clear; DataM.FDStorQry.SQL.Add('INSERT INTO Stor (ID, TITLE, BOUTH_PRICE, SELL_PRICE, UNIT'+fieldNames1+')VALUES ' +'('+DataM.MSStorQry.FieldByName('ID').AsString+','+QuotedStr(DataM.MSStorQry.FieldByName('TITLE').AsString)+','+FloatToStr(BoughtPrice)+','+FloatToStr(DataM.MSStorQry.FieldByName('SELL_PRICE').AsFloat)+','+QuotedStr(DataM.MSStorQry.FieldByName('UNIT').AsString)+','+FloatToStr(DataM.MSStorQry.FieldByName('STOCK00').AsFloat)+UpdFieldNames+')'); DataM.FDStorQry.ExecSQL; except on e: Exception do begin ShowMessage(e.Message); end; end; DataM.MSStorQry.Next; inc(i,1); Progress:=Round(i*step); if ProgressBar1.Value<>Progress then begin // Sleep(10); ProgressBar1.Value:=Progress; // Application.ProcessMessages; end; end; end;
  3. i'm using a while loop for transfer sql server records on server to sqlite db on android device i'm using progress bar to showing progress of doing work but progress bar not update in while loop
  4. i dolved problem with intent URI := TJnet_Uri.JavaClass.parse(StringToJString('content:///' + TPath.GetDocumentsPath + PathDelim + AFileName)); intent := TJIntent.Create; intent.setAction(TJIntent.JavaClass.ACTION_VIEW); intent.setDataAndType(URI,StringToJString('application/pdf')); SharedActivity.startActivity(intent);
  5. this command works only on windows but in android not work
  6. i used tms for creating pdf in document folder of device but how can i open and show that pdf file in pdf reader applications?
  7. how can i create pdf report or picture report for android device
  8. saeedbay

    problem on update sdk ndk in delphi 11

    thank u very much for your time
  9. saeedbay

    problem on update sdk ndk in delphi 11

    My problem is solved I ran the program on Android 32 and it ran without errors It was interesting to me that I tested the app on a Redmi a1+ with android 12 that has a 64-bit processor, but the Android 64 compilation didn't run on it, but 32-bit ran fine.
  10. saeedbay

    problem on update sdk ndk in delphi 11

    With this situation, there is no guarantee that the program will work on the customer's phone, and no solution has been provided by Embarcadero, and this is unfortunately a big weakness. I wonder if the rest of the developers don't have the same problem that their apps should work on new platforms
  11. saeedbay

    problem on update sdk ndk in delphi 11

    hello again According to your instructions, I set the android:targetSdkVersion to the number 33 and added android:exported="true" to the Androidmanifest file. The build program builds successfully, but when deployed and installed on a phone with Android 12, which I tested, Delphi issues an error message as follows. :
  12. saeedbay

    Android API31 Rad 11.1

    how i can have an acount of https://quality.embarcadero.com written there please contact your JIRA administrators.
  13. saeedbay

    problem on update sdk ndk in delphi 11

    thank you but i dont have embarcadero login account
  14. saeedbay

    problem on update sdk ndk in delphi 11

    Thank you for your time I updated the SDK from the command line and defined the path of platform 33 in the sdkmanager of Delphi editor, but in the Androidmanifest.xml file, the "targetSdkVersion" is still on the number 30, which means the previous platform.
  15. saeedbay

    problem on update sdk ndk in delphi 11

    In fact, I have already installed Android Studio and updated platform 33 through its SDK Manager, and then the same SDK path defined for Android Studio, which now contained new platforms, on IDE Delphi (SD window Delphi Manager) I set Delphi to call the SDK from that path Actually, I did the update through Android Studio's SDK Manager and set the SDK path for Delphi and Android Studio to be the same. Previously, I tried to introduce the new platform and the SDK path to Delphi from the Delphi SDK Manager window by pressing ADD button , but Delphi was not able to recognize the API level.
×