Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: My Android project are broken under Delphi TOKYO



Permlink Replies: 29 - Last Post: Jun 16, 2017 1:31 PM Last Post By: hernan bellichi...
Stéphane WIERZB...

Posts: 58
Registered: 9/3/00
My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 30, 2017 3:10 AM
Hello

Looks like Tokyo doesn't like Android...

https://quality.embarcadero.com/browse/RSP-17687
Bitmap is no more displayed on Android 4.1.2 device. Could be reproduced on an Android 4.1.2 device

https://quality.embarcadero.com/browse/RSP-17189
Application crash with 'Can not activate current context' exception. Need TFrameStand + an Android 4.1.2 device

Can anyone please reproduce this and vote for ?

TIA

Edited by: Stephane Wierzbicki on Mar 31, 2017 8:22 PM
Eli M

Posts: 1,346
Registered: 11/9/13
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 30, 2017 6:12 AM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
Which Android device?
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 30, 2017 8:44 AM   in response to: Eli M in response to: Eli M
Am 30.03.2017 um 15:12 schrieb Eli M:
Which Android device?

The first report says something about a Symbol one, so it's some more
industrial one.

I run a Tokyo compiled app on a LG L50 Smartphone running Android 4.4
and this contains at least one TImage and diverse speed buttons with
images in them. The runs fine as far as those are concerned. It's
affected massively by the slowdons reported though.

Greetings

Markus
shaun earle

Posts: 1
Registered: 4/12/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2017 8:35 AM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
Stephane Wierzbicki wrote:
Hello

Looks like Tokyo doesn't like Android...

https://quality.embarcadero.com/browse/RSP-17687
Bitmap is no more displayed on Android 4.1.2 device. Could be reproduced on an Android 4.1.2 device

https://quality.embarcadero.com/browse/RSP-17189
Application crash with 'Can not activate current context' exception. Need TFrameStand + an Android 4.1.2 device

Can anyone please reproduce this and vote for ?

TIA

Edited by: Stephane Wierzbicki on Mar 31, 2017 8:22 PM

I am getting the same for can not activate current context on a Samsung tab sm-t230 android 4.4.2

have you managed to work around this ???
steven chesser

Posts: 401
Registered: 4/13/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2017 9:08 AM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
Tokyo is totally useless for Android for me and broke for iOS in places too... For android any device we've loaded our app on just doesn't work right. From old to new .. from cheap to top of the line.

UI problems out the butt.... slow slow slow.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2017 2:24 PM   in response to: steven chesser in response to: steven chesser
Am 11.04.2017 um 18:08 schrieb steven chesser:
Tokyo is totally useless for Android for me and broke for iOS in places too... For android any device we've loaded our app on just doesn't work right. From old to new .. from cheap to top of the line.

UI problems out the butt.... slow slow slow.

They're working on these issues afaik.

Greetings

Markus
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2017 2:39 PM   in response to: Markus Humm in response to: Markus Humm
Markus wrote:

They're working on these issues afaik.

These kind of issues should have been caught in testing before they were
ever released in the first place. The old "release it when it is ready"
motto no longer seems to apply, though. Now it is only "release it now,
we'll fix it later" instead.

--
Remy Lebeau (TeamB)


---
This email has been checked for viruses by AVG.
http://www.avg.com

loki loki

Posts: 787
Registered: 7/1/02
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2017 2:44 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
On 4/12/2017 12:39 AM, Remy Lebeau (TeamB) wrote:
Markus wrote:

They're working on these issues afaik.

These kind of issues should have been caught in testing before they were
ever released in the first place. The old "release it when it is ready"
motto no longer seems to apply, though. Now it is only "release it now,
we'll fix it later" instead.

+1000

especially that for android, not hard to see the bug, just run any demo
to see how slow they are :(

but on seattle i remember they also put in production an IDE that was
totaly unstable and they provide a fix before the update

so yes, seam that for embarcadero release = beta :(
steven chesser

Posts: 401
Registered: 4/13/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2017 9:08 PM   in response to: loki loki in response to: loki loki
i ended up using SalesForce deal to submit a ticket with them on this subject .... see what kind of offical answer is..
Robert [NL] Mit...

Posts: 100
Registered: 5/23/04
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 12, 2017 2:01 AM   in response to: steven chesser in response to: steven chesser
steven chesser wrote:
i ended up using SalesForce deal to submit a ticket with them on this subject .... see what kind of offical answer is..

I believe there are more sales people working at Embarcadero than developpers, so I think you will get a nice answer;)
As far as I personnally can predict they will need till beginning 2018 to get Linux (which they need for internal projects) stable. From then you will probably see iOS/Android back in the roadmap.
Till then, I hope you do not live in Europe, because our yearly update subsription fees are much more expensive than in America and you can not suspend them.
steven chesser

Posts: 401
Registered: 4/13/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 12, 2017 6:57 AM   in response to: Robert [NL] Mit... in response to: Robert [NL] Mit...
Robert [NL] Mittendorff wrote:
steven chesser wrote:
i ended up using SalesForce deal to submit a ticket with them on this subject .... see what kind of offical answer is..

I believe there are more sales people working at Embarcadero than developpers, so I think you will get a nice answer;)
As far as I personnally can predict they will need till beginning 2018 to get Linux (which they need for internal projects) stable. From then you will probably see iOS/Android back in the roadmap.
Till then, I hope you do not live in Europe, because our yearly update subsription fees are much more expensive than in America and you can not suspend them.

Hah... I assume that is the norm at most places. Same as where I work... 10:1 ratio for sales reps vs devs...

I live in the States... but I don't pay for anything. Company I work for foots the bill for everything. Easy to spend others money :)
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 12, 2017 9:14 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Am 11.04.2017 um 23:39 schrieb Remy Lebeau (TeamB):
Markus wrote:

They're working on these issues afaik.

These kind of issues should have been caught in testing before they were
ever released in the first place. The old "release it when it is ready"
motto no longer seems to apply, though. Now it is only "release it now,
we'll fix it later" instead.

I fully agree!

Greetings

Markus
juan melo

Posts: 1
Registered: 9/2/16
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 16, 2017 9:44 AM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
Stephane Wierzbicki wrote:
Hello

Looks like Tokyo doesn't like Android...

https://quality.embarcadero.com/browse/RSP-17687
Bitmap is no more displayed on Android 4.1.2 device. Could be reproduced on an Android 4.1.2 device

https://quality.embarcadero.com/browse/RSP-17189
Application crash with 'Can not activate current context' exception. Need TFrameStand + an Android 4.1.2 device

Can anyone please reproduce this and vote for ?

TIA

Edited by: Stephane Wierzbicki on Mar 31, 2017 8:22 PM

Yes , there's an issue with Tokyo and images on android, in my case I'm using live bindings to populate TListview images i get

"Error! EvalError in LinkFillControlToField3: Can not activate current context" setting the AutoActivate and AutoFill LinkFillControlToField3 fields to false will prevent the error but not even text data will be populated.

I submitted the following bug , please vote if you have the same issue.

https://quality.embarcadero.com/browse/RSP-17860

my device is android HP 7 Plus

László Mlnvszky

Posts: 106
Registered: 10/21/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 23, 2017 10:23 PM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
I have the same here, with a complex Android app, which worked fine under Seattle/Berlin, but now crashes at a simple Showmodal under Android ...
I even deleted the images in it, to make sure, even the styles, but it's the same.
The reason for waiting for the upgrade to Tokyo was to give it a month for "beta testing", but it seems like wasn't enough :-)
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 23, 2017 11:14 PM   in response to: László Mlnvszky in response to: László Mlnvszky
I have the same here, with a complex Android app, which worked fine under Seattle/Berlin, but now crashes at a simple Showmodal under Android ...

ShowModal is apparently no longer supported on Android. Beats me why, since it has been working fine (at least in the projects that I'm involved with)

--
Dave Nottage [TeamB]
Delphi Worlds blog: http://www.delphiworlds.com/blog
László Mlnvszky

Posts: 106
Registered: 10/21/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 12:42 AM   in response to: Dave Nottage in response to: Dave Nottage
Dave Nottage wrote:
I have the same here, with a complex Android app, which worked fine under Seattle/Berlin, but now crashes at a simple Showmodal under Android ...

ShowModal is apparently no longer supported on Android. Beats me why, since it has been working fine (at least in the projects that I'm involved with)

--
Dave Nottage [TeamB]
Delphi Worlds blog: http://www.delphiworlds.com/blog

So what should we use instead?
Form.Show is OK, but if you want to get back a result after that?

Form.Showmodal(
If Result=mrOK than Refresh listview or anything...
)

And also, Showmessage or inputboxes are deprecated, too?
Vladimir Krapot...

Posts: 19
Registered: 8/25/14
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 12:52 AM   in response to: László Mlnvszky in response to: László Mlnvszky
of course it's available to use ShowModal

f.showModal(procedure (AResult:TModalResult)
begin
if AResult=mrOk then
begin
...
end;
end);

but we shold remember it will NOT stop the execution at this point
László Mlnvszky

Posts: 106
Registered: 10/21/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 12:59 AM   in response to: Vladimir Krapot... in response to: Vladimir Krapot...
Vladimir Krapotkin wrote:
of course it's available to use ShowModal

f.showModal(procedure (AResult:TModalResult)
begin
if AResult=mrOk then
begin
...
end;
end);

but we shold remember it will NOT stop the execution at this point

Are you sure it works in Tokyo, too?
Because in the wiki (http://docwiki.embarcadero.com/Libraries/Tokyo/en/FMX.Forms.TCommonCustomForm.ShowModal) it states:
"Caution: Modal dialog boxes are not supported in Android apps. We recommend do not use modal dialog boxes on either of the mobile platforms (iOS and Android) because unexpected behavior can result. Avoiding usage of modal dialog boxes eliminates potential problems in debugging and supporting your mobile apps. "
Which confirms Dave's answer, so I'm unsure...
Vladimir Krapot...

Posts: 19
Registered: 8/25/14
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 1:16 AM   in response to: László Mlnvszky in response to: László Mlnvszky
the fact is mobile dev in Tokyo is totally broken, so this question means nothiing until even something done by Emro to fix it

upd: it's about really modal dialogs, but mobile form.showModal is not like that. because they don't stop the execution

Edited by: Vladimir Krapotkin on Apr 24, 2017 1:16 AM
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: My Android project are broken under Delphi TOKYO [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 2:50 AM   in response to: Vladimir Krapot... in response to: Vladimir Krapot...
Vladimir Krapotkin wrote:

the fact is mobile dev in Tokyo is totally broken, so this question means nothiing until even something done by
Emro to fix it

It's not "totally" broken. There are some very major issues (including a very marked degradation in UI performance),
yes.

upd: it's about really modal dialogs, but mobile form.showModal is not like that. because they don't stop the
execution

As per my earlier post: ShowModal is no longer supported on Android; at least not without tweaking the source. There
are other ways of achieving the same thing, e.g.

* Showing a form that covers the whole screen space
* Showing a layout that covers the whole screen space and setting HitTest to False on the layout

In both cases, when the "modal" "form" is to be dismissed, call a callback or send a message to the calling form

etc etc.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
László Mlnvszky

Posts: 106
Registered: 10/21/09
Re: My Android project are broken under Delphi TOKYO [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 2:57 AM   in response to: Dave Nottage in response to: Dave Nottage
Dave Nottage wrote:
Vladimir Krapotkin wrote:

the fact is mobile dev in Tokyo is totally broken, so this question means nothiing until even something done by
Emro to fix it

It's not "totally" broken. There are some very major issues (including a very marked degradation in UI performance),
yes.

upd: it's about really modal dialogs, but mobile form.showModal is not like that. because they don't stop the
execution

As per my earlier post: ShowModal is no longer supported on Android; at least not without tweaking the source. There
are other ways of achieving the same thing, e.g.

* Showing a form that covers the whole screen space
* Showing a layout that covers the whole screen space and setting HitTest to False on the layout

In both cases, when the "modal" "form" is to be dismissed, call a callback or send a message to the calling form

etc etc.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog

Thanks for the clarification Dave!
What about Showmodal or Inputboxes?

Do you have an ETA for these major issues? Should I install back Berlin to continue publishing for the oncoming weeks?
I guess it's not 1-2 weeks to fix those issues, right?
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: My Android project are broken under Delphi TOKYO [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 3:13 AM   in response to: László Mlnvszky in response to: László Mlnvszky
László Mlnvszky wrote:

Do you have an ETA for these major issues? Should I install back Berlin to continue publishing for the oncoming weeks?
I guess it's not 1-2 weeks to fix those issues, right?

I don't actually work on the issues myself (I'm not an EMBT employee). I am however willing to assist where I can so
that others may be able to work around the problems, where possible. For instance, I discovered an issue with
TTabControl just yesterday:

https://quality.embarcadero.com/browse/RSP-17935

Which can be worked around if you're prepared to patch the source (as I have needed to). Then there's this one:

https://quality.embarcadero.com/browse/RSP-17165

Which has a workaround that does not require patching the source. They're just a couple of examples.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
Vladimir Krapot...

Posts: 19
Registered: 8/25/14
Re: My Android project are broken under Delphi TOKYO [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 3:47 AM   in response to: Dave Nottage in response to: Dave Nottage
Dave Nottage wrote:
Vladimir Krapotkin wrote:

the fact is mobile dev in Tokyo is totally broken, so this question means nothiing until even something done by
Emro to fix it

It's not "totally" broken. There are some very major issues (including a very marked degradation in UI performance),
yes.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
For me, if my working applications crash, TabControl, AniIndicator and Images do not work, this is exactly what I name "totally"
Due these effects the degradation of performance is not a biggest issue
Rolf Wadewitz

Posts: 4
Registered: 11/23/03
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 26, 2017 10:58 PM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
Stephane Wierzbicki wrote:
Hello

Looks like Tokyo doesn't like Android...

Its abount images and TListView.
Probably this is due to the complete rework of threading.
I already had a bad feeling when I heard from this complete chage of the thread and bitmap foundation.
My working app is broken now.

Are there any workarounds so far ?

Please vote for this issue too.
[https://quality.embarcadero.com/browse/RSP-17921]

Rolf
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 26, 2017 11:21 PM   in response to: Rolf Wadewitz in response to: Rolf Wadewitz
Rolf Wadewitz wrote:

Please vote for this issue too.
[https://quality.embarcadero.com/browse/RSP-17921]

I don't have a workaround, however I note that on my Android 7.1.1 device, none of the images show.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
László Mlnvszky

Posts: 106
Registered: 10/21/09
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 23, 2017 12:09 AM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
Did anyone try the new hotfix?
April 2017 RAD Studio 10.2 Hotfix for Toolchain Issues

Does it solve these problems?

Stephane Wierzbicki wrote:
Hello

Looks like Tokyo doesn't like Android...

https://quality.embarcadero.com/browse/RSP-17687
Bitmap is no more displayed on Android 4.1.2 device. Could be reproduced on an Android 4.1.2 device

https://quality.embarcadero.com/browse/RSP-17189
Application crash with 'Can not activate current context' exception. Need TFrameStand + an Android 4.1.2 device

Can anyone please reproduce this and vote for ?

TIA

Edited by: Stephane Wierzbicki on Mar 31, 2017 8:22 PM
Stéphane WIERZB...

Posts: 58
Registered: 9/3/00
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 23, 2017 2:04 AM   in response to: László Mlnvszky in response to: László Mlnvszky
László Mlnvszky wrote:
Did anyone try the new hotfix?
April 2017 RAD Studio 10.2 Hotfix for Toolchain Issues

Does it solve these problems?

Nope ! IT doesn't solves these issues. What disturbs me the most is that EMB doesn't communicate on this (the whole android experience is broken).
Registered User

Posts: 46
Registered: 3/4/05
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 23, 2017 4:12 AM   in response to: Stéphane WIERZB... in response to: Stéphane WIERZB...
Stephane Wierzbicki wrote:
László Mlnvszky wrote:
Did anyone try the new hotfix?
April 2017 RAD Studio 10.2 Hotfix for Toolchain Issues

Does it solve these problems?

Nope ! IT doesn't solves these issues. What disturbs me the most is that EMB doesn't communicate on this (the whole android experience is broken).

They are working on it I beleive. "single week" delivery was last i read ie 1 to 9 weeks for a fix.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 23, 2017 9:02 AM   in response to: Registered User in response to: Registered User
Am 23.05.2017 um 13:12 schrieb Registered User:
Stephane Wierzbicki wrote:
László Mlnvszky wrote:
Did anyone try the new hotfix?
April 2017 RAD Studio 10.2 Hotfix for Toolchain Issues

Does it solve these problems?

Nope ! IT doesn't solves these issues. What disturbs me the most is that EMB doesn't communicate on this (the whole android experience is broken).

They are working on it I beleive. "single week" delivery was last i read ie 1 to 9 weeks for a fix.

Yes, that was what I wrote because that was what I've been told.
But communication on this could be better indeed.

Greetings

Markus
hernan bellichi...

Posts: 11
Registered: 11/7/03
Re: My Android project are broken under Delphi TOKYO
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2017 1:31 PM   in response to: Markus Humm in response to: Markus Humm
Markus Humm wrote:
Am 23.05.2017 um 13:12 schrieb Registered User:
Stephane Wierzbicki wrote:
László Mlnvszky wrote:
Did anyone try the new hotfix?
April 2017 RAD Studio 10.2 Hotfix for Toolchain Issues

Does it solve these problems?

Nope ! IT doesn't solves these issues. What disturbs me the most is that EMB doesn't communicate on this (the whole android experience is broken).

They are working on it I beleive. "single week" delivery was last i read ie 1 to 9 weeks for a fix.

Yes, that was what I wrote because that was what I've been told.
But communication on this could be better indeed.

Greetings

Markus

hi, any notice about this problem?.. i have the same problem with delphi tokyo and android 7.. dont show image in ttabitem.

regards

Hernan
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02