Yellow , I like it so far , 1 month ago i started to learn java , sql and xml with the end goal to learn android dev . Your vids help a lot , looking forward for more , if you have any tips i am all ears .
You should watch this course. All the methods I use in this video are outdated. Also this video is bad. Lol. I made this free course for beginners codingwithmitch.com/courses/sqlite-room-persistence-android/
Thanks for this one! i wasn t finding the tutorial that i needed for what i wanted, but now i got it. Do you have anything on editing or deleting what s in the listview? Thank you very much again! Simple and easy to understand tutorial.
for people who are getting a CRASH !!, you need to put empty space between the word ( FROM ) and the star ( * ) in the database last line . Mr Mitch please make a comment regarding this point . thank .
These videos are outdated. Now you should be using the "Room Persistence Library" to do SQL transactions on Android. I'll make videos on it soon. It contains convenience methods so you don't need to worry about that stuff.
I spend an hours just to know where is the missing,,, u skip the "myDB = new DatabaseHelper(this);" in MainActivity.class and magically that line is show in 17:33 ,,, anyway thank you for this video ....
I tried to run the same code with same interface. My app then keeps on crashing suddenly. The error found in logcat was "NullPointerException: attempt to invoke virtual method Boolean on null reference object in method AddData....." And the indicated line is "Boolean insertData = myDB.addData(newEntry);" I tried to handle with try-catch but it always comes up in catch block whenever I hit add button in the app.. Please help.
Thanks man. :D This is the tutorial I was searching for. I need another help with connecting two tables. When I touch table one's any data it will show another related table's data. I would appreciate your reply.
I don't understand how myDB in MainActivity and in ViewListContents are the same, or are they not? How come when you add data to myDB in MainActivity you can still finds its contents in myDB inside ViewListContents?
graet tuto.. Thx. i have a question?? if i already have a listview full of data , and i would like to saving those datas and add it to an other listview... how can i make the condition 'if'?
my app is stopping as soon as I click the submit button. it says that there is some null pointer exception in the method AddData(String) so could you help me. it is giving an error that attempt to invoke virtual method boolean DataBaseHelper.addData(java.lang.String) on a null object at AddData
when i am clicking on button viewdata for showing data storage so there is written "My data has stopped".................. so now what can i do...........
though your video helped me understanding various new stuff like cursor,Toast,databasehelper class and calling all the function but after adding viewListContents to manifest its still gets crashed idk why? please help me out
In my app i have considered three textviews and two buttons.In the ouput page i got only first textview details.how can i get the all values from textviews?
hey it is very helpful video tutorial. using this tutorial i am saving data with SQLite . now, i want to get backup of this database on google drive. can you please help me.
thanks for the good tutorial, but how if i want to click that listview and go to another activity? im still confused how to throw the data from the listview to the new activity. thanks
((ListView) yourListView).setOnItemClickListener(new AdapterView.OnItemClickListener(){ public void onItemClick(AdapterView ada, View view, int pos, long l){ String s = arrayList.getItem(pos); if(s.equals("settings")) startActivity(new Intent(getActivity(), yourActivity.class).putExtra(Intent.EXTRA_TEXT, "The data you want to pass to the activity")); } }
Hi Mitch, Please kindly tell me if you have a video for searching through a dataBase, based on a String that is introduced by the user, and showing in a recyclerView only those rows that contains that specific string. Thank you !
ListAdapter listAdapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1,theList); This will maybe help for you... :) so you have to write cast to adapter.
This is outdated. The new best practice way to use SQLite on android is with the room persistence library. I have a course on it and it's free codingwithmitch.com/courses/sqlite-room-persistence-android/
watch this course. It will answer all your questions, show you best practices, and it's free. codingwithmitch.com/courses/sqlite-room-persistence-android/
if you're looking how to add/save more columns, this is the video he was suppose to link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8K-6gdTlGEA.html
@Mitch Tabian Dear Mitch, I have to save besides a name two different ArrayLists. Is it possible to do this in SQLite ? Because when i am trying to change the Column Values in the DataBaseHelper.class from String to an Arraylist, the program automatically tells me its just possible with a String and changes it back.
Hi there mate, when i tap on the view entries button, the app crashes. Can you help please? I have copied and pasted your code and it will still crashes!! Help please.
hey mitch! di you make a video, where you load information from an sqlite database in a Custom List View? iam working on a projekt an can not go on! thanks a lot :-)!
Nice tutorial (y) How to use custom listview on this, i want to put button to edit and delete data? please helpe me, I already try but I do not find :(
I copy all your code and Id in each button and edit text also in listview but still the app crashed. even in view the list view help me. theres any thing to add in dependencies in my app or what? i need solution
Sir, I just copy your code in java and also in xml and follow you step by step. the error is when I run the app and add a data, the app stopped but when the edit text is empty and i click the add button it give toast msg. like you did. Errors: - adding data will stop the app (msg "The app has stopped) - viewing data by clicking view data will stop the app (msg "the app has stopped)
OK thank you very much sir mitch, now I fix my own error. youre awesome! Sir, can you make a tutorial about how to implement favorite button in a layout then it will go to favorite activity :) sharedpreference or sqlitedatbase :)
Im talking about that when a video fav button clicked, that video will save to another activity(Favlayout_activity) and that fav video will be store in that activity, even the app will close. maybe put little database?