From: Steve Healy [shealy@wms-co.com]
Sent: Wednesday,
November 27, 2002 8:26 AM
To: Branden Dodge; Brian Hamlin; Carlos
Cabeza; Corey O'Brien; David Woodsmall; John Mercurio; Kevin
Loftus
Subject: FW: network activity while suspended in BREW
FYI,
Regards,
Steve
Guys,
I have unearthed
some additional information about network activity within a suspended BREW
application. In a nutshell, it is not recommended-- yet. Until the
handsets are using packet-switched networks, all network activity should take
place within active applications only. When packet-switched networks are
available, background network activity as well as TCP listening will be
supported.
I tracked down one
of the networking engineers here, and cornered him about it. He said that
indeed, you shouldn't be doing any socket stuff while suspended -- he said
suspended apps should keep resource consumption to an absolute minimum, because
it's possible/likely that the phone needs to do something else that's important
and resource-intensive.
His recommendation
for your situation is to wake the app up via SMS, and deliver the content while
the app is in the foreground. Since your network activity will be blocking
any incoming voice calls (the primary responsibility of the handset)
you might as well occupy the UI as well. If another incoming SMS or
low battery threatens your app with an EVT_APP_SUSPEND, you should
then stop your download, to be resumed later.
He also said that
BREW 2.0 will provide a little-documented feature of being a true background
app. Background apps are first-rate, non-suspended apps that just don't
occupy the UI. To do this, you'll follow these steps:
- Call
ISHELL_CloseApplet( ). This will result in an EVT_APP_STOP event being
fired.
- In your
EVT_APP_STOP event handler, change the bool pointed to by the dwParam
from its default of TRUE to FALSE. This makes your app a "background"
app.
- When you really
want to shut down, simply repeat steps 1 and 2, but leave the default
TRUE value of the bool flag.
I realize that this
isn't quite in line with your ultimate product goals, but hopefully it allows
you to demonstrate the content delivery effectively, and improve the app as
networks and newer BREW releases allow.
Regards,
Curtis
OTHER INFORMATION
- Acronyms / Glossary
- Woodsmall's Recommended Technical Books
- Bioinformatics / Pharma Information and Terms
- BUGS / RECALLS / SCAMS,... Page
- Buses & Networks, other
- Connectors, Pinouts & Wiring Info
- DATABASE Info
- Digital - DVD, Music, Photography, Printers, Recording, Video
- Encryption, Compression, RFID, Smart Cards, AI, & Fuzzy Logic
- Ethernet, Cloud, 802.11x, Fast Ethernet, Gigabit Ethernet, isoEthernet
- Fibre Channel
- GRAPHICS INFO
- Hoaxes |
- Home Security & Maintenance |
- HOTEL/MOTEL INFO
- HOUSE & TAX INFO
- IP, IPsec, IPv4, IPv6, FCIP, iFCP, PPP, SoIP, TCP, TCP/IP, TOE, VoIP
- LEGACY computer LANGUAGES / Architectures
- Linux
- MAPS
- NetWare
- Network, Buses, USB & Communications Info
- NEWS LINKS
- NEWS - Current Technical
- NORTH CAROLINA INFO
- Organizations
- PERSONAL: airlines, airports, cars, discount, tires, Financial, Fix-it, Movies, ETC **
- Pharma / Bioinformatics
- Programming, Agile, C, C++, Design, Algorithms, Patterns, OO, Refactoring, ADO
- QA
- Recommended Computer Security Steps
- REFERENCES
- References - Other, Postage, Converters, Dictionaries, Languages
- SAN / NAS / SATA / Storage / CIM / Device Discovery
- SCSI / iSCSI / RAID / SAS / SMI-S
- Searching
- Secure Connections
- Security, Computer
- Standards
- Technical, Mostly Computer, Info
- Testing
- TIME, TIME ZONE INFO
- TOOLS (power, hand, wood)
- TRAFFIC **
- TRAVEL INFO
- UML
- UNIX
- Virus Info
- WEATHER & TIME INFO
- Web Development: C#, CSS, DHTML, HTML, Java, JavaScript, Perl, Python, Ruby, VSGML, VBScript, VRML, XML,...
- Windows Tips
- Wireless / PDA / Handhelds
- XP Info
- Contact David Woodsmall
- David Woodsmall - Main Web page