Game Changing Games From Your Childhood

Grew up on video games? 

If you are a child of the 80-90’s, you’ll recognize these titles and likely were raised by many of these games. In fact, we took it once step further and listed each game based on its impact on your childhood. 

Lets check em out!

 

What Is The Best Carry On Backpack? A Guide For True Travelers 

If you want a bag that is big enough to hold a week or two’s worth of travel stuff but small enough to carry on, it’s time to invest in the best carry on travel backpack. Using this bag is a great option to avoid the hassles of checking your bag.

The following products are the ones that stood out based on price value, ease of use and capacity. Use these reviews to find the one that suits you.

Osprey Porter for the Bargain Hunter

One of the least expensive options for carry on backpacks, the Osprey Porter features a basic suspension system, making it suitable for basic travels. Choose from three available sizes, the 30L, 46L and 65L.

This bag has a simple design, with no extra straps but just basic hip belt and shoulder straps. You can easily carry it on the top and side as it weighs only 2.5 pounds. Price starts at $100, which isn’t bad for a basic backpack built with compression sidewalls and backpack harness for comfort.

Osprey Porter Carry On Travel Backpack

Kelty Redwing- Best Bang for your Back

Certainly one of the best travel backpack carry on for the price and features, this bag is a good option for frequent travelers. It is equipped with more advanced features but is very affordable. It also qualifies as the best overnight backpack or multipurpose pack that you can use for international travel or a day of hike.

It is top loading, with the top lid convertible to sling pack. Zippered side pockets offer easier access to your stuff. The front pocket with organization keeps small items in place. It is hydration compatible and is built with ventilating back panel. It weighs only 2 pounds and 10 ounces, making it

Tortuga Backpack- Best In Class

Many carry on backpacks are hiking-style bags but this one is designed with the urban traveler in mind. Anyone would be confident to use it for city travels considering its sleek look, but you’ll be more impressed learning about its functionality. The size makes it fit to be carry on, making it one of the best backpacks for air travel since you don’t have to pay for baggage fees.

It loads in front, making it easy to find items. It has padded hip belt and shoulder straps for comfort. These straps can be neatly tucked behind the cover if you don’t want to see too many straps on your bag. You can hold it from the side using the side handles. It makes it possible to safely carry your laptop with you for it has a laptop sleeve, while the external pockets make it easy for you to bring some books or your water bottle.

Deuter Transit 50- Only If You Want the Best

If you’re both an outdoor enthusiast and air traveler, this is a great option. It boasts quality suspension system, nice help bit and well-padded shoulder straps that can all be stowed away. The shoulder straps allow you to carry it like a messenger bag, something that the other bags don’t offer.

The bag ensures a great fit, since the torso length can be adjusted to fit from 15.5-inch to 22-inches. The back is contoured and padded with breathable foam for ultimate comfort. Another excellent feature is the removable daypack perfect for day trips. The 50-liter bag also has front pockets that hold your valuables in place.

Deuter Transit 65 Backpack

eBags TLS Mother Lode Weekender- Awesome for the Price

The 54-liter lightweight backpack is an excellent choice for women as it comes in light colors and travel-friendly features. It packs like a suitcase and for the price, it would be difficult to find a similar product with the same features. It has multiple pockets for easy organization. It also comes with an adjustable laptop sleeve and an expandable sipper to add more load.

The main compartment measures 21X3X13 when not expanded, the perfect size for trips and the best travel carry on backpack for those on a budget. The quality fabric, the pockets and compartments are combined to make it an easy bag to carry.

Final Thoughts

No one bag suits every kind of traveler. When choosing the best carry on backpack for traveling, think about the factors that matter to you, such as the weight, capacity, comfort, expandability, quality of materials and cost. Go with the one that meets your priorities and make sure the downsides are liveable.

So, which factors matter to you?

Partnering with Software Developer

Seeking a Custom Software Development Partner – Things to Consider

Once you’ve decided on using a custom-built application in your business, it is crucial to choose the best firm to assist you in software development. Getting a good partner is not the only thing required for success. It is also necessary to discuss some significant features of you project with software building specialists in order to distinguish whether it will succeed or have a dead end!

There are a lot of companies in the market able to build custom software for you, and failing in choosing the right partner may become a real issue for your business. Considering all the risks associated with this decision, nixsolutions.com has discussed the key aspects to keep in mind when selecting your perfectly suited partner.

Partnering with Software Developer

 

  • Get Your Needs

 

Before to choose a company for software development in your project, determine your business goals and needs, issues you are experiencing, and potential risks you may face as well as other specifics associated with your project. By considering the above aspects, you can understand what kind of software will help to meet your objectives and what features it is to have. Afterwards, you can opt for either an onshore or offshore company depending on the nature of your business and your requirements.

 

  • Getting Referrals

 

Nowadays, it is extremely easy to get a list of relevant companies through the internet. It is not always the best solution to “google” your partners. Instead, it is by far important that you find a firm through inquiries and positive feedback on its services. Thus, when seeking your potential partner company, discuss this with your colleagues and people in your network to get the best options advised by others. This is the only way to get a fair feedback on such companies. As an alternative, you can read some specific discussions in forums and even ask questions on theme-specific social media sites.

 

  • Project Size

 

Not all application development firms can manage projects of all sizes. Some firms are small and capable of taking up only small- or medium-size projects only. Others target exceptionally large and multi-enterprise businesses. That is why it is crucial to discuss the point of the software development company’s capacity prior to signing a contact with them. In terms of capacity and timing, a talk on deadlines will be also of great importance for you.

Obviously, choosing a good firm is the first and perhaps the most important step in your business process. And if you go wrong there, you get poor results that may even lead to the whole project failure. Conducting profound research and getting detailed information on the company you are going to work with is very crucial for the success of your project.Partnering with Software Developer

Why You Should Try Cash for Phones Concept?

Are you looking for some easy way to make cash? Youngsters today are interested in finding better options that can help them earn extra income either using websites like fiverr or some other cool staff. If you have many old mobile phones in your closet and if you are not using them anymore you can sell them as there are many cash for phones options available on the internet. Today, there are many companies that would like you to recycle your cell phones rather than just dumping them away in the garbage. Hence, you have a ready opportunity to make some money that will only make things better for you.

If you are interested in cash for phones you need to start doing some research work on the internet. The first thing you need to look out for is search for forums and discussion sites that can help you to get into the zone and get all the latest updates about how you can earn more income through cash for phones. There are many youngsters that actually look out for old mobile phones from their friends and relatives because they want to make quick money that they can get by selling those old phones.

 

You can find out the websites where you can get the rates of the cell phones and mobile models that you have. There are few sites on the internet where you can type in the model of the mobile you have and it will instantly show you to rate that you can earn by selling that model. Hence, you can always decide if you want to sell that mobile phone or not. Usually people sell off their old mobile phones because they want to get rid of the clutter in their closet and drawer. Since they are already using new mobile phones they do not need old phones that have old features and options.get cash for selling mobile

 

There are many websites available online that also provide you with the list of traders and companies where you can go personally and recycle the phone. You can always find out more about such sites and look for mobile recycle center in your locality. You can type in the zip code information and it will provide you with address and contact information of the mobile recycle center that is close to your residence. You can always visit the center and ensure that you are selling the mobile phone at a good price.

Selling off the old mobile phone is definitely better than dumping it in the yard or in the garbage because you are keeping the environment safe. If you are conscious about the environment problems and if you want to participate in keeping the environment clean you can always go for phone recycling options that can help you earn some extra money and at the same time it will help the global cause. You can find out more information about various companies that handle mobile recycling process and also read about the technologies that they use to recycle the mobile phones.

Top 5 Tips To Increase Facebook Fan Page Likes

Hello Friends After very long time Today I’m Going To Post a Very usefull Article For Bloggers and Facebook Page Managers As I have shared many tips and tricks on facebook in my older post, if you are new here then must check, Have you created a Facebook Fan page but couldn’t able to increase its likes and reach ? Have you tried searching the whole internet for a trick that can increase your Fan page likes at a blazing speed but couldn’t able to find something working?  then do not worry about it, here is best 5 tips for you that you can increase your facebook fan page likes. Well today i want to share some tips that i already used for increasing my facebook fan page likes and  i got 500+ likes in 1 week, and now 20-30% traffic is form facebook as well.

Well, honestly as blogger and as a Facebook App developer, I must tell you that there are a lot many methods available on internet for increasing Facebook page likes, both White Hat and Black Hat methods. The main idea behind creating our brand page at Facebook is to bring targeted traffic to our blog or website.
Now a days almost every one prefer to have a fan page for not only to interact with their fans but to bring more audience to their blog. So today we will going to share How You can Increase your Blog or Website Traffic with your Facebook Brand Page. In My Todays Article all tips are different and will 100% work for you, but you need to follow it with care, you thought i will tell you to post fresh content, share images instead of text, Run contests or use Facebook Adverts? then you are wrong . I have another 5 tips instead of that all things.. so what for waiting? Let’s See

Add jQuery Pop-up Facebook Like Box To Blogger

Its very easy to socially force your visitors to like your Facebook Fan Page.Actually this widget has a unique feature i.e it loads very fast, New jQuery Popup Facebook Like Box is a new Blogger Widget which can help you to increase your Fan page Likes.

Pop-up Facebook Like Box To Blogger
The most beautiful thing in this widget is that you can customize it According to your blog for and you can change the Text “Like us On FB” and even the text “cancel”.Once You added this Widget to Blogger,it will popup when someone land to your Blog and it will Provide a cool look to the reader/visitor of Blog to socially force him for liking your Fan Page

 

Invite Your Friends To Like Your Page

If you’ve recently created a Facebook page for your blog or business, you’re on the right track to grow your audience and get more website traffic from your social media activity.By choosing Invite Friends from the Build Audience menu of your Facebook Page, you can select the friends you want and Facebook will send them an invitation to Like your Page. To get a good start on the amount of people who “like” your Facebook page, you should ask your family, peers and your friends to “Like” your Facebook Page. Your friends support you, they are your advocates and your cheerleaders, and most of them won’t mind sharing Facebook love with you. After all, you’re starting a new endeavor, and hopefully your personal network will be supportive and willing to help.

Insert a Fan Page Like Box in Your Blog

A Facebook “Like Box” on your web site is a good way to increase the number of people who “like” your Facebook Fan page. When we add a Facebook box into our site our fan follow easily our site through Facebook and easily get all update via Facebook.
The best way to get fast likes is to insert Facebook Page like Box in your blog or website. This will increase your likes a lot.

Invite Your Friends To Like Your Page

Ask fans to post a link

Ask all of your current fans to post a link to the fan page on their personal profile. As long as you don’t ask this often, I’ve found that people love to help out. Leverage the power of your existing audience and get results!

Connect with Other Page Managers

Don’t underestimate the value of cross promotion.

Even one cross-promotion a week will help you get a stream of new “likes” with no investment on your part required besides the time it takes to suggest the opportunity to your cross promotion partner. Yes, i also tried it, my one of friend have facebook page with 1 lac+ Indian fans/Likes, i just told him to share my page on their page, then i got many likes for my Facebook Page.

So, this is last and best 5th tip, Now you Can do promote our page on Your Wall and Like It if You Don’t Mind .

6 Ways to Speed up Your PC

If you have had your PC for a long time, you will realize that it is not as fast as it was once. You might be wondering whether you have done something wrong that cause damage to the PC. Frankly speaking, a little change will affect your PC’s performance, and many sorts of different changes cannot be avoided while using computer. Don’t worry! Any questions have method to solve. Before you decide to buy a new PC, here are 6 ways to get you computer up to speed.

6 Ways to Speed up Your PC

1 Defrag Your Hard Drive

In the normal course of using a computer files and folders become fragmented on the hard drive(s). This simply means that files are not located intact in contiguous space but are spread out in bits in different areas of the hard disk. Retrieval and even saving files takes longer and in extreme cases can lead to errors. To improve performance, one should defragment drives as part of routine computer maintenance. Depending on the size of your hard disk it could take a long time to run the utility. I suggest you do this before you go to bed to let it run overnight.

2 Uninstall Programs That You No Longer Use

By uninstalling programs that you no longer use, you will free up great amount of hard disk space enabling your computer to run faster. Most programs come with their own uninstall utility. Alternatively, you can un-install any programs by visiting your “Control Panel” and select “Add & Remove Programs.” Then browse through which programs you no longer use from the list and choose “un-install”.

3 Clear Your Internet Cache

The purpose of internet cache is to enhance your browsing speeds. With this cache, your browser will no longer have to download each visit, because they are already on the hard disk. These cached files therefore accelerate navigation (especially if you visit several times the same page). However, storage of cached files take up space on your disk. Sometimes it could contain harmful virus. Thus, you should clear your internet cache.

4 Shut down unnecessary programs

5 Reformat and Reinstall Your Operating System

This would be the last resort, but it is also my favorite way to speed up your computer. Yes, it can be very time consuming. First you would need to back up all of your data on an external drive or it could be on the same hard disk if it was partitioned into 2 separate drives. Just don’t copy it onto your C:\ drive as usually it’s the drive that contains your operating system and it will be wiped out when you reinstall the OS.

6 Run a Registry Cleaner

With time growing, your Windows registry will be filled with junk and invalid keys as well as remnant of programs you may be have uninstalled. These things cause your PC to start up slowly and could be the main reason of your computer’s poor performance.

A good registry cleaner will repair your Window registry by precisely removing those junk files, invalid keys and remnant of programs. What’s more, a good registry can perfectly complete all the tasks above, such as defrag your hard drive, uninstall programs that you no longer use, clear your internet cache and so on.

If you have done the previous 5 steps and till not see a boost in your PC’s performance then the last step will definitely make you see the light. It is time for you to find an appropriate registry cleaner to ensure your PC stability. Click here to get an easy fix and a free scan for your computer with the best registry cleaner software on market today.

Why Get Your Very Own Online Gambling Business (It’s All About The Money)

Everyone knows online casinos and internet gambling are perhaps the most profitable web entrepreneur activity. Saying that web casinos and betting platforms pay off with HUGE money is simply saying the obvious.

Year after year, Americans and Europeans alike prefer online poker, roulette or fantasy football portals to classic land-based establishments. What are the reasons behind such choice?

  • Instant availability
  • Vast selection of various games beneath one roof
  • Mobile compatibility and portability
  • Free arcade machines, poker rooms and roulette tables purely for game’s sake
  • Possibility to make really small bets if you like, as well as play all-in style
  • Social integration which is the latest trend of the couple of recent years

Today online casino is the synonym of money. Together with an Asian market, this business is the golden mine for both a webmaster with just one or two casino sites and an industry mogul running a whole chain of roulette, betting and fantasy sports web venues.

Why Get Your Very Own Online Gambling Business (It’s All About The Money)

Benefits of being into e-casino industry

The key difference between a land-based and online casino is the following – when the first serves a couple thousands of people a day, an internet casino can serve… millions. Plus, there’re no expenditures on keeping the venue tidy and well-appareled, you don’t have to pay wages to cleaning managers or bouncers. Expenditures are cut, revenues are enlarged!

Another great thing is, income starts flowing to your bank account within 48 hours. If all members of an equation such as promo, marketing, affiliate program, SEO, SMM, server configuration and billing are tuned in a correct fashion, profits will be quick to arrive. To make sure things play as you expect, contract EvenBetGaming.com which is a well-known casino software provider. Choose the deal that fits your goals and roll out a ready-to-operate e-gambling product within a day or two.

On the contrary, setting up a land-based casino venue is a real-deal hassle. Getting a land for construction, settling legal matters regarding casino business in the area, hiring construction personnel, tax issues, attracting visitors, buying beverages – this is simply a nightmare which altogether takes months, if not years until your establishment begins operating and bringing at least some profit.

Another thumb up in favor of e-gambling is that besides casinos you can get into betting, fantasy football, social networking and affiliating with other industry players. In other words, your sources of income can be diverse and on top of what’s trendy these days. With a scalable system architecture obtained from a dependable provider you could create new gambling products from available source code without a hitch.

Not without a flaw

There’re a couple of downturns you might face when making business with online casinos. First and foremost, you have to be some sort of Jack-of-All-Trades, if you’re a webmaster having a couple of sites under your supervision. You’ll have to code, promote in search engines, follow the latest trends in viral marketing, keeping an eye on social network engagement, watch customer retention, etc.

Although you can always land a dedicated team from your software provider to do coding, support and maintenance for you, that’s an extra outcome item which nevertheless is worth the candle when your product grows bigger and two hands aren’t enough to take care of all the intricacies.

Another tricky thing is, you need to register a domain for your online casino. Unfortunately, not all countries have a lenient legislation regarding this type of entrepreneurship. That’s why you’ll have to study the law regarding the matter and look for best places to register a domain. As for the rest, online casinos and gambling online in general are a crock of gold.

It Service in dubai – ItRepair.ae

It Service in Dubai -It really hurts when you lovely mobile , or your working Dell laptop suddenly stops, working. It may the situation that your mobile is broken,  probably the screen is broken, now you are miles away from playing you favourite game. Mobile phone have become a part human life, and living a single day without mobile phone is becoming harder and harder.

 

 

In same manner office working guys will love their computers, laptops on which they working, and once they broker, or gets some sort of damage, it really hurts .

mobile repairing

In this situation who can feel you pain, well know you do not have to worry at all, because today i am going to reveal a very important compay’s name if you are living in Arab Emirates.

ItRepair.ae is one of the finest company working in Dubai. Providing quality services in major fields such as mobile repairing, tablet repairing, computer repairing, Ipad, iPhone, and other accessories repair service.

Frankly speaking in Dubai , find  mobile repair service not that much easy, But thanks got we got a very nice and decent support form the company that is called ItRepair.ae

IT repair Providing It Service in Dubai

I have had experience with company, hey have got a very nice support team, i am sure if you get a chance of repair you gadget , you will be happily have you gadget repaired, in well mannered, without worrying at all, they are the professionals in all the repairing stuff.

They will provide you every detail, and best alternative to your problems. So now you are lucky to have such a repairing service at your area.

So visit their website and know how they can help you in repairing any of the gadget that you may want to repair. After all you love what you are using . http://www.itrepair.ae

 

 

1

The Advantages of Blogging for Small Businesses

The Advantages of Blogging for Small Businesses: Blogging is perhaps one of the cheapest, easiest and most effective marketing tools available for small businesses. They reap many benefits, especially in terms of search engine optimization (SEO), hence helping businesses increase their rankings. But, that’s not all. Blogging also plays an important role in developing customer-business relationship. In fact, 36% of US adults think more positively about companies that blog and 77% of all adults research online before purchasing a product or service. To understand more, let’s take a look at a few benefits of blogging for small businesses.

blogging to improve you business

Develops Relationships with Customers

Marketing is all about getting people to know about your business. Therefore, why sit around all day in your office, when you can share all your wonderful and creative ideas with your potential and existing customers? Blogging is a great way to reach large numbers of people and develop relationship and trust with potential customers. This is mainly because it allows you to connect to your site visitors. Therefore, by posting quality blogs about your industry, your business, and customers, you will gain a boost in web traffic, thus increasing the chance of conversions.

Positions You as an Expert in the Field

Blogging gives you the opportunity to show the world how much you know about your industry and business. It is a way to tell potential customers that you understand them; you can fulfill their needs, and solve their problems. Therefore, by sharing facts, tips, and advice and telling stories you aren’t only developing strong relationships, but you are also demonstrating that you are an authority in your field. And, this proves incredibly useful in boosting web traffic, thus enhancing your overall sales.

Boosts Search Engine Optimization

Google and other search engines love fresh content, the same way we do as humans. We don’t want to read outdated content and neither search engines. Therefore, every time you post fresh content, it’s like Google’s site-crawling robots get hyped up on Red Bull jumping up and down cheering, “New content, New Content!” Saying so, what better way to provide frequent content than with blogs? The more you post, the more authoritative your site becomes, thus boosting your visibility on search engine result pages (SERPS).

Connects People to Your Brand

There is no better way to get people engaged to your site than by writing thoughtful and provocative blogs. You can even use your blogs as a research process to learn more about your potential customers. Provide sharing options to viewers, ask questions, and invite people to comment and offer their views and opinions on the subjects. This way more people will connect to your brand, thus helping businesses learn what’s missing in their industry. Even if customers don’t post comments, they have clicked on a link somewhere which means you have already engaged them.

Feedback – Both Bad and Good

Last, but not the least, blogging provides businesses the opportunity to gain valuable feedback regarding their products and services. Therefore, the feedback obtained helps businesses focus on ways to improve their business and remove potential faults that lead to loss of viewers. This will automatically takes your business graph up.

1

Android: Displaying data in listView fetched from a webservice

 Displaying data in listView fetched from a webservice

Description: In this tutorial, we learn how to fetch images from web service and display those images in a list view. This all processes include concepts such as URL connection, Parsing data, Panel java objects, Adapters.

Introduction:

Android mobile application is no doubt one of the most interesting fields when it comes to  application development. Often working with android application development, you will have to fetch data from an online server and display that in your app to be presented to the user. Since mobile application have limited, resources we would need a connection to online server in order fetch the necessary data that is intended to be presented in an android application.

Web services are made in programming languages such as PHP, ASP.net or other web development languages. Android application using any web service primary goal is to fetch data, and display it accordingly. Web services are no thing, but data providers this data can be text, images etc.

Let me give you an example, suppose i make a server script page, that comprises of the following code.

 

Before we start any sort of programming stuff, let’s have a look at the basic architecture that will make you familiar with how things work.

fetch data from webservice to listview

The basic architecture we will be learning in this tutorial (we make an android application that will perform the task) is shown above.

Screen Shots 

Here are screen shots that will let you know, what will be our end result once we apply all of the code mentioned in this tutorial. The first screen shot show how our home screen will look like containing a welcome message and button to fetch data. The second screen shot Fetch activity containing a list view with data that is retrieved from a web service.

Android webservice and listview

populate list view from webservice

 

Android application:

The android applications we build in this tutorial consist of simply two activities and some other java classes.

  • Home screen (MainActivity) with button to fetch data.
  • java activity (that contains list view to display fetched data from the web url)
  • Inner AyscTask class
  • Class for HTTP connection
  • Class for Data
  • Adapter Class

 

Download the complete source code here to test your self.

Home Screen (MainActivity.java)

Our home screen java class contains code that responds to the onclick event. Once the button is clicked, we will be prompted to the fetch.jav activity. Plus we have a textview that displays a welcome message.

main_activy.xml


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"

android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"

android:paddingRight="@dimen/activity_horizontal_margin"

android:paddingTop="@dimen/activity_vertical_margin"

android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"

android:background="#FFBB00">

 

<TextView android:text="Welcome to FetchDATA App" android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:textSize="30sp"

android:id="@+id/textView" />

 

<Button

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:text="New Button"

android:id="@+id/button"

android:layout_marginTop="56dp"

android:layout_below="@+id/textView"

android:layout_alignParentLeft="true"

android:layout_alignParentStart="true" />

</RelativeLayout>

MainActivty.java

Here is the code for home screen of our application.


package com.example.khan_pti.mfetchdata;

import android.content.Intent;

import android.support.v7.app.ActionBarActivity;

import android.os.Bundle;

import android.view.Menu;

import android.view.MenuItem;

import android.view.View;

import android.widget.Button;

public class MainActivity extends ActionBarActivity {

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

Button b = (Button)findViewById(R.id.button);

b.setOnClickListener( new View.OnClickListener() {

@Override

public void onClick(View view) {

startActivity(new Intent(getBaseContext(),Fetch.class));

}

});

}

@Override

public boolean onCreateOptionsMenu(Menu menu) {

// Inflate the menu; this adds items to the action bar if it is present.

getMenuInflater().inflate(R.menu.menu_main, menu);

return true;

}

@Override

public boolean onOptionsItemSelected(MenuItem item) {

// Handle action bar item clicks here. The action bar will

// automatically handle clicks on the Home/Up button, so long

// as you specify a parent activity in AndroidManifest.xml.

int id = item.getItemId();

//noinspection SimplifiableIfStatement

if (id == R.id.action_settings) {

return true;

}

return super.onOptionsItemSelected(item);

}

}

 

Fetch.java class

The next class in our list is Fetch.java  that contains the main functionality of our application. When the user clicks on the button on the home screen, fetch.java activity will be prompted, and our background task that is explained below will be executed. Once the data is fetched from the server from using http URL connection we simply parse the data, store in in list array, and then populate our list view with data.

fetch.xml

Here is the xml representation of the fetch.java class, you clearly see, it contains list view.


<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent" android:layout_height="match_parent">

 

<ListView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:id="@+id/listView"

android:layout_alignParentBottom="true"

android:layout_alignParentLeft="true"

android:layout_alignParentStart="true" />

</RelativeLayout>

Fetch.java


package com.example.khan_pti.mfetchdata;

import android.app.Activity;

import android.os.AsyncTask;

import android.os.Bundle;

import android.text.method.ScrollingMovementMethod;

import android.util.Log;

import android.widget.ListView;

import android.widget.TextView;

import org.json.JSONArray;

import org.json.JSONException;

import org.json.JSONObject;

import java.net.HttpURLConnection;

import java.util.ArrayList;

/**

* Created by khan-pti on 30/03/2015.

*/

public class Fetch extends Activity {

ArrayList<Flowers> flowersList = new ArrayList<Flowers>();

String url ="http://services.hanselandpetal.com/feeds/flowers.json";

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.fetch);

new BackTask().execute(url);

}

public class BackTask extends AsyncTask<String,String,String>{

@Override

protected void onPreExecute() {

super.onPreExecute();

}

@Override

protected String doInBackground(String... strings) {

String content =HttpULRConnect.getData(url);

return content;

}

@Override

protected void onPostExecute(String s) {

try {

JSONArray ar = new JSONArray(s);

for (int i=0; i<ar.length(); i++){

JSONObject jsonobject = ar.getJSONObject(i);

Flowers  flowers = new Flowers();

flowers.setName(jsonobject.getString("name"));

flowersList.add(flowers);

}

}

catch (JSONException e){

e.printStackTrace();

}

FlowerAdapter adapter = new FlowerAdapter(Fetch.this, R.layout.flowers_list_items, flowersList);

ListView lv = (ListView) findViewById(R.id.listView);

lv.setAdapter(adapter);

//Log.d("recived",s);

}

}

}

 

Flower_List_item.xml

Please note our list view will need another xml layout file that will specify how the items are placed in each row of the list. Since in this example we only want to mention the name of the flower, therefore we require single text view to show the name of the flowers.

 


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent" android:layout_height="match_parent">

<TextView

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:textAppearance="?android:attr/textAppearanceMedium"

android:text="Medium Text"

android:id="@+id/textView3" />

</LinearLayout>

 

Explaination to Android AsyncTask Class:

In android programming, each activity runs on its main thread. That means the UI elements etc. run on the main thread of the activity. An android programmer should take care of this main thread , and should never freeze the main thread for so long that it is discarded by the android operating system.

What about long running tasks, how they should be performed, well to perform long running, task that last for few seconds, android provides a class that is called, Asynctsak class.

You may be thing, why don’t we use, the java threads, etc. that is because, when we deal with threads, we would not be able to access the android UI elements, to overcome this problem, and similar android has a special type of class know as AysncTask.

Android AsyncTask can be used as an inner class, and usually contains three overridden methods that are of most important.


@Override

protected void onPreExecute() {

//method is Before Starting Background thread/task

//starts progress bar

}

@Override

protected String doInBackground(String... params) {

//Background task running

&nbsp;

return "Task complete";

}

@Override

protected void onPostExecute(String result) {

//stop progress bar

//Method is used after task completed, update UI compenents

}

&nbsp;



<strong>Json Parser:</strong>

In Fetch.java class with in our inner class, onPostExecute() method the data is parsed, and then added to the flower list. Since we get the data in json array , we will need to first parse the data, in order to use it .



try {

JSONArray ar = new JSONArray(s);

for (int i=0; i&lt;ar.length(); i++){

JSONObject jsonobject = ar.getJSONObject(i);

Flowers  flowers = new Flowers();

flowers.setName(jsonobject.getString("name"));

flowersList.add(flowers);

}

}

catch (JSONException e){

e.printStackTrace();

}

Explanation to the code:

Make a new instance of JSONArray (), Passing the data received as an argument. Use loop to access each object, which can be used by instance of Flowers class and eventually we add the Flower’s object flowers to the FlowerList.

 

Flower Adapter class:

Flower Adapter class it used in order to fetch data from the Fetch.java class and inflate data into the listview the way we want. We have created our own custom Adapter class .


package com.example.khan_pti.mfetchdata;

import android.content.Context;

import android.view.LayoutInflater;

import android.view.View;

import android.view.ViewGroup;

import android.widget.ArrayAdapter;

import android.widget.TextView;

import java.util.ArrayList;

/**

* Created by khan-pti on 01/04/2015.

*/

public class FlowerAdapter extends ArrayAdapter<Flowers> {

private  ArrayList<Flowers> items;

private Context mContext;

public FlowerAdapter(Context context, int textViewResourceID, ArrayList<Flowers> items){

super(context,textViewResourceID,items);

mContext = context;

this.items = items;

}

@Override

public View getView(int position, View convertView, ViewGroup parent) {

View v = convertView;

Flowers flowers = items.get(position);

if(v==null){

LayoutInflater inflater =(LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);

v=inflater.inflate(R.layout.flowers_list_items,null);

}

TextView title = (TextView)v.findViewById(R.id.textView3);

if (title != null) {

title.setText(flowers.getName());

}

return v;

}

}



Explanation to code:

We create our own adapter class that extends ArrayAdapter, with data type of our Flower class.

The constructor gets parameters that are passed with instance of FlowerAdapter .



public class FlowerAdapter extends ArrayAdapter<Flowers> {

private  ArrayList<Flowers> items;

private Context mContext;

public FlowerAdapter(Context context, int textViewResourceID, ArrayList<Flowers> items){

super(context,textViewResourceID,items);

mContext = context;

this.items = items;

}

getView is the method, where we inflate the data into each of the row of our listview.


public View getView(int position, View convertView, ViewGroup parent) {

View v = convertView;

Flowers flowers = items.get(position);

if(v==null){

LayoutInflater inflater =(LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);

v=inflater.inflate(R.layout.flowers_list_items,null);

}

TextView title = (TextView)v.findViewById(R.id.textView3);

if (title != null) {

title.setText(flowers.getName());

}

return v;

}


 

Class for data model:

Now in this example we are going to make a class that will contain private members based on the the data we recive from the json URL. In our example we are getting data for flowers.

The data come with key value pairs, we need to make our containing private members for keys.I will be only including the names of the flowers to make it short, and easy for you.

In your case, what ever data you are getting you may do it accordingly.

Flowers.java


package com.example.khan_pti.mfetchdata;

/**

* Created by khan-pti on 30/03/2015.

*/

public class Flowers {

public String getName() {

return name;

}

public void setName(String name) {

this.name = name;

}

private String name;

}


Http URL Connection

Here we could use http client connection as well, but since android development team recommends using http URL connection, therefore we use URL connection method to connect to the server. Secondly http client is no more updated, where as http URL connection will be updated further since android development team is working on this.

HttpURL.java


package com.example.khan_pti.mfetchdata;

import android.util.Log;

import java.io.BufferedReader;

import java.io.IOException;

import java.io.InputStreamReader;

import java.net.HttpURLConnection;

import java.net.URL;

public class HttpULRConnect {

public static String getData(String uri){

BufferedReader reader = null;

try {

URL url = new URL(uri);

HttpURLConnection con = (HttpURLConnection) url.openConnection();

StringBuilder sb = new StringBuilder();

reader = new BufferedReader(new InputStreamReader(con.getInputStream()));

Log.d("testhtt2","test");

String line;

while ((line= reader.readLine())!=null) {

sb.append(line+"\n");

}

Log.d("test44", sb.toString());

return sb.toString();

} catch (Exception e) {

// TODO: handle exception

e.printStackTrace();

return null;

}

finally{

 

if (reader!=null) {

try {

reader.close();

} catch (IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

return null;

}

 

}

}}}

 


 

Android Manifest file:

In end here is the manifest file, don’t forget adding permission of using internet, without this your application will not work. We don’t have much to do, here accept for couple of lines added for permission, and declaring activity, in our case Fetch Activity.

 


<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="com.example.khan_pti.mfetchdata" >

<uses-permission android:name="android.permission.INTERNET" />

 

<application

android:allowBackup="true"

android:icon="@mipmap/ic_launcher"

android:label="@string/app_name"

android:theme="@style/AppTheme" >

<activity

android:name=".MainActivity"

android:label="@string/app_name" >

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />

</intent-filter>

</activity>

<activity android:name=".Fetch"></activity>

</application>

 

</manifest>


 

 

 

Conclusion:

Most of the android application, uses Listview, plus json, to fetch data .Most of the application rely on online server, in order fetch data, authenticate in fact application need to be connected to internet all the time to get user the latest updates. It is therefore on the most important topic that each and every programmer should know to develop an efficient android application. In this tutorial we have simply shown a text in the listview, where this can be further enhanced by adding images , and other text views to make it more complex and more informative. One can also add progress bar that can be set to visible in the onPreExecute () method, where as can be set invisible onPostExecute (). This can be one good enhancement.

Secondly we have no mechanism , about what happen when the user clicks on the listview items, while making android application you will obviously take care of that, you will only need to implement onclickListner that is it nothing else.

From here now, you can start looking to learn fragments, how to use fragments in list, view, and fragments providing best re usage and other advanced topics that will help you have quality application programmed.

At the conclusion I hope, you have learned some thing useful in this tutorial please let me know about you thoughts.

 

1 2 3 14