Can someone help me? I tried using the Expenses Tracker app from aatiyah (github website) and the history page won’t work
can you share the link with us
Here it is^^^ hope you could help huhuhu. This will be my basis for my project
Thank you!
When I try it on my companion, it kept on showing “Error; File cannot be found”. (For the history page)
Android version of your phone?
Yeah my phone is android. The whole app works except for the history page.
I think it has something to do with the table.html
Okay, i got it
we need to know what version of your android, because I see in the history page there is a file called from android_asset
I use Samsung S9+, with latest version of android
Okay so the problem is in your Android version, your Android version is 10 so on Android 10 the way to call data from Android assets has been changed and I'll figure out how to call it.
P.S: I have tried the app on the Android version Oreo and the history page works perfectly
Ohhh okay. Will wait for your response regarding my phone’s version hehe
Okay I got the solution, so this is the way to call data from asset for devices >= Android 10
file:///storage/emulated/0/Android/data/<packageName>/files/assets/table.html
So you have to change this on screen history :
And don't forget to change <packageName>
with your project Package Name
Example Package Name:
- edu.mit.appinventor.aicompanion3
- edu.mit.appinventor.mycalculatorapp
- edu.mit.appinventor.cameraapp
Just use:
http://localhost/table.html
for development and compiled
Is package name the same as app name?
no its not same, please wait i will give you an example
Example1, my gmail : salman21@gmail.com
So MIT AI2 will generate my app package name like this:
appinventor.ai_salman21.ExpenseTracker
Example2, my gmail : zayn@gmail.com
So MIT AI2 will generate my app package name like this:
appinventor.ai_zayn.ExpenseTracker
Example3, my gmail : therock@gmail.com
So MIT AI2 will generate my app package name like this:
appinventor.ai_therock.ExpenseTracker
Ohh okay. Thank you so much! Will try it now and let you know if it works
There is no need to use this path!
As Tim has already pointed out, this is better:
http://localhost/table.html
This works with the Companion and as an APK
Okay! Will try that as well
Oh okay i got it sir