FBA The Creator
http://www.fbacreator.com/fbaforum/

Receiving incoming calls during Fba apps
http://www.fbacreator.com/fbaforum/viewtopic.php?f=5&t=32
Page 1 of 1

Author:  cic.lemur [ Thu Apr 10, 2008 2:16 am ]
Post subject:  Receiving incoming calls during Fba apps

Hi, just highlighting this. Fba doesn't respond
very well when an incoming call is received on
PDA phones. I've attached a screen capture (sorry
it's very small), but you can basically see what
happens. The title bar is there, as well as the keyboard
icon, the phone incoming dialog box appears for a
second and disappears. Is it possible for Fba to
tackle this more gracefully?

Also the general template used in the code examples
seem to be processor intensive, eg:

Code:
function onmainloop()
        clear(0,0,0)
        *drawimage*
end


Is there any pitfalls to only draw if there is changes? eg

Code:
local boDraw = true
function onmainloop()
  if boDraw == true then
    *drawimage*
    boDraw = false
  end
 
  if keypressed then
    *calculate*
    boDraw = true
  end 

end


One problem with this is once the fbacreator fade in/out ad is gone, it'll leave behind a black box where it used to be. To solve this I'd like to propose that a special event is fired after the ad is gone so we can do a screen refresh call.

Attachments:
Screenshot_1.png
Screenshot_1.png [ 15 KiB | Viewed 9294 times ]

Author:  evilmaio [ Thu Apr 10, 2008 7:32 am ]
Post subject:  Re: Receiving incoming calls during Fba apps

Usually you can skip the clear(0,0,0) call if you are going to do full screen drawing operations;
this could save some cpu time...
(For example, if you're drawing a full screen image, you can safely skip the clear call).

By the way, you have to draw images on every frame or you will get a flashing effect :)

For the next releases, i'll add onsuspend and onresume events that could help on incoming calls (actually they're here, but they aren't used)

Regards.

Author:  cic.lemur [ Thu Apr 10, 2008 8:12 am ]
Post subject:  Re: Receiving incoming calls during Fba apps

evilmaio wrote:
By the way, you have to draw images on every frame or you will get a flashing effect :)


Alright, no flashing on my pda tho

evilmaio wrote:
For the next releases, i'll add onsuspend and onresume events that could help on incoming calls (actually they're here, but they aren't used)
Regards.


Great to hear this :D

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/