cannot compile source with OoO issue.

by Sandy » Fri, 13 Mar 2009 01:42:42 GMT

Sponsored Links
 Hi All

I experienced one issue when I try to build my app.

java.lang.OutOfMemoryError: Java heap space :
at :231)




Other Threads

1. Data layer best practice?

I've happily started down the path as an Android developer.  The
Notepad reference has been very helpful as a jumpstart model

I am now growing my application beyond one primary activity.  I'm
curious for anyone's advice for best practice of implementing a data
layer?  C# is my primary language and there I'd create a static class
to handle database interactions, passing back collections and
objects.  However, with Android, the create db method for the sqlite
class takes a context object reference, which I'm assuming doesn't
make it possible to design a reuseable global static class. (Could be
wrong, just haven't found good examples of in books or web sites.)

Perhaps designing data access within content providers is the answer
and best practice?

Any thoughts, article references, etc are greatly appreciated.



2. How to turn off the screen display?

Hi All,

I have a requirement to turn the screen display on and off from a Android
Service. I should have a function SwitchScreenDisplay (ON/OFF), to ON or OFF
the display.

I searched through the SDK and found a few APIs and settings. One method I
found is
boolean err =
Settings.System.SCREEN_OFF_TIMEOUT, 1);

But it gave the following security permission exception [03-14 21:24:41.575:
ERROR/DatabaseUtils(1066): java.lang.SecurityException: Permission denial:
writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS]
even though I had added the following statement in
AndroidMenifestFile.xml <uses-permission

So my question is:
- Was the above method is the right way to SWITCH OFF the screen
- How does the LONG END KEY press, switches/powers off the display? Which
API it calls?
- How to SWITCH on? Is it using the PowerManager wakelock?

I appreciate and thankful for your time.



3. Changing layout of the QuickSearch

4. without Absolutelayout, how to put widget on arbitary coordinate

5. Is it possible for me to install Java Application(.java) on Android?

6. Trouble installing from SDK and AVD Manager: access denied unzipping

7. Menu problems in emulator