Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputStream in = srcActivity.getResources().openRawResource(R.raw.food); #46

Closed
Muhasheikh opened this issue Oct 9, 2022 · 14 comments
Closed

Comments

@Muhasheikh
Copy link

get error as to to create raw to fix in food.xml
Screenshot 2022-10-09 121521

@beekama
Copy link
Owner

beekama commented Oct 9, 2022

Hey @Muhasheikh,
It looks like the raw folder has not been created yet.
As described here, you must first create the database or download the last version already created and place it in the main/res/raw folder so that the app can access this data.

@Muhasheikh
Copy link
Author

thanks a lot i was able to fix. and i again came overcame an error which happens when i click on the configuration button. image attached.
Screenshot (39)

@FAUSheppy
Copy link
Collaborator

I updated the file at https://media.atlantishq.de/food.db, it should work now (with the new file).

Sorry for that, we were the only two working on this so far.

@Muhasheikh
Copy link
Author

ah thats aight. i mailed you regarding an issue. please check that too. and its repeating again
error

@FAUSheppy
Copy link
Collaborator

ah thats aight. i mailed you regarding an issue. please check that too. and its repeating again error

I suspect that might be because the DB was not overwritten properly. Try manually uninstall the app on the phone (via settings->apps->uninstall) or use a clean Emulator. Also check you really placed the new db in the raw directory.

@Muhasheikh
Copy link
Author

Muhasheikh commented Oct 9, 2022 via email

@FAUSheppy
Copy link
Collaborator

You can download sqlite yourself and check the db:

sqlite food.db
.schema
CREATE TABLE calorieTargetByDate(
    "date" TEXT NOT NULL PRIMARY KEY,
    "target" INTEGER
);

.schema shows the existing tables.

@Muhasheikh
Copy link
Author

Muhasheikh commented Oct 9, 2022 via email

@Muhasheikh
Copy link
Author

Hi there. i was wondering how does the recommendation nutrition pop up works. thanks

@FAUSheppy
Copy link
Collaborator

FAUSheppy commented Oct 11, 2022

Hi there. i was wondering how does the recommendation nutrition pop up works. thanks

What do you mean?

@Muhasheikh
Copy link
Author

am talking about this. what makes its to pop up
popup

@FAUSheppy
Copy link
Collaborator

That's just a popup:

@Muhasheikh
Copy link
Author

what does toggling on curated food does actually? i checked the source code not able to get an idea
curated

@FAUSheppy
Copy link
Collaborator

FAUSheppy commented Oct 11, 2022

It's not implemented yet: #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants