memory

  1. R

    Android Question B4XTable, attach memory DB to main SQLite (file based) DB

    Trying to run a query on the B4XTable memory DB and move the resulting data directly to a table in the main SQLite (file based) table. I trying to do this by attaching the B4XTable memory DB to the main DB and then running that query from the main DB. The reason for doing it like this is that...
  2. behnam_tr

    B4J Question [Solved] How to free memory after use?

    Hi I have a class and inside it I have a TableView with about 100 textboxes and comboboxes loaded. When running the program for first time, the amount of RAM consumed is about 200 MB After opening and closing the form several times or scrolling the tableview, the amount of memory consumption...
  3. M

    Android Question Access the internal Download folder

    Hi everyone, I'm trying to download a file from a server, and I want to save it in the "Download" folder of the phone (not on an external SD or USB) what is the right way to do it? (I already know how to download... i need to specify only the path) I tried with...
  4. amorosik

    Android Question File manager - how to read / write on internal memory and other 'hidden' zones?

    I would like to make a file manager, partly on Android and partly on PC A big problem is that the Android app cannot read / write on many areas of the device Especially on internal memory, it just doesn't go there However, I see that some apps are able to do this, for example MyPhoneExplorer...
  5. A

    Android Question WebView unexpected crash

    Hello In my app, i have a simple webview. It works correctly with 99% of website. But with an online javascript reader for PDF, the webview crash abruptly, immediately or after some minutes. So abruptly there is no mention of bug, crash, failure or error in the B4A logs. I think there is an...
  6. B

    Android Question dirrootexternal access in Android 11

    As you probably know, in Android 11, memory access is not possible through RunTime. What to do to get memory access in Android 11 in b4a? I do not have Android 12 to check if there is such a limit in Android 12? In general, give me the code that allows memory access in all possible versions of...
  7. R

    Android Question Used memory

    Looking at used and available memory and using this code, copied from here: https://www.b4x.com/android/forum/threads/memory-usage.97349/ Sub LogMemory Dim r As Reflector Dim iFreeMemory As Int Dim iMaxMemory As Int Dim iTotalMemory As Int Dim iUsedMemory As Int Dim iTotalFreeMemory...
  8. Rob Bliss

    Android Question Cursor as Parameter

    When passing a cursor as a parameter, when is the correct time(s) to close the cursor? Sub main Dim v_Cursor as Cursor = SQL.ExecQuery("SELECT * FROM TABLE") func(v_Cursor) v_Cursor.Close '? End Sub Sub func(p_Cursor as Cursor) p_Cursor.getString("column") p_Cursor.Close...
  9. D

    Android Question Memory Profiling

    Is there a simple way to determine the memory usage of an Object? Something like this: PseudoCode myObject As Object objectMemoryProfile As ObjectMemoryProfileClass memoryUsage = ObjectMemoryProfile(myObject)
  10. MegatenFreak

    B4J Question Gradual increase in RAM usage (up to 1GB)??

    Hello. I have this strange issue with B4J. Early on when I'm working with it, the RAM usage is around 160MB, which is totally fine. But gradually that amount increases. After a short while to 250, then 300, etc. When I come back to continue my work after several hours, the usage goes above 500...
Top