Android Open Source - paktebe Detail Panduan






From Project

Back to project page paktebe.

License

The source code is released under:

MIT License

If you think the Android project paktebe listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.maps.paktebe;
// www .jav  a 2  s . co m

import android.os.Bundle;
import android.app.Activity;
import android.widget.TextView;

public class DetailPanduan extends Activity {  
  private TextView tvNama, tvDetail ;  
  private String nama, detail;
  private String str[];
  private String Select;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_detail_panduan);
    initialize();
    Bundle bundle = getIntent().getExtras();    
    Select = bundle.getString("Select");  
       
     str = Select.split(",");
     int i;
     for (i = 0; i < str.length; i++) {
        int pos = str[i].indexOf("=");
        str[i] = str[i].replace("}","");
        switch (i) {
        case 0: nama = str[i].substring(pos+1); break;
        case 1: detail = str[i].substring(pos+1); break;
        }
     }
    setTeksView();  
  }



  private void setTeksView() {
    tvNama.setText(nama);
    tvDetail.setText(detail);    
  }



  private void initialize() {
    tvNama = (TextView) findViewById(R.id.nama_panduan);
    tvDetail = (TextView) findViewById(R.id.detail_panduan);    
  }



  @Override
  public void onBackPressed() {
    super.onBackPressed();
  }
}




Java Source Code List

com.maps.paktebe.DaftarTB.java
com.maps.paktebe.DetailDaftar.java
com.maps.paktebe.DetailPanduan.java
com.maps.paktebe.DetailTambalBan.java
com.maps.paktebe.DirectionActivity.java
com.maps.paktebe.Direction.java
com.maps.paktebe.JSONParser.java
com.maps.paktebe.MainActivity.java
com.maps.paktebe.Mobil.java
com.maps.paktebe.Motor.java
com.maps.paktebe.Panduan.java
com.maps.paktebe.PetaLokasi.java
com.maps.paktebe.SplashScreen.java
com.maps.paktebe.TentangApp.java
com.maps.paktebe.Utils.java
com.maps.paktebe.entity.TambalBan.java