[mono-android] RAM Usage of applications written with monodroid

2012-08-13 Thread soyo
Hi.

I'm interested in the RAM usage of applications. We wrote an application
with monodroid, that uses augmented reality, and it's usage is usually
50MB-60MB. The application is based on 5 screens, with graphics for
backgrounds, buttons etc, and also taking pictures, however the RAM usage is
troubling.

Take note it happens at the start of an application, not after couple hours
of usage. At the start of app, the RAM rises and keeps it's level at those
close 50-60MB.

Is this the "con" of using mono and monodroid framework, or it's not
something usuall?

Also I've looked at facebook sample in monodroid samples folder, and it has
roughly 1 screen + the facebook java api, and the app at the start uses
15-20MB of RAM. This can't be right. ?

cheers
Lucas



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/RAM-Usage-of-applications-written-with-monodroid-tp5711289.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] RAM Usage of applications written with monodroid

2012-08-23 Thread soyo
Thanks Jonathan. We will check this out and will report back shortly.

As for checking the RAM usage, the task manager.

cheers
Lucas



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/RAM-Usage-of-applications-written-with-monodroid-tp5711289p5711315.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[mono-android] Error getting response stream (mono/monodroid/monotouch problem)

2012-08-23 Thread soyo
Hi.

I've mentioned in other topic, that a company I'm working for is writing an
app for android using monodroid. We've stumbled upon a problem which to be
honest is quite iritating. The problem is with getting a response stream
from the server. The issue happens using .NET WebClient class as well as
HttpWebRequest, as we tried both.

But this, we only figured out recently, till now we were not aware what is
the problem. Thankfully we came across this error, and taking a while
looking on the internet we found people having same issue, when they are
using any framework originated from mono:

http://stackoverflow.com/questions/3674692/mono-webclient-invalid-ssl-certificates
http://mono.1490590.n4.nabble.com/sending-smtp-email-under-SSL-td1536371.html
http://s251.codeinspot.com/q/1230250
http://www.mono-project.com/UsingTrustedRootsRespectfully

This issue happens only on 1 of the smartfones the app was tested on, the
HTC Desire(although by reading from the xamarin site about this problem I
think it's not the device problem, correct? Which makes things even worse,
if it's not connected to the hardware problem). The others, about dozen of
them works perfectly fine with same code.

We tried the Callback resolution as well as the "NoCheckCertificatePolicy"
class. Nothing worked, the issue is still there and this is a big problem as
this simply cannot stay like that, and the whole project is dangered if
"some random phones" won't simply work with this application.

The funny thing is we have this issue only with 2 of the server
funcionalities we contact with out of about 8. All of them are based on GET
http request, and all lead to the same base address. The 2 methods that do
not work are written in exactly same way (notice below is WebClient, we
normaly used HttpWebRequests but we tried WebClient, as I've found some
people saying monodroid has some "problems" with HttpWebRequests).

I'll stripped the following part, as it's not important. Code1:

string _tempAdress = BazeURLHelpers.BazeURL + _object.ToString() +
System.Uri.EscapeDataString((JsonConvert.SerializeObject(_object)).ToString());
WebClient request = new WebClient();
var dataStream = request.OpenRead(_tempAdress);//this is the line
Exception is being risen

Second method:

string _tempAdress = BazeURLHelpers.BazeURL + _object.ToString() +
System.Uri.EscapeDataString((JsonConvert.SerializeObject(_object)).ToString());
WebRequest request = WebRequest.Create(_tempAdress);
request.Credentials = CredentialCache.DefaultCredentials;
using (WebResponse response = request.GetResponse()) //this is the line
Exception is being risen
{
...
}

We would like to hear a solution to this problem, as both suggestions in the
threads from the beginning of this post do not work.

sincerely
Lucas



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Error-getting-response-stream-mono-monodroid-monotouch-problem-tp5711340.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] RAM Usage of applications written with monodroid

2012-08-23 Thread soyo
Hi Jonathan.

Could you give me some valid adb command to print the logs of only GC info
of a particular message to a txt file? adb logcat > test.txt is too general.
I know the info is out there but since it's not an urgent matter I thought I
asked.

Also is there any adb command that can give me some credible RAM usage of a
particular appliaction?

And lastly, I understand that the information given by device managers of
different launcher applications are probably not the most sophisticated
diagnosing tools, however they give some point of refference. For instance,
Power Amp is pretty extensive application and yet it only shows 15 MB of RAM
in that particular monitor. Another applications like ThinkFree, QuickPick,
ES File Explorer, or exDialer show values between 8 and 15 MB of usage.

While our application takes on start(so first screen alone) 30MB which is
simple background with couple images on it, couple textview controls, couple
editText controls and couple buttons (to be fair this screen shows after one
pseudo activity that is used as sort of splashscreen switcher - 3 full
background images in total, and also a 15 sec monologue in the background). 

I also would understand the argument if it was only our application, but the
facebook example that is found within the xamarin examples, and that
contains 1 simple screen at the start with only 1 button takes 11 MB.

I understand these values can be off in general, but they all combined can
show (I think) the relation picture of how much applications take of Ram in
relation to others, don't they?

If I'm completely off and wrong, I would appriciate some clarification.

sincerely
Lucas



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/RAM-Usage-of-applications-written-with-monodroid-tp5711289p5711341.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] RAM Usage of applications written with monodroid

2012-08-29 Thread soyo
Thanks Jonathan for the response and looking into the issue.

To be honest, those kind of data is a bit above my level of understanding,
and also outside of my area of expertise.

The questions I would like to pose to you, based on the information you got
above are these:

1) If we assume the information is wrong (the exact numbers) from the RAM
usage that 3rd party softwares show, or the OS device manager, why if we
look only at the proportions of RAM usage of programs x, y, z to the RAM
usage of applications written in mono, these proportions always "favour" the
monodroid applications
2) If we assume the proportions are constant and are valid, aside from the
exact RAM usage of application, 8MB of just "helo world" test, or 13-15MB
for the facebook example, is a lot considering how basic and simple those
applications are. Why that is the case? There are only 2 possibilities. That
ratio(proportions) are wrong, or the mono/monodroid frameworks are quite
heavy frameworks to use.

sincerely
Lucas



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/RAM-Usage-of-applications-written-with-monodroid-tp5711289p5711621.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid