Makeblock Android App. can't save codes properly


#1

Hi robot guys,

I’m really satisfied mBot and enjoying it with my son!
But I’ve faced an issue on Makeblock Android App.

Actually I created new project with custom codes, and opened the project again,
the custom codes were lost.

The following is detail description of the issue.
Please let me know how to resolve it!

  • Environment to reproduce the issue

    • Xperia Z2 tablet
    • Android 5.1.1
    • Makeblock 2.9.3
    • Japanese environment
  • How to reproduce the issue

    1. Create new project
    2. Add a custom button to the project
    3. Open the code edit screen of the button
    4. Add something action to the button’s event
    5. Save the project with default name and close it
    6. Open the created project again
    7. Open the code edit screen of the button
    8. The action added at step 4. can’t show

Best regards,
takamori


#2

Hi akschar,

Following your steps on my android phone doesn’t appear such issue.
After your step 4, you will exit from the code edit screen, then exit from the project panel screen. Normally, there is a message asking you to save the changes when you exit from the project panel screen, did you choose the “Save”?

You may try again, if still the issue,you may take a videos to show all your operations and the issue.


#3

Hi,

Thank you for quick response.

Yes. I chose the “Save” at exit from the project.

I took the video of the issue. Please find the following.

https://youtu.be/DhlLmq-dcc0

Best regards,
takamori


#4

Hi,

I checked output of “adb logcat | grep -i makeblock” for the issue, and found the following suspicious log.

W/SQLiteConnectionPool(25094): A SQLiteConnection object for database ‘/data/data/cc.makeblock.makeblock/databases/project.db’ was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.

Please find the attached zip for full log.

log.zip (2.6 KB)

Regards,
takamori


#5

Hi akschar,

Thanks for your info.
Please help check refer to following steps:

  1. On code edit screen, modify the code.
  2. Exit the code edit screen, before you exit the project panel screen, please choose run mode (not design mode) and test this button to see if the modified codes take effect.

#6

Hi,

  1. On code edit screen, modify the code.
  2. Exit the code edit screen, before you exit the project panel screen, please choose run mode (not design mode) and test this button to see if the modified codes take effect.

I checked the above steps, and I confirmed that codes attached to the button works fine.
Please find the following video.

https://youtu.be/h2HL8i1V5FA

In this video, I attached codes to light LED on mBot to the button, and test it in run mode. Although the video can’t show mBot, LED on mBot lit with red color.

Regards,
takamori


#7

Hi akschar,

Thanks for the feedback.
We have tested with severial mobile devices while the issue doesn’t appear.We will keep looking for the reason and will inform you if there is any update.


#8