Android Question How to reset Activty's name

sea1812

Member
Licensed User
Hi, I need rename the Main activity name from "main" to ".activity.MainActivity" for some reason, Would anyone tell me how to do it with Manifest Editor ? Or I had to edit the in the "AndroidManifest.xml" file ? Thanks for any suggestion.
 

DonManfred

Expert
Licensed User
Longtime User
What is the exact reason?
 
Upvote 0

sea1812

Member
Licensed User
What is the exact reason?
Because the developer had left his job, the package's name of the old app like this : "xx.xx.xxx" , but the Main Activity's name like this: "xx.xx.xxx.activity.MainActivity". I am writing new app by B4A , I must keep the package's name and activity's name, but I don't know how to set the ActivityName to "xx.xx.xxx.activity.MainActivity". That's the exact reason.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I must keep the package's name and activity's name, but I don't know how to set the ActivityName to "xx.xx.xxx.activity.MainActivity". That's the exact reason.
you can use the same packagename but you can not publish the app which was published with another signcertificate and/or by another publisher.
You need to use the same signkey to update an existing app with the same packagename.

You can use a new packagename for your - new - app.
 
Last edited:
Upvote 0

sea1812

Member
Licensed User
you can use the same packagename but you can not publish the app which was published with another signcertificate and/or by another publisher.
You need to use the same signkey to update an existing app with the same packagename.

You can use a new packagename for your - new - app.
Thanks for reply. The fact is I just need to make an app with same package name and same activity name, It is a simple app which was used to show some images and etc. , and this app will be called by another app. Because the source code of the old app was missed :( so I use B4A rewrite it now. These apps will run in an Android Box, so I need not to replace the existed app, I just push them by ADB tools.
 
Last edited:
Upvote 0
Top