Learn Android Tutorial 1.15- Finish programming our RadioGroup for Style/Gravity
Why Stack Overflow recommends it
Stack Overflow users cite it as the tutorial they were following when their Android app threw errors, such as a RadioGroup listener that failed or text gravity that did nothing.
Recommended by 0 people across 0 different months, 2014 to 2016.
What it is
A 2011 beginner Android tutorial from the mybringback channel, lesson 15 in a series. It finishes wiring up a RadioGroup with an OnCheckedChangeListener so the radio buttons change a text view's style and gravity.
What people said
Cites Chidori · 2014-09 · Stack Overflow · on “Can't instantiate class -android programming”
I was following the tutorial videos here: [this video] and came across a few errors while following the tutorials. Everything works fine until i started to work on the Tutorial: onCheckedChanged method. Can someone explain what I am doing wrong? Thanks a lot. LogCat Code 09-15 18:38:22.444: E/MediaPlayer(1764): Should have subtitle controller already set 09-15 18:38:27.984: E/MediaPlayer(1764): Should have subtitle controller already set 09-15 18:38:31.374: E/AndroidRuntime(1764): FATAL EXCEPTION: main 09-15 18:38:31.374: E/AndroidRuntime(1764): Process: com.example.myfirstapp, PID: 1764 09-15 18:38:31.374: E/AndroidRuntime(1764): java.lang.RuntimeException: Unable to instantiate activity Compone
Cites Marty_01 · 2014-11 · Stack Overflow · on “Eclipse can't connect curly braces”
Im new to android programming and Im following this tutorial: [this video] . I followed the tutorial exactly but Eclipse manages to find lots of errors. It says the curly braces are incorrect, yet when I select one, the one it corresponds to lights up and they all form a pair. Furthermore, Eclipse doesn't recognise the variables I declared before the onCreate method. Here is the code: package com.example.tutorialproject; import android.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.RadioGroup; import android.widget.RadioGroup.OnCheckedChangeListener; import android.widget.TextV
Cites Icer Exiomo · 2016-02 · Stack Overflow · on “android gravity in textview is not working”
hi programmers my big respect to all of you. im new here in android programming. im having a problem in working my radio button with a function of gravity in my textview by aligning them from center, left and right. My API is 23 and im following this tutorial [this video] but mine is not working package com.example.testavd; import android.app.Activity; import android.graphics.Typeface; import android.os.Bundle; import android.view.Gravity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.RadioGroup; import android.widget.RadioGroup.OnCheckedChangeListener; import android.widget.TextView; public class MainActivity