title: want to call other activity in different class file
body: <pre><code>public class allmain extends AppCompatActivity {
  
      RecyclerView allfurniture;
  
      TextView aaa;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.all);
          //allfurniture = (RecyclerView)findViewById(R.id.allfurniture);
          aaa = (TextView) findViewById(R.id.aaa);
          aaa.setText("asdafdfdafaf");
      }
  }
  </code></pre>
  
  <p>here the all named layout file is for fragment class but i want to do coding of recyclerview and adapter class so what to do in it?</p>