Tuesday, October 6, 2015

The Bucket List and Stuff...

Take out your pen and paper or open up a text document. Start writing down what comes to mind as you read these questions:
  • What if you were to die tomorrow? What would you wish you could do before you die?
  • What would you do if you had unlimited time, money and resources?
  • What have you always wanted to do but have not done yet?
  • Any countries, places or locations you want to visit?
  • What are your biggest goals and dreams?
  • What do you want to see in person?
  • What achievements do you want to have?
  • What experiences do you want to have / feel?
  • Are there any special moments you want to witness?
  • What activities or skills do you want to learn or try out?
  • What are the most important things you can ever do?
  • What would you like to say/do together with other people? People you love? Family? Friends?
  • Are there any specific people you want to meet in person?
  • What do you want to achieve in the different areas: Social, Love, Family, Career, Finance, Health (Your weight, Fitness level), Spiritual?
  • What do you need to do to lead a life of the greatest meaning?

Come up with as many items as you can. The items should be things you have not done yet. If you find yourself stuck, chances are you are mentally limiting/constraining yourself. Release those shackles – Your bucket list is meant to be a list of everything you want to achieve, do, see, feel and experience in your life.

From: 101 Things To Do Before You Die



Everyone makes their own choices. But if I were at your position, after seeking my answers to above questions, I would definitely...

Travel the world with the person I love (or alone).


See: How does it feel to travel alone?

There's so much we don't know, can't know because we stay at one place all our lives. Not everyone gets such an opportunity to do something what others can't. And if you got one, you gotta do the things what gives you an edge. By travelling, you get the experience of the places, people, problems, cultures, new things, and all that at once! It can be rough in the beginning but it gets beautiful. You just have to understand why is that you are doing what you are doing.

Here are the problems people face in their late 20's.

- Time, but no money
- Money, but no time

Well, my friend, do you see the opportunity you have right here?

Wouldn't you like to gaze at the Northern Lights from a glass igloo in Finnish Lapland?

Wouldn't you like to go and have dinner at this restaurant near Sanyou Cave above the Chang Jiang river, Hubei , China?

Wouldn't you like to leave the world behind for all it's complexities and search for simplicity? Here are a few places that are in my travel bucket list.

Blue Caves – Zakynthos Island, Greece

Santorini, Greece

Blue Lagoon Galapagos Islands in Ecuador

Skaftafell Ice Cave in Iceland

Get Into Action!

After you finish your list, here’s what to do next:
  • Start acting on them! Plan out the successful path toward these goals
  • Be reminded of the list all the time. Use environmental reinforcement – put them up in a prominent spot where you will see them every day / very regularly. Put it in your life handbook, set it as your wallpaper, pin it on your noticeboard, print it out, stick it on your wardrobe/locker.
  • Share them with your family and
    personalexcellence.co
    friends
    . Inspire them to create their own bucket lists too! This way, you also create accountability for yourself as you complete the items on your list.
  • Don’t limit your list items to a certain definition. Sometimes opportunity present itself in a totally different manner. Keep your eyes peeled! The universe will start throwing things your way.
  • Review your list regularly. Cross out the things after you do them. See if some of the items become irrelevant and if there are new things you want to add. Just as you finish the items, you’ll add new ones as they come along. There is absolutely no reason why your list should ever be empty. There is such an incredible wealth of things, events, activities, experiences to witness/go through in life that it’s impossible that you will ever be done with living.

So, I guess you figure out what you want to achieve in this life and go get it.

Thursday, October 1, 2015

All you need to know about Fragments in Android

A Fragment is a piece of an application's user interface or behavior that can be placed in an Activity. Interaction with fragments is done through FragmentManager, which can be obtained via Activity.getFragmentManager() and Fragment.getFragmentManager().
The Fragment class can be used many ways to achieve a wide variety of results. In its core, it represents a particular operation or interface that is running within a larger Activity. A Fragment is closely tied to the Activity it is in, and can not be used apart from one. Though Fragment defines its own lifecycle, that lifecycle is dependent on its activity: if the activity is stopped, no fragments inside of it can be started; when the activity is destroyed, all fragments will be destroyed.
All subclasses of Fragment must include a public no-argument constructor. The framework will often re-instantiate a fragment class when needed, in particular during state restore, and needs to be able to find this constructor to instantiate it. If the no-argument constructor is not available, a runtime exception will occur in some cases during state restore.

So lets take an example of a Music Player. Now if you close the music player all the fragments ie. Album Art placeholder,Song name and Play Pause button all will close.

Basically there are elements that are on an Activity ie UI of the Application. If the activity is closed none of its fragments can be accessed.

  When you add a fragment as a part of your activity layout, it lives in a ViewGroup inside the activity's view hierarchy and the fragment defines its own view layout. You can insert a fragment into your activity layout by declaring the fragment in the activity's layout file, as a element, or from your application code by adding it to an existing ViewGroup. However, a fragment is not required to be a part of the activity layout; you may also use a fragment without its own UI as an invisible worker for the activity.