skip to Main Content

I have been making an News API project in android studio but have volley got error in it. Error- com.android.volley.AuthFailureError. Using json

public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); RequestQueue requestQueue; requestQueue = Volley.newRequestQueue(this); List<news_Objects> newsList = new ArrayList<>(); //url for News API String url="https://newsapi.org/v2/everything?q=apple&from=2021-08-31&to=2021-08-31&sortBy=popularity&apiKey=ca3d6c89eff24db2a8ef78868f0af555"; //making json object request JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url,…

VIEW QUESTION
Back To Top
Search