When I launch my application, I display a splash screen. This page is shown for 10 seconds, works in a stream.
When it switches to a new action with the result, I want to click the URL on the server and I will get a return value that I can use for my further tools.
Here is my code:
private final int SPLASH_DISPLAY_LENGHT = 1000; new Handler().postDelayed(new Runnable() { @Override public void run() { Log.e("Handler ","run"); Intent myIntent = new Intent(getApplicationContext(), CaptureActivity.class); startActivityForResult(myIntent, imgDL); finish(); } }, SPLASH_DISPLAY_LENGHT); public void onActivityResult(int requestCode, int resultCode, final Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == imgDL) { Log.e("onActivity Result",""); urlHitMethod("http://XXXXXXXXXXXXXXXXXX.com/banner_scan"); } }
But here onActivityResult not called. How to fix it?
android android-activity result onactivityresult
Siva k
source share