i am very new to android and tying to make a simple to-do list widget
The text on the widget button doesnt change
The activity launchs, but once i type inside the textfield the text from the text field doesnt get stored in the button
this is my current code which is inside an onCreate fun of an activity that gets launched when clicked on said button
inside mainactivity.kt
val remoteViews: RemoteViews = RemoteViews("com.example.noteswidget", R.layout.widget)
remoteViews.setTextViewText(R.id.appwidget_Button,it.text)
inside widget.xml
<Button
android:id="@+id/appwidget_Button"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="top"
android:text="@string/appwidget_text" />
i am very new to android, i may have made some noob mistakes