[TOC]
How to use Context correctly in android.
As following we understood, subclasses of Context are Activity, Service, Application, ...etc.
When develope the web app in Android, you have to customize all of the function by yourself; otherwise, they don't work.
We should implement three classes for handling various actions you need.
[TOC]
public class MyActivity extends Activity { | |
public static final int INPUT_FILE_REQUEST_CODE = 5568; | |
@Override | |
protected void onActivityResult(int requestCode, int resultCode, Intent data) { | |
super.onActivityResult(requestCode, resultCode, data); | |
if (RESULT_OK == resultCode) { | |
switch (requestCode) { | |
case INPUT_FILE_REQUEST_CODE: |