This tutorial is about creating the Book App using SQLite. I’ll use Tabbed Activity, swipe to change the page. Each record in SQLite file contains Id(as page no), …
Nguồn:https://u-os.org/
Xem thêm Bài Viết:
- Hướng dẫn cách lắp anten ngoài trời đúng kỹ thuật, thu sóng khỏe nhất
- Giải đáp bí ẩn Xamarin là gì? Ưu và nhược điểm khi sử dụng Xamarin
- Tuyệt chiêu sửa lỗi window photo viewer can’t open this picture because
- Bộ nhớ đệm là gì? Có nên xóa bộ nhớ đệm trên thiết bị không?
- Bật mí 3 cách chụp ảnh bằng máy tính win 7 dễ như ăn kẹo
I f someone have a lot of pages use for to set the content to the tabs.
int compareNumber;
for(int counter = 0; counter < 500; counter++) {
compareNumber = counter+1;
if(getArguments().getInt(ARG_SECTION_NUMBER) == compareNumber) {
// getting the first record
Model count = modelList.get(counter);
// saving the record in a string
page = page + count.getIds();
chap = chap + count.getChapters();
title = title + count.getTitles();
detail = detail + count.getDetails().replace(",,,,", "n");
// set int Textview
mPageTv.setText(page+"");
mChaptTv.setText(chap);
mTitleTv.setText(title);
mDetailTv.setText(detail);
counter++;
return v;
}
}
that solves the problem. you don't need to repeat the if 1000 times.
Do you have the mainActivity.java complete? Nice video.
how can we actually add the book content in our app in flutter
I cant creat the assets folder cause the option of folder is not exist .. please help me
Thanks so much for this tutorial.
Is there anyway I can style a some texts in the sqlite database? Like adding bold to some texts.
helllo sir, i want to include pdf in assets folder , In this case there will be any problem.
i am waiting for your answer.
can you please email me this project? or related project anything using sqllite n sensor
please which ide can i use to create my own database
Atif mera yeh project run nahi horaha hai crash hojara hai baar baar but kuch error bhi nahi dikharaha
but i have 500 pages!!!!!……… what is work?…….
Your tutorial video was awesome
thank you
Will the user need to have access to the internet in order to get information from the book if the all the text is saved on SQLite?
Thanks so much!
wil the admin be able to read and write into the database ?
Nice bro
Hello . this project I want to save the data in pageTv with shared preferences. I am getting a reference or no value error. If I do .String.values (pageTv ) in theAccountData section, the load also returns null. I need this to open the last page but I could not run it in this structure.
hope u put a the opensource file for free to make us happy using it for education purpose .. thank u
error
android.database.sqlite.SQLiteException: no such table: booktable (code 1): , while compiling: SELECT * FROM booktable
yeah ı know but ı want to use this with listview
Salam Aleykum
Please project file
thanks
Thanks for the video.
i have a doubt not related to this video.
could you please tell
How to pass row (parent table) id (MYSQL) of one activity and show the (child table) content in new activity page-in server side scripting language PHP. to parse inJSON fromat?
very very thanks