Pass data using Intent & bundle need to convert to int

I'm trying to pass data to another activity, but after passing it I want to convert it to int is there a way to do that.

This my code:

Intent intent = getIntent();

    Bundle bundle = intent.getExtras();

    if(bundle != null) {

        checker.setText(bundle.getString("temperature"));
        String checkerHolder = checker.getText().toString();

        int finder = Intent.parseIntent(checkerHolder);

    }

The "checkerHolder" is the problem here look at the pic:

Any idea ?

Answers


replace this line

int finder = Intent.parseIntent(checkerHolder);

with below one

    int finder = Integer.parseInt(checkerHolder);

Need Your Help

What real purpose does $.noop() serve in jQuery 1.4?

javascript jquery jquery-1.4 noop

Pouring over the release notes regarding jQuery 1.4, I came acrosss $.noop() which is:

DB2 Table C UDF DBINFO and SQLUDF_TRAIL_ARGS

c db2

I am currently implementing a C Table UDF and I want to make use of both SQLUDF_CALL_T (it is included in the SQLUDF_TRAIL_ARGS) and the structure dbinfo. Is this possible?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.