Android Studio – NameValuePair and HttpParams is deprecated

Issue I am new to Android development and I am have some deprecated issues. In Android Studio, it is stating that the NameValuePair and HttpParams is deprecated. ArrayList<NameValuePair> dataToSend = new ArrayList<>(); dataToSend.add(new BasicNameValuePair(“fname”, user.fname)); dataToSend.add(new BasicNameValuePair(“lname”, user.lname)); dataToSend.add(new BasicNameValuePair(“email”,

Continue reading

BindingAdapter with lambda as argument

Issue With Android databinding, I can do the following: <View android:layout_width=”match_parent” android:layout_height=”wrap_content” android:onClick=”@{() -> viewModel.onClick()}” /> My ViewModel does not have to implement OnClickListener, but just have a method: public void onClick() { } What it passes to the onClick

Continue reading