Android Question Getting Different Versions of an Application

RDCrozier

Member
Licensed User
Longtime User
Hi All

I created one application, and then wanted to created another that was very similar to the first. As a result i copied the entire project of the first app and made the relevant changes to the code. The problem is when i install the app on a device it overwrites the first app I created, I would obviously like to have both apps on the device.

I have renamed the b4a file in the second project, and changed the application label in the code itself. (it installs the app with the new name but still deletes the first one) It also generates a new apk file with a new name but installing the app from there gives the same result.

What am I missing?

Thanks
Tom
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

RDCrozier

Member
Licensed User
Longtime User
You did not change the packagename? Rule ONE for each new App. Define a unique packagename. STRG-B
Sorry to seem stupid but where is the package name you refer to?

As far as we are aware we have changed all references, even down to the level of editing the AndroidManidest.xml file in the Objects folder of the project.

Are you saying that rather than copying the project and changing all the Region Activity Attributes one element of which is:
#ApplicationLabel: Flexispec Android
where we changed the Flecispec Android to be the new value of the project, that we should have created a completely new project and copy/pasted the code into the new project from the old one?

If so, then is there a simple way of copying a project named <Project A> to a new project <Project B> where all traces of the old application name are replaced by the new name?

Thanks in anticipation.
Tom
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Package name: In the IDE menu Build Configurations.
You get this window:
upload_2016-12-5_17-27-15.png


Change Package!

And you need to change the #ApplicationLabel in the #Region Project Attributes
#Region Project Attributes
#ApplicationLabel: B4A Example
 
Upvote 0

RDCrozier

Member
Licensed User
Longtime User
Package name: In the IDE menu Build Configurations.
You get this window:
View attachment 50702

Change Package!

And you need to change the #ApplicationLabel in the #Region Project Attributes
#Region Project Attributes
#ApplicationLabel: B4A Example

Thank you for your help .... this was just far too obvious and how we didn't spot it I will never know!

We never stop learning!

Regards
Tom & Dave
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
Thank you for your help .... this was just far too obvious and how we didn't spot it I will never know!

All of us :)

I use (I'm from Germany - DE) as my package names: de.myname.myappname (so it's unique). You'll need it f.e. in all of the Google services (Firebase, etc.)
 
Upvote 0
Top