pass data from MySQL to marquee text view in anther activity

pass data from MySQL to marquee text view in anther activity

I pass data from MySQL to marquee text in activity one and It works successfully , but I need to send these text to anther activity by intent but not warking for me , Please help

I pass data from MySQL to marquee text in activity one and It works successfully , but I need to send these text to anther activity by intent but not warking for me , Please help

activity One :

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_dollars);
    item_k001 = findViewById(R.id.item_k101);
    item_k002 = findViewById(R.id.item_k102);
    requestQueue = Volley.newRequestQueue(this);
    JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null,
            new Response.Listener<JSONObject>() {
                @Override
                public void onResponse(JSONObject response) {
                    final Globalv globalv = (Globalv) getApplicationContext();
                    try {
                        JSONArray jsonArray = response.getJSONArray("allegg");
                        String msg = "";
                        for (int i = 0; i < response.length(); i++) {
                            JSONObject respons = jsonArray.getJSONObject(i);
                            final String myItem_k001 = respons.getString("item_k1");
                            final String myItem_k002 = respons.getString("item_k2");
                            DollarsActivity.this.runOnUiThread(new Runnable() {
                                public void run() {
                                    item_k001.setText(myItem_k001);
                                    item_k002.setText(myItem_k002);
                                }
                            });
                        }
                        JSONObject respons2 = jsonArray.getJSONObject(0);
                        String id = respons2.getString("id");
                        globalv.setTotal_threads(Integer.parseInt(String.valueOf(id)));
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }
                }

        }, new Response.ErrorListener() {
    @Override
    public void onErrorResponse(VolleyError error) {
        Log.e("VOLLEY", "ERROR");
    }
}
);

I want to send tow text to activity tow :

        //defines variables to the xml elements.
        TextView tv1 = (TextView) findViewById(R.id.marqueeTextView1);
        TextView tv2 = (TextView) findViewById(R.id.marqueeTextView2);
        ///  You can change your text here
        tv1.setText("Text view");
        tv2.setText("Text view   ");
        // We set the setSelected value to true for the shift of the texts
        tv1.setSelected(true);
        tv2.setSelected(true);


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Introduction to JSON - Java

Learn the fundamentals of parsing and manipulating JSON data with the JSON-Java library.

How to Convert a Java Object into a JSON String

In this article, you'll learn how to convert a Java Object into a JSON String

Converting JSON to CSV in Java

In this tutorial, we’ll see how to use Jackson to convert JSON into CSV and vice versa.