Question: i want to align col-lg-8 with col-lg-4 that contains 2 rows for 2 images, i need those 2 columns align perfectly so they fit each others height

i tried this: 
[desired look](https://i.stack.imgur.com/7hxGj.jpg)

[and what i got](https://i.stack.imgur.com/pK6Uk.jpg)

```html
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
  <div class="row">
    <div class="col-lg-12">
      <div class="row">
        <div class="col-lg-8">
         <img src="http://i183.photobucket.com/albums/x312/Tiefnuker/office_02_zpsdz0zixcd.jpg"/>
        </div>
        <div class="col-lg-4">
          <div class="row">
            <div class="col-lg-2">
              <img src="http://i183.photobucket.com/albums/x312/Tiefnuker/office_02_zpsdz0zixcd.jpg"/>

            </div>
          </div>
          <div class="row">
            <div class="col-lg-2">
              <img src="http://i183.photobucket.com/albums/x312/Tiefnuker/office_02_zpsdz0zixcd.jpg"/>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
```

Link to [CODEPEN](https://codepen.io/anon/pen/JMpZOB)

Answer: 
You create a new instance in both the classes, meaning when you grab it in the second class you haven't set the value on the instance in that class. From what you're describing, the variable is not static, meaning the value depends on the instance. The default value for integer primitives is 0, which is the reason why it has that specific value.

Pseudocode example of what you're doing:

```
Warranty x = new Warranty();
x.setID(8);
Warranty y = new Warranty();
System.out.println(y.getID());//Since the ID of y isn't set, it'll print 0

```

---

As for a possible solution:

If your class is fairly basic, just make it implement Serializable and put it as an extra in the intent. And by "fairly basic" I mean a class that you actually can serialize. Classes like Context cannot be serialized, so you'd need to add a method for adding it back after it's been deserialized and mark unserializable fields as transient. Or just pass the primitives directly.

You can use parcelable instead of Serializable, but that's a matter of preference.
You add the data into the intent. See [how to pass primitives](https://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android-application). Or if you want to pass an object, you must first flatten it, and [then pass the parcelable](http://wptrafficanalyzer.in/blog/android-parcelable-example-passing-data-between-activities/). Each intent has its own address space