Tested on Delphi 10 Seattle. by importing “ActivityManager” you can check the status of memory from you Android Applications, and check a lot of other things like if a process is running. here is the demo apk memtestandroid.apk and the source code : android_memorymanager_source unit Androidapi.JNI.ActivityManager; interface uses System.SysUtils, FMX.Helpers.Android, Androidapi.JNI.JavaTypes, Androidapi.JNIBridge, Androidapi.Helpers, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Os,…
Read more
unit PasFrmMain; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.StdCtrls, Androidapi.JNI.App ,Androidapi.JNIBridge ,Androidapi.JNI.GraphicsContentViewText ,Androidapi.JNI.JavaTypes ,Androidapi.JNI.Os ,FMX.Helpers.Android ,Androidapi.Helpers ,Androidapi.JNI.ActivityManager; type TForm8 = class(TForm) Button2: TButton; lFreeMem: TLabel; LAllMem: TLabel; Button3: TButton; Label1: TLabel; Timer1: TTimer; procedure Button2Click(Sender: TObject); procedure FormCreate(Sender: TObject); procedure Button3Click(Sender: TObject); procedure Timer1Timer(Sender: TObject); private { Private…
Read more
A new realese of RemodeManager was released. But the real difference is that now the internet sharing is based on https. The whole gestisto by a much more powerful server.
function prova(){ var myMessage = ‘{“success”: true,”counters”: [{“counter_name”: “dsd”, “counter_type”: “sds”, “counter_unit”: “sds” }, { “counter_name”: “gdg”, “counter_type”: “dfd”, “counter_unit”: “ds” }, { “counter_name”: “sdsData”, “counter_type”: “sds”, “counter_unit”: ” dd ” }, { “counter_name”: “Stoc final”, “counter_type”: “number “, “counter_unit”: “litri ” }, { “counter_name”: “Consum GPL”, “counter_type”: “number “, “counter_unit”: “litri ” }, {…
Read more
using this simple code you can have the size of your client area in pix function getScreenSize() { var w = window, d = document, e = d.documentElement, g = d.getElementsByTagName(‘body’)[0], x = w.innerWidth || e.clientWidth || g.clientWidth, y = w.innerHeight|| e.clientHeight|| g.clientHeight; return x + ‘px ‘ + y + ‘px’; } window.addEventListener(‘resize’,);