zekigultekin Member Licensed User Longtime User May 23, 2014 #1 Hi. how can i convert this java code to basic Intent intent = new Intent("android.intent.action.SEND"); // set intent to call ANPR SDK intent.addCategory("android.intent.category.DEFAULT"); intent.setComponent(new ComponentName("com.birdorg.anpr.sdk.simple.camera", "com.birdorg.anpr.sdk.simple.camera.ANPRSimpleCameraSDK")); Click to expand... i write like this plakasdk.Initialize(plakasdk.ACTION_VIEW,"com.birdorg.anpr.sdk.simple.camera") plakasdk.Initialize("com.birdorg.anpr.sdk.simple.camera","") plakasdk.AddCategory("android.intent.category.DEFAULT") StartActivity(plakasdk) Click to expand... but it returned "No activity found to handele intent"
Hi. how can i convert this java code to basic Intent intent = new Intent("android.intent.action.SEND"); // set intent to call ANPR SDK intent.addCategory("android.intent.category.DEFAULT"); intent.setComponent(new ComponentName("com.birdorg.anpr.sdk.simple.camera", "com.birdorg.anpr.sdk.simple.camera.ANPRSimpleCameraSDK")); Click to expand... i write like this plakasdk.Initialize(plakasdk.ACTION_VIEW,"com.birdorg.anpr.sdk.simple.camera") plakasdk.Initialize("com.birdorg.anpr.sdk.simple.camera","") plakasdk.AddCategory("android.intent.category.DEFAULT") StartActivity(plakasdk) Click to expand... but it returned "No activity found to handele intent"
Erel B4X founder Staff member Licensed User Longtime User May 23, 2014 #2 Please use [ code ] [ /code ] tags (without spaces) when posting code. Code: Copy Dim i As Intent i.Initialize(i.ACTION_SEND, "") i.AddCategory("android.intent.category.DEFAULT") i.SetComponent("com.birdorg.anpr.sdk.simple.camera/.ANPRSimpleCameraSDK") StartActivity(i) Upvote 0
Please use [ code ] [ /code ] tags (without spaces) when posting code. Code: Copy Dim i As Intent i.Initialize(i.ACTION_SEND, "") i.AddCategory("android.intent.category.DEFAULT") i.SetComponent("com.birdorg.anpr.sdk.simple.camera/.ANPRSimpleCameraSDK") StartActivity(i)
zekigultekin Member Licensed User Longtime User May 23, 2014 #4 but how can i feed back intent value ? i used this Code: Copy Sub Activity_Resume Dim In As Intent In = Activity.GetStartingIntent If In <> Null Then If In.HasExtra("RESULT_OK") Then EditText2.Text=In.GetData End If End If End Sub i couldnt take value Upvote 0
but how can i feed back intent value ? i used this Code: Copy Sub Activity_Resume Dim In As Intent In = Activity.GetStartingIntent If In <> Null Then If In.HasExtra("RESULT_OK") Then EditText2.Text=In.GetData End If End If End Sub i couldnt take value
Erel B4X founder Staff member Licensed User Longtime User May 23, 2014 #5 You should make your questions more accurate next time... You should use startActivityForResult in this case: Using StartActivityForResult with JavaObject Upvote 0
You should make your questions more accurate next time... You should use startActivityForResult in this case: Using StartActivityForResult with JavaObject