Skip to content Skip to sidebar Skip to footer

How To Get Result Data From Android Native Calculator

I'm invoking android native calculator from my app, how do i get result data from it.. means i started native calender like this, after finishing calculation i press back onActivit

Solution 1:

Start it:

Intenti=newIntent();
i.setClassName("com.android.calculator2",
"com.android.calculator2.Calculator");

Then the Calculator Acitivity should use setResult(RESULT_SUCESS, simple_intent_with_result_as_extra)

When the Calculator Activity Exits, the onActivityResult will be called on your original Activity with that Intent you passed earlier.

Post a Comment for "How To Get Result Data From Android Native Calculator"