Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7620221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:53:13+00:00 2026-05-31T03:53:13+00:00

Top of my code package com.br.openeed.engtoolspro; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.os.Bundle;

  • 0

Top of my code

    package com.br.openeed.engtoolspro;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;

public class TubulaoDados extends Activity {

    // WIDGETS
    Spinner spTsolo;
    Button btCalcular;
    EditText etCarga, etMenorbase;
    TextView tvMenorbase, tvCm;

    // VARIABLES
    double valorCarga, valorTsolo, valorMenorbase, cargaKgf,
            verificacaoOblongada, verificacaoOblongada2, maiorBase, menorBase,
            areaFuste, diametroFuste, valorAlturabase, volumeBase;

I have the following method that is called after the calculations of the User:

// Writes the results to other activity

    public void chamaResultados() {
        Intent ITubulaoDados = new Intent(TubulaoDados.this,
                TubulaoResultados.class);
        ITubulaoDados.putExtra("resultadoDiametrofuste", diametroFuste);
        startActivity(ITubulaoDados);
    }

In another activity’m have:

    package com.br.openeed.engtoolspro;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class TubulaoResultados extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);

        setContentView(R.layout.tubulaoresultados);

        final TextView tvResultadofuste;
        Intent ITubulaoDados = getIntent();
        final String resultadoFuste;

        if (ITubulaoDados != null) {
            tvResultadofuste.setText(Double.parseDouble(diametroFuste));
            Log.i("TubulaoResultados","resultadoDiametrofuste" + diametroFuste);
        }
    }

}

I can not work, I am beginner and do not understand where ta wrong, I think the variable that I created in another activity is not being recognized this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:53:15+00:00Added an answer on May 31, 2026 at 3:53 am

    Try this,

    If diametroFuste is a double,

    double  diametroFuste = getIntent().getExtras().get("resultadoDiametrofuste");
    tvResultadofuste.setText(""+diametroFuste);
    

    Update:

    In your TubulaoResultados Activity

    final TextView tvResultadofuste = (TextView)findViewById(R.id.<textview's id mentioned in tubulaoresultados.xml file>);
    Intent ITubulaoDados = getIntent();
    
    if (ITubulaoDados != null) {
    double  diametroFuste = ITubulaoDados.getExtras().get("resultadoDiametrofuste");
    tvResultadofuste.setText(Double.toString(diametroFuste));
    Log.i("TubulaoResultados","resultadoDiametrofuste" + diametroFuste);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code package com.cerbertek; import java.util.ArrayList; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory;
Here's my code for a stopwatch application on Android: package com.google.labyrinth; public class Tabalicious
I am using the following jquery code: $(#top ul li.corner).mouseover(function(){ $(span.left-corner).addClass(left-corner-hover); $(span.right-corner).addClass(right-corner-hover); $(span.content).addClass(content-hover); }).mouseout(function(){
I'm using http://developer.android.com/resources/tutorials/views/hello-mapview.html#top tutorial to show multi location in the map using markers.but it
near the top of the code i see things like, btn_dropdown._visible = false; mcMenuBkg._visible
Is there a way to run plain c code on top of the JVM?
I have code in the top layer of my .Net web application that I'd
Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it
I have the following code in the top frame of a two frame page:
I am using the following code to position an icon on top of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.