Any idea why the following code crashes the app? It happens in calculateGmt()

by Traveler » Wed, 21 Apr 2010 11:35:31 GMT

Sponsored Links
 package Adkins.GMTpackage;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.EditText;

public class GMTactivity extends Activity implements OnClickListener {
        TextView title;
        TextView minsattitle;
        TextView minustitle;
        TextView minsatoutput;
        TextView minusoutput;
        TextView gmtinput;
    Button gmtbutton;

        /** Called when the activity is first created. */
    public void onCreate(Bundle icicle) {

        title = (TextView)this.findViewById(;
        minsattitle = (TextView)this.findViewById(;
        minustitle = (TextView)this.findViewById(;
        gmtinput = (TextView)this.findViewById(;
        gmtbutton = (Button)this.findViewById(;

        public void onClick(View v) {

        protected void calculateGmt() {

                double val = Double.parseDouble(gmtinput.getText().toString());
                // in a real app, we'd get this off the 'net
                minsatoutput.setText(Double.toString(val * 2));


Other Threads

1. Terpesona Live Wallpaper Android

Keren banget...Gadget terindah :)
Baru kali ini megang HH dengan perasaan puas poll...
*Maaf katrok mode ON saat liat LW Magic Smoke serasa didalam perut alien LOL
Powered by Telkomsel BlackBerry

"Indonesian Android Community [id-android]" 

2. OOT: Paging Iskandar (gila original)

As subject,
Mohon kalo mantau japri ane ya. 


"Indonesian Android Community [id-android]" 

3. Cara aktifin HTC_IME

4. Tanya2 android (sorry newbie nih)

5. Attachment html ga bisa dibuka

6. onActivityResult not being called in Activity that uses GLSurfaceView

7. Change Button Position Screen