coolbud012's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 37 (0.05 per day)
- Joined:
- 01-July 11
- Profile Views:
- 1,080
- Last Active:
May 11 2013 03:49 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Selecting radio buttons and perform action according to that
Posted 11 May 2013
Yeah did that and its working...thanks a lot
-
In Topic: Selecting radio buttons and perform action according to that
Posted 9 May 2013
This is what I have tried till now :
package com.droidacid.apticalc; import android.app.Activity; import android.os.Bundle; import android.text.InputType; import android.view.View; import android.view.View.onclickListener; import android.widget.Button; import android.widget.EditText; import android.widget.RadioGroup; import android.widget.RadioGroup.OnCheckedChangeListener; import android.widget.TextView; public class timeNWork extends Activity implements onclickListener, OnCheckedChangeListener{ TextView TVnotice, TVoutput; RadioGroup RGselect; EditText num1, num2, num3; Button calculate; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.aptitimenwork); initialize(); } private void initialize() { TVoutput = (TextView) findViewById(R.id.TVresult); //RGselect = (RadioGroup) findViewById(R.id.rgSelect); num1 = (EditText) findViewById(R.id.ETfirst); num2 = (EditText) findViewById(R.id.ETsecond); num3 = (EditText) findViewById(R.id.ETthird); RGselect.setOnCheckedChangeListener(this); } @Override public void onclick(View v) { // TODO Auto-generated method stub Double numb1 = Double.parseDouble(num1.getText().toString()); Double numb2 = Double.parseDouble(num2.getText().toString()); Double numb3 = Double.parseDouble(num3.getText().toString()); double result = 0; if(RGselect.getId()==R.id.rbtwoperson) { num3.setVisibility(2); double number1 = numb1; double number2 = numb2; result = 100 / (number1 + number2); TVoutput.setText(Double.toString(result)); } else { double number1 = numb1; double number2 = numb2; double number3 = numb3; result = 100 / (number1 + number2 + number3); TVoutput.setText(Double.toString(result)); } } @Override public void onCheckedChanged(RadioGroup arg0, int arg1) { // TODO Auto-generated method stub switch(arg1) { case R.id.rbtwo: num3.setEnabled(false); num3.setInputType(InputType.TYPE_NULL); num3.setFocusableInTouchMode(false); num3.clearFocus(); break; case R.id.rbthree: break; } } } -
In Topic: No Activity found to handle Intent - Error
Posted 8 May 2013
Nopes actually the action android:name was having wrong values... Rest facing many small problems everyday. And talking around 4-5 hrs to get resolved. So if someone can help me with these small problems would be appreciated...
Can you guide me about improving my UI? -
In Topic: Facing calculator app error in android
Posted 8 May 2013
Made it work by using switch case. -
In Topic: Facing calculator app error in android
Posted 8 May 2013
Better I should learn that. But for now can you help me with this issue so that I can complete this module.
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
Friends
|
|


Find Topics
Find Posts
View Reputation Given



|
Comments
coolbud012 has no profile comments yet. Why not say hello?