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. encrypt/decrypt the data from content provider

I am using content provider to access the database. I want to secure
my data by encryption. Please let me know, how we can encrypt and
decrypt the data from content provider.



2. Using the audio group


I have an application that needs access to the low-level audio (e.g. kernel 

Currently audio related device nodes are created with the following 
system:audio but I can not find references to the audio group in 

Can I conclude that the audio group is currently not used and that all audio 
related things already run as system user?

Should I follow the same approach (e.g. run a system user) with my audio 
related stuff or is it better to define a 



3. Adding new hardware to libhardware

4. Android Contacts backup and sync application

5. WT ask for HELP : original rom for droid 2 global

6. change the name of the applications on that screen which appears on clicking Launcher Icon on Home Screen

7. oot : tes email