I am writing an application for example. The example uses a list to store pairs of values:
List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("name", name)); params.add(new BasicNameValuePair("price", price)); params.add(new BasicNameValuePair("description", description)); Android Studio swears at NameValuePair and highlights it. As I understand it, the library is used.
import org.apache.http.NameValuePair; Which is also highlighted in my NameValuePair at the end. Is it possible that I have no such library in the project? If so, how to add it?
NameValuePair? Maybe just replace it withAbstractMap.SimpleEntry? - Sergey Gornostaev