mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

Trouble saving App Setting to modified AnroidManifest.xml file

I modified the file androidmanifest.xml to add android:screenOrientation="portrait" but it did not work. So I have to remove that line of code again.

Then click Save button on top. Then go to App Setting and changed my Version code and version name to another number then click Save button again. Now this time, when I open file AndroidManifest.xml, on top of this file, I still see version code and version name them same as before I changed in App Setting.

Did I corrupt my AnroidManifest.xml file? Why I am not able to save my version code and version name in App setting anymore?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Trouble saving App Setting to modified AnroidManifest.xml file

Hi Mike,

If you changed file manually, all the changes won't be visible in Appery.io editor. You would need to undo your changes http://docs.appery.io/tutorials/sourc... and then change again if you need.

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

Trouble saving App Setting to modified AnroidManifest.xml file

It is still not working .. this is what I did

I go to Source tab,
Click on Undo all source changes as picture below
Image

It seems that all my added codes on the file AnroidManifest.xml has been erased. However, at VersionCode and Version name still not change.
I go to Android Binary on App Setting and change Version code and Version Name then click Save. The AndroidManifest.xml file does not get change on version Code and version Name.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble saving App Setting to modified AnroidManifest.xml file

Hello! As you've changed source code, changes you do in Visual editor are not applied (more information here). You can change version in AndroidManifest.xml as well.

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

Trouble saving App Setting to modified AnroidManifest.xml file

So once I changed the source code anroidmanifest.xml file I will never ever able to change anything using visual editor again?

Is that what you are saying? What about if I need to change Android permission? will it change in AndroidManifest.xml file?

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

Trouble saving App Setting to modified AnroidManifest.xml file

I read the link you posted and this is what it writes "For now, once you start editing the source files, the changes will not be reflected in the visual view yet."

What I understand is that if I change something in the source code, it will not get change in the visual editor. That is fine with me.

But what I don't understand is this, why when I change something in the visual editor like change the version code in Android Binary, then source code does not reflect the change?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Trouble saving App Setting to modified AnroidManifest.xml file

Once you edit file on Source tab, changes you do in editor won't be applied because this file has higher priority.

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

Trouble saving App Setting to modified AnroidManifest.xml file

Thanks

That sucks ...

Return to “Issues”