Advertisement
Guest User

reportActivity

a guest
Jan 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. package com.ammolitestudio.pemesanan;
  2.  
  3. import android.content.Intent;
  4. import android.support.v7.app.AppCompatActivity;
  5. import android.os.Bundle;
  6. import android.view.View;
  7. import android.widget.Button;
  8. import android.widget.TextView;
  9.  
  10. public class ReportActivity extends AppCompatActivity {
  11. TextView Harga;
  12. String get_Price;
  13.  
  14. @Override
  15. protected void onCreate(Bundle savedInstanceState) {
  16. super.onCreate(savedInstanceState);
  17. setContentView(R.layout.activity_report);
  18.  
  19. Button back = (Button)findViewById(R.id.btnBack);
  20.  
  21. back.setOnClickListener(new View.OnClickListener() {
  22. @Override
  23. public void onClick(View view) {
  24. Intent in = new Intent(getApplicationContext(),MainActivity.class);
  25. startActivity(in);
  26. }
  27. });
  28.  
  29. Harga = (TextView) findViewById(R.id.tvTotalHarga);
  30.  
  31. get_Price = getIntent().getExtras().getString("parse_harga");
  32.  
  33. Harga.setText("" +get_Price);
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement