Android Question Unable to run the KeyValue Store examples

beelze69

Active Member
Licensed User
Longtime User
Hi,

I tried to execute Erel's KeyValue store example in the below posts


as well as the latest


Also I copied the referenced newer Keyvaluestore library in my extralibraries folder.

However, I am unable to install the APP on my mobile in both the cases..

I tried even in Debug Mode, hoping that some error message might get thrown but there was none..

What could be the problem ?

Please help.

Thanks..
 

beelze69

Active Member
Licensed User
Longtime User
Can you report that this only happen to your new device with new version of Android and/or new version of B4A?
I am attempting to install on a Redmi Note 7 Pro ... Having 4 GB RAM My android version shows 10 QKQ1 19015.002 ..

I am running B4a 12 (64-bit) the latest B4a version..

I don't have the older version of B4a now ..

Thanks..
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
Which sample project are you running? Can you point the link?
The latest library version 2.31 is an Internal library.
Hi ! ,

I ran the example in


I also copied the newer Library in the ExtraLibraries folder ..

But it is not installing..

Attached the file...

Thanks..
 

Attachments

  • B4A_KVS2.zip
    9.8 KB · Views: 70
Upvote 0

teddybear

Well-Known Member
Licensed User
However, I am unable to install the APP on my mobile in both the cases..

Please help.

Thanks..
What happened when you install the app? Is there any message or log on your phone or b4a?
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
What happened when you install the app? Is there any message or log on your phone or b4a?
No Message.. nothing.. I even tried in debug mode so that on the logs some error message will be thrown ... but there was none...
The standard app installation dialog simply says 'cannot install app'...
 
Upvote 0

teddybear

Well-Known Member
Licensed User
No Message.. nothing.. I even tried in debug mode so that on the logs some error message will be thrown ... but there was none...
The standard app installation dialog simply says 'cannot install app'...
Do you have a screen shot ? did you test it on emulator? I don't think it is useful to debug mode if it is not installed successfully
 
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
I also tested the project from post #5 and it runs OK in Debug and Release mode withe B4A 12.20 on my Samsung Galaxy S10 Android 12.
Try to change the Package Name in the menu Project / Build Configurations.
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
Do you have a screen shot ? did you test it on emulator? I don't think it is useful to debug mode if it is not installed successfully
Attaching screenshots of the error message shown..
 

Attachments

  • Screenshot_2023-01-28-11-43-57-940_com.google.android.packageinstaller.jpg
    Screenshot_2023-01-28-11-43-57-940_com.google.android.packageinstaller.jpg
    188.9 KB · Views: 82
  • Screenshot_2023-01-28-11-44-14-191_com.google.android.packageinstaller.jpg
    Screenshot_2023-01-28-11-44-14-191_com.google.android.packageinstaller.jpg
    139.8 KB · Views: 78
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
I just solved my phone debug issue.
Run the sample project on Android 12. No issue installing in debug mode, it shows the smiley face and logs.
Sorry !
How do I run it on Android 12 ?
Do I have to make any change in the settings ?
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
I also tested the project from post #5 and it runs OK in Debug and Release mode withe B4A 12.20 on my Samsung Galaxy S10 Android 12.
Try to change the Package Name in the menu Project / Build Configurations.
Thanks Klaus !

It worked !

When I changed the package name from b4a.example3 to b4a.keyvaluestore , it worked...

Can you guide me what has the package name got to do with this ?
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
I just solved my phone debug issue.
Run the sample project on Android 12. No issue installing in debug mode, it shows the smiley face and logs.
Hi Aeric !

It worked when I changed the package name (as per Klaus suggestion)..

Thank you for your responses.. But please tell me what you meant when you said to run on Android 12...
 
Upvote 0

beelze69

Active Member
Licensed User
Longtime User
Thanks Klaus !

It worked !

When I changed the package name from b4a.example3 to b4a.keyvaluestore , it worked...

Can you guide me what has the package name got to do with this ?
But I have another issue.

I created a blank B4XPages app (the earlier example was an Activity based app) but in that I am unable to check the KeyValueStore or the KeyValueStore2 library reference.

What could be the issue ?

Thanks...
 
Upvote 0

teddybear

Well-Known Member
Licensed User
But I have another issue.

I created a blank B4XPages app (the earlier example was an Activity based app) but in that I am unable to check the KeyValueStore or the KeyValueStore2 library reference.

What could be the issue ?

Thanks...
You'd better create a new thread and post issue's log or screen shot or the small project..
 
Last edited:
Upvote 0

aeric

Expert
Licensed User
Longtime User
Sorry !
How do I run it on Android 12 ?
Do I have to make any change in the settings ?
I was just guessing maybe something has changed in newer version of android. My development phone and emulator are running on old android and I just tested on newer version and having no issue.

The issue you were facing, unable to install is due to reuse package name. Maybe the conflict happened due to the new app you are installing is very different in term of libraries used and too much different in code or private sign keys are different so you are forbidden to overwrite the old app with same package name.

Everytime you try to run an example project from forum, it is good practice to change the package name first to avoid this happen again or uninstall the example apps after testing. My 2 cents.
 
Upvote 0
Top