java.lang.nullpointerexception: attempt to invoke virtual method 'java.lang.string java.lang.object.tostring()' on a null object reference how can i solve it please
@CeceBusAddict4 жыл бұрын
Terimakasih mas, works perfectly! for someone using fragment, try this: ArrayAdapter arrayAdapter = new ArrayAdapter(getActivity(), R.layout.style_spinner, arrayList); spinner.setAdapter(arrayAdapter);
@littleD3mon2 жыл бұрын
Omm boleh bagi source code nya
@budyfriend_code Жыл бұрын
ini dikit loh mas wkwkw, di ketik ulang aja yah, sambil dipelajari juga
@informatika_tkj4 жыл бұрын
om kalo ambilnya datanya dari sqlite gmna yah..?
@budyfriend_code4 жыл бұрын
ok nanti saya bikin tutorialnya
@budyfriend_code4 жыл бұрын
kzbin.info/www/bejne/gXS2m5WIpZ2Ag9k
@budyfriend_code4 жыл бұрын
spinner sqlite android studio udh saya buat
@informatika_tkj4 жыл бұрын
@@budyfriend_code Trima Kasih banyak om...
@alfianrizaldi52424 жыл бұрын
bikin tutorial lanjutan ini buat ambil data dari spinner terus simpan di firebase dong bang...
@budyfriend_code4 жыл бұрын
Menggamil data dari spinner itu, simple kamu buat variabel dulu String vals = spinner.getSelectedItem().toString(); nanti vals dimasukan didalam setValue pada databse firebase : database.child("path").push().setValue(vals);
@budyfriend_code4 жыл бұрын
untuk lebih lanjutnya coba kamu pelajari CRUD firebase, hanya bedanya klo EditText dia di jadikan stringnya : String vals_txt = txtEditText.getText().toString(); sedangkan yang Spinner : String vals_sp = txtSpinner.getSelectedItem().toString();
@officialjasakuy62054 жыл бұрын
@@budyfriend_code kok ini Null ya bang pas saya coba?
@aya40532 жыл бұрын
sir how can i select an item from this spinner
@officialjasakuy62054 жыл бұрын
bang mau nanya, kalau spinner nya mau pakai yg custom bisa gak ya?
@budyfriend_code4 жыл бұрын
kamu bisa liat tutorial ini kzbin.info/www/bejne/bX6umKRngpWIe6M
@yogarajand54554 жыл бұрын
Could you please tell me how to do onclick item in spinner to get the data?
@budyfriend_code4 жыл бұрын
The requirement to create a spinner to add data is a String array, ListArray and ArrayAdapter, the string array is replaced by a string looped in the item section, then added to the ListArray with arrayList.add (items) and then after completing ListArray adding the data, then the arraylist is inserted into the array adapter, and then the adpter is inserted into the spinner by spinner.setAdapter (arrayAdapter)
@pradnyakumavat51534 жыл бұрын
@@budyfriend_code can you make video on it ?
@budyfriend_code4 жыл бұрын
@@pradnyakumavat5153 you can watch this video
@pradnyakumavat51534 жыл бұрын
@@budyfriend_code which video for onclick item in spinner to get the data into another activity ?
@shreyaspatel66674 жыл бұрын
thanks a lot
@budyfriend_code4 жыл бұрын
You're welcome
@ZoHaTips4 жыл бұрын
Great video, can you provide source code please
@budyfriend_code4 жыл бұрын
You will get this source code, when you finish this tutorial, because with it you can better understand the flow or process in this program when you watch this tutorial.
@ZoHaTips4 жыл бұрын
@@budyfriend_code i create a app , i watch your tutorial , now i want to store this spinner value in firebase please make a video