Android Question [SOLVED] [B4A] installing time very large

sirjo66

Well-Known Member
Licensed User
Longtime User
Hi folks,
I downloaded "Camera2" Erel example from https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/
Then I connected a smartphone to PC (via USB cable) and press F5.
In attachment the screenshot.
I don't like 68 seconds for to install in my smartphone (the APK file is 4.7 MB, very small)
I tried "clean project", I tried disconnect, reconnect, delete adbkey and adbkey.pub files for to ask again RSA key, but no solution.
So, I tried to use and old smartphone with Android 8 and 16 GB (very slow smartphone) and the time was 35 seconds (very well for an old phone)
I think that the problem is the smartphone, but what can I do ?
My main smartphone has 128 GB (83 GB free), Android 12, and I use an app for "to clean" the smartphone every day (app by samsung).
Any idea about it ??
Many thanks
Sergio
 

Attachments

  • Immagine.png
    Immagine.png
    20.2 KB · Views: 51

sirjo66

Well-Known Member
Licensed User
Longtime User
I tried with B4A-Bridge.
For IDE to phone very very fast (about your screenshot), but then on phone time for to install: 51 seconds.
(and I need to click three times on phone, and I don't like so much.)
Why with the USB cable is so slow ??
 
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
I tried to update B4A, SDK, changed USB cable and used another PC
No change

Edit: I updated also "Samsung USB driver mobile", no change
 

Attachments

  • Immagine.png
    Immagine.png
    17.4 KB · Views: 38
Last edited:
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
SOLVED !!!!!!
In the DEBUG settings of the Samsung smartphone, you need to uncheck "Check applications with USB"
See attachment: before was 60 sec, now 1.77 sec
 

Attachments

  • Immagine.png
    Immagine.png
    17.4 KB · Views: 44
Upvote 0

CaptKronos

Active Member
Licensed User
Longtime User
SOLVED !!!!!!
In the DEBUG settings of the Samsung smartphone, you need to uncheck "Check applications with USB"
See attachment: before was 60 sec, now 1.77 sec
I have never come across that setting before. It does indeed make installation a lot faster! Well spotted.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
"Check applications with USB"
I didn't find such a setting in Samsung Galaxy S23. What is the exact name when using the English layout of the device?
 
Upvote 0

yo3ggx

Active Member
Licensed User
Longtime User
Just connect directly over the network using adb. Your device will be seen by B4A like directly connected to the PC and is a lot much faster than connecting over USB.
 
Upvote 0
Top