Hi Milan,
Have you experimented with this[1] SDK method? It might solve the issue you
are having. Ideally the usage of memory info retrieval would be, we can
know if the devise has enough memory to install an application, prior to
issuing an operation.
[1].
Hi Dilan/Milan,
In Android, as EXTERNAL_MEMORY implies both INTERNAL+EXTERNAL
Could you explain this statement bit more? Isn't external memory normally
the externally mounted SD card.
Regards,
Inosh
On Wed, Jun 3, 2015 at 2:50 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:
Hi All,
In
Hi All,
In Android, as EXTERNAL_MEMORY implies both INTERNAL+EXTERNAL, to
accurately obtain information
from the agent, let's do a small calculation at the agent side to retrieve
correct values as follows.
Current payload retrieved :
{
EXTERNAL_TOTAL_MEMORY: 4.92,
Hi Inosh,
The Android's API suggested way of getting external storage details as
follows.
String storagePath =
android.os.Environment.getExternalStorageDirectory().getPath(); //
This gives the '/storage/emulated/0'
StatFs directoryStatus = new StatFs(storagePath);
So this is what we have used