views:

38

answers:

1

I have separated java code from Android code and have two projects. Android dependent on Java project. Now i want to get the memory trace of the Java project on Android. For that I have created Androd Junit Project implementing Android Instrumentation, and a dummy android project dependent on my actual java project.(as I only want to get memory trace of java project on android).

Problem is when I execute Android Junit project, and give a reference of dummy project removing java project dependency, all tests(dummy) run fine.

But when I run junit project, with dummy android proj keeping dependency on java project, my application crashes.

I get an error message like : "Process crash"

not getting any error message in logcat. No clue whats wrong with code. Any help is highly needed.

Thanks

A: 

I just observed in Logcat that Linear Allocation is exceeding its limit:

09-27 13:32:20.648: ERROR/dalvikvm(374): LinearAlloc exceeded capacity (5242880), last=312 09-27 13:32:20.658: ERROR/dalvikvm(374): VM aborting

how to resolve this ? any idea ?