jinyistudio Well-Known Member Licensed User Longtime User May 8, 2020 #1 Hi How can i lunch b4a_bridge in the android thing with adb command ?
JohnC Expert Licensed User Longtime User May 8, 2020 #2 The package name for B4A-Bridge is: anywheresoftware.b4a.b4abridge adb shell am start -n com.package.name/com.package.name.ActivityName Upvote 0
The package name for B4A-Bridge is: anywheresoftware.b4a.b4abridge adb shell am start -n com.package.name/com.package.name.ActivityName
jinyistudio Well-Known Member Licensed User Longtime User May 8, 2020 #3 JohnC said: The package name for B4A-Bridge is: anywheresoftware.b4a.b4abridge adb shell am start -n com.package.name/com.package.name.ActivityName Click to expand... Can you give me example ? I don't know how to use it. Upvote 0
JohnC said: The package name for B4A-Bridge is: anywheresoftware.b4a.b4abridge adb shell am start -n com.package.name/com.package.name.ActivityName Click to expand... Can you give me example ? I don't know how to use it.
DonManfred Expert Licensed User Longtime User May 8, 2020 #4 jinyistudio said: Can you give me example ? Click to expand... He already did jinyistudio said: I don't know how to use it. Click to expand... Open a commandline prompt and use adb. You can NOT use adb from an android app. Upvote 0
jinyistudio said: Can you give me example ? Click to expand... He already did jinyistudio said: I don't know how to use it. Click to expand... Open a commandline prompt and use adb. You can NOT use adb from an android app.
jinyistudio Well-Known Member Licensed User Longtime User May 8, 2020 #5 adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.ActivityName but always give me "Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.ActivityName} does not exist." Upvote 0
adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.ActivityName but always give me "Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.ActivityName} does not exist."
DonManfred Expert Licensed User Longtime User May 8, 2020 #6 jinyistudio said: but always give me "Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.ActivityName} does not exist." Click to expand... sure. There is no such ActivityName in the Bridge. try adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.Main or adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.main Upvote 0
jinyistudio said: but always give me "Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.ActivityName} does not exist." Click to expand... sure. There is no such ActivityName in the Bridge. try adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.Main or adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.main
jinyistudio Well-Known Member Licensed User Longtime User May 8, 2020 #7 main or Main => Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.MAIN} does not exist. Upvote 0
main or Main => Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.MAIN} does not exist.
JohnC Expert Licensed User Longtime User May 8, 2020 #9 jinyistudio said: main or Main => Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.MAIN} does not exist. Click to expand... You forgot to include b4a in Don's second method that had a lower case .main: adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.main The above works for me. Upvote 0
jinyistudio said: main or Main => Error: Activity class {anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.bridge.MAIN} does not exist. Click to expand... You forgot to include b4a in Don's second method that had a lower case .main: adb shell am start -n anywheresoftware.b4a.b4abridge/anywheresoftware.b4a.b4abridge.main The above works for me.
jinyistudio Well-Known Member Licensed User Longtime User May 8, 2020 #10 sorry, i type bad word. it is ok. but devices give me "please allow B4A-Bridge to install applications" and B4A cann't connect it. my version is v2.62 Upvote 0
sorry, i type bad word. it is ok. but devices give me "please allow B4A-Bridge to install applications" and B4A cann't connect it. my version is v2.62
DonManfred Expert Licensed User Longtime User May 8, 2020 #11 jinyistudio said: please allow B4A-Bridge to install applications Click to expand... You are forwared to the settings then. Allow b4bridge in this setting then..... At least this happens when starting B4ABridge the normal way. B4ABridge does a check and foward the user to the setting where the user need to define the permission manually. If this does not happen using adb then you need to go to the setting manually and give b4abridge the correct permission (to install a app/apk). Last edited: May 8, 2020 Upvote 0
jinyistudio said: please allow B4A-Bridge to install applications Click to expand... You are forwared to the settings then. Allow b4bridge in this setting then..... At least this happens when starting B4ABridge the normal way. B4ABridge does a check and foward the user to the setting where the user need to define the permission manually. If this does not happen using adb then you need to go to the setting manually and give b4abridge the correct permission (to install a app/apk).
JohnC Expert Licensed User Longtime User May 8, 2020 #12 Just curious, why did you want to start the B4A-Bridge app using ADB (in your OP) and not do it manually? Upvote 0
Just curious, why did you want to start the B4A-Bridge app using ADB (in your OP) and not do it manually?
jinyistudio Well-Known Member Licensed User Longtime User May 9, 2020 #13 I am use android thing first time. because i don't how to use b4abridge like android(just click it). I use android console building this image and i have add b4abridge app and give it full permission. Because it no any icon when i boot it so i don't konw how to lunch b4abridge. I can only start B4ABridge manually with ADB Last edited: May 9, 2020 Upvote 0
I am use android thing first time. because i don't how to use b4abridge like android(just click it). I use android console building this image and i have add b4abridge app and give it full permission. Because it no any icon when i boot it so i don't konw how to lunch b4abridge. I can only start B4ABridge manually with ADB
Erel B4X founder Staff member Licensed User Longtime User May 10, 2020 #14 You shouldn't use B4A-Bridge with Android Things. You need to use ADB. See the tutorial. Upvote 0