Questions tagged [ischecked]
78 questions
0
votes
3 answers
android vibrator turn on and turn off
I'm making one part in my app where if you push the button then the phone will vibrate, and if you push the button again the phone will stop vibrating. I am using a Radio button for my button. my code is right now for the vibrate part:
…

steven minkus
- 131
- 2
- 2
- 14
0
votes
2 answers
Android App - Java - ToggleButton
I searched over google and this site but didn't find a working answer.
I'm currently developing an android app and i've got toggle buttons in my view.
But I can't check if they are checked. Had the same problem with CheckBoxes (after that was not…

virtualmarc
- 1
- 1
0
votes
2 answers
Android: checkbox.isChecked() is always returning a false condition
I'm trying to code a checkbox into a help screen which is essentially a pop up view (an activity that's started by the main program) containing a ScrollView that has the help text, and OK button, and a checkbox that asks if you want the help screen…

Jeff S
- 33
- 1
- 2
- 7
0
votes
2 answers
How to list checked enum values only?
I’m learning Blazor and was trying to put/save in a list some enum elements, only the ones that are checked. I have read loads of hints on stackoverflow and other web sites but am still unable to achieve that, I know something is missing but I’m…

Maya
- 3
- 2
0
votes
0 answers
how to uncheck the checkbox of chaka ui?
I'm trying to make a code to uncheck the checkbox when prop is changed.
"props.selectedTargetData" this value is changed by "setTargetDataFunc" // callback -> parent component
I checked the loop to make "Checkbox" is run when I select the Radio…

edward kim
- 9
- 2
0
votes
2 answers
Android CheckBox isChecked() throws nullpointereception
I have another problem. I defined CheckBoxes in layout and I'm getting their state with isChecked() method in a class. However I'm getting an error whenever this method is called with the following error log:
09-05 14:55:58.457:…

Alesito
- 585
- 1
- 8
- 15
0
votes
0 answers
Unresolved reference: isChecked
I tried to add an element to my val, but the element 'isChecked' does not exist. I have added id 'kotlin-android-extensions' in Build.Gradle of my app Module

Starscream
- 11
- 4
0
votes
1 answer
Apps Script Checkbox True/False to copy between two sheets, is this logic possible?
I'm not sure how to better title this so I'll apologize in advance. I'm trying to determine if something I'm hoping to do is even possible, because so far I don't see how but if it is, I'd like to learn. I have a rather simple script below, but…

Chaz
- 19
- 1
- 6
0
votes
1 answer
Android CheckBox isChecked() or editing SharedPreferences causing forced close
I'm writing a flash card app in Android, and I tried to add the ability to add a word to a review list by having a checkbox. When the user goes to the next word, I see whether the checkbox is checked. If it is, I add the word to the review list, and…

Pat Needham
- 5,698
- 7
- 43
- 63
0
votes
2 answers
Checkbox checked is not working. HTML CSS
I am creating the sliding navbar using the checkbox method.
[But for only demo purpose i am changing the background to "blue"]
I used label and if checkbox is checked Its background changes to "blue". But It Is Not Working
Please Explain…

Aditya Vaste
- 37
- 1
- 6
0
votes
1 answer
CheckBoxPreference isChecked causes a FC in a preferenceActivity
When I check if the checkbox is checked, I get a Force Close in the following code:
public class preference extends PreferenceActivity implements OnSharedPreferenceChangeListener {
public static final String nwd = "nwd";
private…

patrick
- 1,282
- 4
- 21
- 37
0
votes
1 answer
C#: Radio Button doesn't have definition .IsChecked?
I am writing a program to run a testing tool that has two cameras, named Pias and DinoLite. The operator can select which camera is to be active by two radio buttons. I am trying to implement an exception where if an operator tries to select a…

Sam O
- 73
- 1
- 5
0
votes
1 answer
Saving the state of a Switch
I'm creating a "To Do" application for a project where I create to-do notes, they get saved in SQLite Database, and they get displayed in a RecyclerView as seen below.
This is the interface
I would like to know how to save the state of the switch…

Pierre Ibrahim
- 1
- 1
0
votes
1 answer
Change IsChecked property on ChangePropertyAction [uwp]
I need to change the IsChecked property of a Radio Button on the click of a simple Button in XAML using ChangePropertyAction.
I am able to change every property of the radio button (Content, Visibility etc) through this method except IsChecked and…

Bella Swan
- 153
- 10
0
votes
3 answers
Only do something when two Switch Buttons are independently checked / activated
I have two switch buttons that trigger some actions. If I activate A, action A happens, if I activate B, action B happens but if I activate both A and B nothing happens. Here is my code:
switch1.setOnCheckedChangeListener(new…

M'aiq the Coder
- 762
- 6
- 18