For my app (NubiNews Reader), memory footprint on the javascript side is
never an issue. Maybe it's because the JavaScript files that I execute each
time is less than 1000 lines (or less than 50KB).

I pass Java Strings that are up to 300KB to the JavaScript side, where I
would run a lot of string processing such as regexp, split, concatenation.
Again, no problems there. It seems like WebKit's memory manager is quite
good and I never got any out-of-memory due fragmentation despite my
excessive string operations.

On the other hand, I got more memory problems from the Java side. Because
the Java heap is not compacting, if I cache more than ten 300KB Strings (the
total of which would be just 3MB max), the Java heap could shoot quickly to
16MB and cause OutOfMemory on the Java side.

Coincidentally, the WebView on Android is much more stable than iPhone's
browser (even OS 2.2). I can routinely display pages with up to 100 VGA-size
images and never saw any issues. On iPhone, if I view such pages, the phone
crashes routinely.

I am actually planning of porting my app to iPhone. Could you tell me a
little about the kind of issues you found on iPhone?

On Sat, Apr 18, 2009 at 8:00 AM, Sena Gbeckor-Kove <[email protected]> wrote:

> How's the memory footprint. I'm intrigued. We used to do something similar
> for an iPhone App but we eventually switched due to the increased footprint.
> S
>
>
>
> On 13 Apr 2009, at 06:33, Mattaku Betsujin wrote:
>
> I use JavaScript A LOT in my app. It works like a charm. You just need to
> create a WebView and load HTML data that contains JavaScript.
>
> Now, JavaScript is pretty lame, but for what I need to do (string
> processing, XML parsing), it's a lot easier to write than Java. I must say
> the use of JavaScript has increased my productivity by at least 5 fold for
> such tasks.
>
> On Sun, Apr 12, 2009 at 10:41 AM, Evil Mushroom Lord <
> [email protected]> wrote:
>
>>
>> Quite frankly (pardon me, I'm not trying to be rude-- I'm completely
>> confused)--- why do you want to take a web development language like
>> php--- and use it to make a mobile app?
>>
>> Square + round hole? Java is a very easy programming language to use
>> as it is.
>>
>> While I'm primarily a C/C++/Java developer I do a lot with php as
>> well......... and I am dumb founded on why I would ever even
>> contemplate using php for anything besides a website.
>>
>> Please enlighten me. What on any mobile device would you use php for
>> where it would be a better fit than Java or C*?
>>
>> ~Evil Mushroom Lord
>>
>> Mushroom Wars: The Splatting
>> On the android market now!
>> http://www.evilmushroomempire.com/splat/screenshots.html
>>
>>
>> On Apr 12, 6:08 am, Roy M <[email protected]> wrote:
>> > Are there any planned to support scripting language such as python,
>> > perl or even php for Android apps development?
>> >
>> > It will definitely be make the development more easier.
>>
>>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to