margret Well-Known Member Licensed User Longtime User Sep 9, 2011 #1 Hello, Can anyone show what this intent should be written like in B4A? I need the same action as this intent but written in B4A: Code: Copy import android.content.Intent; Intent i = new Intent(); i.setAction( "com.bn.sdk.shop.details" ); i.putExtra( "product_details_ean" , "2940043350251" ); startActivity( i ); Thanks, Margret
Hello, Can anyone show what this intent should be written like in B4A? I need the same action as this intent but written in B4A: Code: Copy import android.content.Intent; Intent i = new Intent(); i.setAction( "com.bn.sdk.shop.details" ); i.putExtra( "product_details_ean" , "2940043350251" ); startActivity( i ); Thanks, Margret
thedesolatesoul Expert Licensed User Longtime User Sep 9, 2011 #2 I am a bit unsure though. Code: Copy Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN, "") Intent1.SetComponent("com.bn.sdk.shop.details") Intent1.PutExtra ( "product_details_ean" , "2940043350251") StartActivity(Intent1) Upvote 0
I am a bit unsure though. Code: Copy Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN, "") Intent1.SetComponent("com.bn.sdk.shop.details") Intent1.PutExtra ( "product_details_ean" , "2940043350251") StartActivity(Intent1)
margret Well-Known Member Licensed User Longtime User Sep 9, 2011 #3 Convert Intent Hello Thanks for the help. I had all ready had the code below and it kinda works? It's not working right. Your code does about the same. I am still missing something and I am not quite sure what it is. I used ADB and listed the files on the device and I don't see com.bn.sdk.shop.details. I am not sure it should be there or if it is at the web site shop this is calling. Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW, "") i.SetComponent("com.bn.sdk.shop.details") i.putExtra("product_details_ean", "2940043350251") StartActivity(i) Thanks, Margret Upvote 0
Convert Intent Hello Thanks for the help. I had all ready had the code below and it kinda works? It's not working right. Your code does about the same. I am still missing something and I am not quite sure what it is. I used ADB and listed the files on the device and I don't see com.bn.sdk.shop.details. I am not sure it should be there or if it is at the web site shop this is calling. Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW, "") i.SetComponent("com.bn.sdk.shop.details") i.putExtra("product_details_ean", "2940043350251") StartActivity(i) Thanks, Margret
thedesolatesoul Expert Licensed User Longtime User Sep 9, 2011 #4 Should be a package with that name in /data/app. What is it supposed to do? Upvote 0
margret Well-Known Member Licensed User Longtime User Sep 9, 2011 #5 What it does This is what I ended up with and it works great. Just thought I would update if anyone is was looking for similar: Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW,"") i.Action = "com.bn.sdk.shop.details" i.putExtra("product_details_ean", "2940043350251") StartActivity(i) Thanks, Margret Last edited: Sep 9, 2011 Upvote 0
What it does This is what I ended up with and it works great. Just thought I would update if anyone is was looking for similar: Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW,"") i.Action = "com.bn.sdk.shop.details" i.putExtra("product_details_ean", "2940043350251") StartActivity(i) Thanks, Margret