Lost Password?


Delphi Forum - Delphi Programming Kings of Code
Registration is OPEN!6 months VIP Access - 20 $ Donation - 1 year VIP Access - 30 $ Donation -2 years VIP Access - 50 $ Donation - Gold user For life VIP Access - 150 $ Donation... Delphifan Crew

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Login or Register
Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fix: your android fmx app crashes when screen rotates
11-26-2015, 09:15 AM (This post was last modified: 11-26-2015 07:06 PM by leoplusma.)
Post: #1
Rainbow Fix: your android fmx app crashes when screen rotates


After donate send email to adsdelphi@gmail.com with your nickname and donate transaction

6 months VIP- 20 $ Donation - 1 year VIP- 30 $ Donation -2 years VIP- 50 $ Donation - Gold user- 150 $ Donation

Ahoy all.
(this isnt something I personally discovered but I think it should also be mentioned in this great forum here so ppl dont have to search all web for a solution).
edit: this annoyance happens in DX10 Seattle and Android SDK 24.4.1 and up

the problem:
if your app is meant to work for both portrait and lanscape in android, when user moves his/her device and screen automatic rotates, your app crashes.
(in fact it doesnt crash, it just wants to restart but seems to fail)

the solution:
locate the file "Android.Manifest.template.xml" (it is in same folder with your project)
and open it with a notepad or whatever similar.
there you will find a line that says:


you have to add there the word "screenSize" (case sensitive)
so the line becomes:


build, deploy and voila! your app no longer crashes when screen rotates.

hope it is useful






My Last Threads
Quote this message in a reply
Post Reply 

Messages In This Thread
Fix: your android fmx app crashes when screen rotates - leoplusma - 11-26-2015 09:15 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Xamarin Android 4.12.028 & Xamarin iOS 1.10.39 (Windows/MacOSX) AdminDF™ 9 3,174 12-30-2015 05:41 PM
Last Post: ch4rl3s
  Place and Ways Android App with source AdminDF™ 16 2,866 11-03-2015 08:21 AM
Last Post: leoplusma
  Android - Send Email AdminDF™ 2 1,642 08-09-2015 01:59 PM
Last Post: programmerdelphi
  Android - Tab Layout Example Tutorial AdminDF™ 6 2,322 08-06-2015 08:33 AM
Last Post: cocute
  Android - Voice Recording AdminDF™ 4 2,249 05-15-2015 10:49 AM
Last Post: brthlss2
  Android Exhaustive Ebooks Collection AdminDF™ 2 1,653 05-15-2015 10:46 AM
Last Post: brthlss2
  Android - Call Phone Number AdminDF™ 1 1,967 09-14-2014 06:16 AM
Last Post: vedatpala
  YouWave for Android Home 3.18 AdminDF™ 0 1,279 04-24-2014 11:10 AM
Last Post: AdminDF™
  Android - MediaPlayer Example AdminDF™ 0 2,042 03-08-2014 09:36 PM
Last Post: AdminDF™
  Android - PDF Reader AdminDF™ 0 1,365 03-08-2014 09:35 PM
Last Post: AdminDF™

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Theme designed by Delphifan (Sidebar created by Delphifan - Delphifan.com)
Copyright © 2018 Delphi Forum - Delphi Programming Kings of Code - All rights reserved.

For GOLD or Payment Vip User Please send PM to Administrator

Delphi,Embarcadero,Delphi XE6,Delphi XE7,Delphi XE5,TMS,Devexpress,Delphi Components,Full Delphi Download,Delphi Android,Delphi IOS,Delphi Mobile programming,Delphi Forum,Embarcadero Berlin 10.1