[android-beginners] Re: Java heap outofmemory during dex

2009-09-25 Thread whitech

Hi all, I've solve this problem. Since there's someone have ask this
question before here.
To solve it, just modify dx.bat set the java heap upper, that's ok.

On 9月25日, 上午11时31分, whitech  wrote:
> Hi all, I've met this problem:
> When using ant to package my program, at the dex step, it crash as
> below:
>
> dex:
> [echo] Converting compiled files and external libraries into
> release/classes.dex...
> [apply] UNEXPECTED TOP-LEVEL ERROR:
> [apply] java.lang.OutOfMemoryError: Java heap space
> [apply]at java.util.Arrays.copyOf(Unknown Source)
> [apply]at java.util.Arrays.copyOf(Unknown Source)
> [apply]at java.util.ArrayList.ensureCapacity(Unknown Source)
> [apply]at java.util.ArrayList.add(Unknown Source)
> [apply]at com.android.dx.ssa.SCCP.addUsersToWorklist
> (SCCP.java: 106)
> [apply]at com.android.dx.ssa.SCCP.simulatePhi(SCCP.java:188)
> [apply]at com.android.dx.ssa.SCCP.simulateBlock(SCCP.java:
> 199)
> [apply]at com.android.dx.ssa.SCCP.run(SCCP.java:402)
> [apply]at com.android.dx.ssa.SCCP.process(SCCP.java:84)
> [apply]at com.android.dx.ssa.Optimizer.runSsaFormSteps
> (Optimizer.java:161)
> [apply]at com.android.dx.ssa.Optimizer.optimize
> (Optimizer.java: 101)
> [apply]at com.android.dx.ssa.Optimizer.optimize
> (Optimizer.java: 74)
> [apply]at com.android.dx.dex.cf.CfTranslator.processMethods
> (CfTranslator.java:269)
> [apply]at com.android.dx.dex.cf.CfTranslator.translate0
> (CfTranslator.java:131)
> [apply]at com.android.dx.dex.cf.CfTranslator.translate
> (CfTranslator.java:85)
> [apply]at com.android.dx.command.dexer.Main.processClass
> (Main.java:297)
> [apply]at com.android.dx.command.dexer.Main.processFileBytes
> (Main.java:276)
> [apply]at com.android.dx.command.dexer.Main.access$100
> (Main.java: 56)
> [apply]at com.android.dx.command.dexer.Main$1.processFileBytes
> (Main.java:228)
> [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
> (ClassPathOpener.java:134)
> [apply]at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory
> (ClassPathOpener.java:190)
> [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
> (ClassPathOpener.java:122)
> [apply]at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory
> (ClassPathOpener.java:190)
> [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
> (ClassPathOpener.java:122)
> [apply]at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory
> (ClassPathOpener.java:190)
> [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
> (ClassPathOpener.java:122)
> [apply]at
> com.android.dx.cf.direct.ClassPathOpener.processDirectory
> (ClassPathOpener.java:190)
> [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
> (ClassPathOpener.java:122)
> [apply]at com.android.dx.cf.direct.ClassPathOpener.process
> (ClassPathOpener.java:108)
> [apply]at com.android.dx.command.dexer.Main.processOne
> (Main.java: 245)
> [apply]at com.android.dx.command.dexer.Main.processAllFiles
> (Main.java:183)
> [apply]at com.android.dx.command.dexer.Main.run(Main.java:
> 139)
> BUILD FAILED
> F:\build.xml:30: The following error occurred while executing this
> line:
> F:\\android_build.xml:185: apply returned: 3
>
> I'm wondering if the heap of packaging is too small?
> My program (in .class files) totally about 1m (and use about 1.7m)
> space. How much is the biggest size of program?
> Thanks very much
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Java heap outofmemory during dex

2009-09-24 Thread whitech

Hi all, I've met this problem:
When using ant to package my program, at the dex step, it crash as
below:

dex:
[echo] Converting compiled files and external libraries into
release/classes.dex...
[apply] UNEXPECTED TOP-LEVEL ERROR:
[apply] java.lang.OutOfMemoryError: Java heap space
[apply]at java.util.Arrays.copyOf(Unknown Source)
[apply]at java.util.Arrays.copyOf(Unknown Source)
[apply]at java.util.ArrayList.ensureCapacity(Unknown Source)
[apply]at java.util.ArrayList.add(Unknown Source)
[apply]at com.android.dx.ssa.SCCP.addUsersToWorklist
(SCCP.java: 106)
[apply]at com.android.dx.ssa.SCCP.simulatePhi(SCCP.java:188)
[apply]at com.android.dx.ssa.SCCP.simulateBlock(SCCP.java:
199)
[apply]at com.android.dx.ssa.SCCP.run(SCCP.java:402)
[apply]at com.android.dx.ssa.SCCP.process(SCCP.java:84)
[apply]at com.android.dx.ssa.Optimizer.runSsaFormSteps
(Optimizer.java:161)
[apply]at com.android.dx.ssa.Optimizer.optimize
(Optimizer.java: 101)
[apply]at com.android.dx.ssa.Optimizer.optimize
(Optimizer.java: 74)
[apply]at com.android.dx.dex.cf.CfTranslator.processMethods
(CfTranslator.java:269)
[apply]at com.android.dx.dex.cf.CfTranslator.translate0
(CfTranslator.java:131)
[apply]at com.android.dx.dex.cf.CfTranslator.translate
(CfTranslator.java:85)
[apply]at com.android.dx.command.dexer.Main.processClass
(Main.java:297)
[apply]at com.android.dx.command.dexer.Main.processFileBytes
(Main.java:276)
[apply]at com.android.dx.command.dexer.Main.access$100
(Main.java: 56)
[apply]at com.android.dx.command.dexer.Main$1.processFileBytes
(Main.java:228)
[apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:134)
[apply]at
com.android.dx.cf.direct.ClassPathOpener.processDirectory
(ClassPathOpener.java:190)
[apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:122)
[apply]at
com.android.dx.cf.direct.ClassPathOpener.processDirectory
(ClassPathOpener.java:190)
[apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:122)
[apply]at
com.android.dx.cf.direct.ClassPathOpener.processDirectory
(ClassPathOpener.java:190)
[apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:122)
[apply]at
com.android.dx.cf.direct.ClassPathOpener.processDirectory
(ClassPathOpener.java:190)
[apply]at com.android.dx.cf.direct.ClassPathOpener.processOne
(ClassPathOpener.java:122)
[apply]at com.android.dx.cf.direct.ClassPathOpener.process
(ClassPathOpener.java:108)
[apply]at com.android.dx.command.dexer.Main.processOne
(Main.java: 245)
[apply]at com.android.dx.command.dexer.Main.processAllFiles
(Main.java:183)
[apply]at com.android.dx.command.dexer.Main.run(Main.java:
139)
BUILD FAILED
F:\build.xml:30: The following error occurred while executing this
line:
F:\\android_build.xml:185: apply returned: 3

I'm wondering if the heap of packaging is too small?
My program (in .class files) totally about 1m (and use about 1.7m)
space. How much is the biggest size of program?
Thanks very much
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] A problem about application die unexpected.

2009-09-23 Thread whitech

I've met this problem serveral times.
When my application is running, some times it die unexpected. The
logcat print the message below:
(the application name is remove)

09-23 16:00:42.407: INFO/DEBUG(539): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
09-23 16:00:42.407: INFO/DEBUG(539): Build fingerprint: 'generic/sdk/
generic/:1.5/CUPCAKE/147336:eng/test-keys'
09-23 16:00:42.407: INFO/DEBUG(539): pid: 1471, tid: 1534  >>>
com.xx.xx <<<
09-23 16:00:42.407: INFO/DEBUG(539): signal 11 (SIGSEGV), fault addr
00fe
09-23 16:00:42.407: INFO/DEBUG(539):  r0 ff9d9d9d  r1 43804000  r2
4232  r3 45ba86a0
09-23 16:00:42.407: INFO/DEBUG(539):  r4 ff9d9d9d  r5 43804000  r6
becf511c  r7 45ba86e8
09-23 16:00:42.407: INFO/DEBUG(539):  r8 44da4008  r9 ff80  10
74e7  fp 0200
09-23 16:00:42.407: INFO/DEBUG(539):  ip ff81  sp 45ba8698  lr
ac043dfc  pc 00fe  cpsr 9030
09-23 16:00:42.467: INFO/DEBUG(539):  #00  pc 00fe
09-23 16:00:42.548: INFO/DEBUG(539):  #01  pc 00043df8  /
system/lib/libsgl.so
09-23 16:00:42.557: INFO/DEBUG(539):  #02  pc 0003e018  /
system/lib/libsgl.so
09-23 16:00:42.557: INFO/DEBUG(539):  #03  pc 0004ea00  /
system/lib/libsgl.so
09-23 16:00:42.557: INFO/DEBUG(539):  #04  pc 00047e4c  /
system/lib/libsgl.so
09-23 16:00:42.568: INFO/DEBUG(539):  #05  pc 00075d64  /
system/lib/libsgl.so
09-23 16:00:42.568: INFO/DEBUG(539):  #06  pc 000767d4  /
system/lib/libsgl.so
09-23 16:00:42.568: INFO/DEBUG(539):  #07  pc 0005b3e8  /
system/lib/libsgl.so
09-23 16:00:42.578: INFO/DEBUG(539):  #08  pc 00054b80  /
system/lib/libsgl.so
09-23 16:00:42.578: INFO/DEBUG(539):  #09  pc 00052204  /
system/lib/libsgl.so
09-23 16:00:42.588: INFO/DEBUG(539):  #10  pc 0003d008  /
system/lib/libandroid_runtime.so
09-23 16:00:42.588: INFO/DEBUG(539):  #11  pc e3b4  /
system/lib/libdvm.so
09-23 16:00:42.588: INFO/DEBUG(539): stack:
09-23 16:00:42.598: INFO/DEBUG(539): 45ba8658  
09-23 16:00:42.598: INFO/DEBUG(539): 45ba865c  000b
09-23 16:00:42.611: INFO/DEBUG(539): 45ba8660  45ba86d4
09-23 16:00:42.611: INFO/DEBUG(539): 45ba8664  0001
09-23 16:00:42.617: INFO/DEBUG(539): 45ba8668  0010
09-23 16:00:42.632: INFO/DEBUG(539): 45ba866c  0010
09-23 16:00:42.632: INFO/DEBUG(539): 45ba8670  0010
09-23 16:00:42.632: INFO/DEBUG(539): 45ba8674  0010
09-23 16:00:42.632: INFO/DEBUG(539): 45ba8678  44da4008
09-23 16:00:42.638: INFO/DEBUG(539): 45ba867c  0080
09-23 16:00:42.638: INFO/DEBUG(539): 45ba8680  0020
09-23 16:00:42.638: INFO/DEBUG(539): 45ba8684  45ba87ec
09-23 16:00:42.648: INFO/DEBUG(539): 45ba8688  0006
09-23 16:00:42.648: INFO/DEBUG(539): 45ba868c  0006
09-23 16:00:42.648: INFO/DEBUG(539): 45ba8690  df002777
09-23 16:00:42.648: INFO/DEBUG(539): 45ba8694  e3a070ad
09-23 16:00:42.648: INFO/DEBUG(539): #01 45ba8698  0037
09-23 16:00:42.648: INFO/DEBUG(539): 45ba869c  
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86a0  44da4008
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86a4  003039f0  [heap]
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86a8  45ba8b54
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86ac  0080
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86b0  ffb7
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86b4  0037
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86b8  0100
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86bc  44da4008
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86c0  ff80
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86c4  becf511c  [stack]
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86c8  0200
09-23 16:00:42.648: INFO/DEBUG(539): 45ba86cc  ac03e01c  /system/
lib/libsgl.so
09-23 16:00:43.577: INFO/ActivityManager(568): Process com.uc.browser
(pid 1471) has died.
09-23 16:00:43.599: INFO/WindowManager(568): WIN DEATH: Window
{43766f50 com.xx.xxr/com.xx.xx.Activityxx paused=false}
09-23 16:00:43.707: WARN/InputManagerService(568): Got RemoteException
sending setActive(false) notification to pid 1471 uid 10018

so, what happended? Is there any possible operation will cause this
problem?

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



[android-beginners] A problem of using webview

2009-09-09 Thread whitech

Hi~~~
Here's the problem:
When I click a super-link in a page,(not using chrome, just
webview), can I get the information of the "target" attribute? For
example:   x , how can I
know the link need to open a new window or some way else?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] a problem about listview

2009-09-08 Thread whitech

Hi all~
I've met this problem: while scrolling, the background of a listview
change to black but not the background color which I'd define. How can
I let the background color not change when scrolling?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Open files with default software

2009-08-13 Thread whitech

Hi
I've got this problem:
I want to open a file with default binded software ( like .doc file
with Office Word  or .mp3 file with Media Player ) in my program, how
can I do that ? Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Hold http request from webview

2009-08-13 Thread whitech

Hi~~
I want to hold all the http request send by webview. But after I
overriden the function "shouldOverrideUrlLoading" and
"onLoadResource"( which of WebViewClient ) , it just work at the first
time. And the function "onLoadResource" is just notify me, but do
nothing! That means the webview will sent request automatic to get
resources. I don't want it. I want to hold all request, and sent when
I want to sent. How can I do it?
Thank you~~
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Distortion of images

2009-08-13 Thread whitech

I don't know.
But there is an interesting thing. When I use Gallery(the default
software to open image in the system), the pictures is distortion too.
I'm wondering is that a problem we cannot not solve...

On 8月13日, 下午6时35分, Faboom  wrote:
> Hi,
> I have the same problem, it seems that the color palette is reduced..?
>
> On 12 Aug., 13:09, whitech  wrote:
>
>
>
> > Hi~
> > When I use png image ( with gradient color ) in programs, the color of
> > image is distortion -- the gradient color is change to a lower level.
> > Why would it happended? And how can I solve this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Block when animation is running

2009-08-13 Thread whitech

Thank you very much~
But there's something hard to do: when my animation runs serveral
times, but the "function()" is different in every cases, and it's hard
to mark the state.
I think if I can block the other thread but the thread where the
animation is running is the best way. Can I do it?

On 8月13日, 下午7时37分, Mark Murphy  wrote:
> whitechwrote:
> > Hi~~
> > I've met this problem:
> > I want to do something ( like intent another activity ) after an
> > animation is over. The code is given below:
>
> >TranslateAnimation s = new 
> > TranslateAnimation((prev-currentPos)
> > *movearea/100, 0, 0, 0);
> >AlphaAnimation a = new 
> > AlphaAnimation((float)prev/currentPos, 1);
> >star.startAnimation(s);
> >idle.startAnimation(a);
> >//do something else
> >function();
>
> > What I want to do is that the animations has already finish when
> > function() start. What can I do ?
> > I've struggle on it for a whole day.
>
> Step #1: Set up an AnimationListener to find out when the animations end:
>
> http://developer.android.com/reference/android/view/animation/Animati...
>
> Step #2: In your code above, where your "// do something else" is, use
> AsyncTask or some other form of background thread to do the work
>
> Step #3: In the AnimationListener#onAnimationEnd() method, put your
> function() call.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Block when animation is running

2009-08-13 Thread whitech

Hi~~
I've met this problem:
I want to do something ( like intent another activity ) after an
animation is over. The code is given below:

TranslateAnimation s = new 
TranslateAnimation((prev-currentPos)
*movearea/100, 0, 0, 0);
AlphaAnimation a = new 
AlphaAnimation((float)prev/currentPos, 1);
star.startAnimation(s);
idle.startAnimation(a);
//do something else
function();

What I want to do is that the animations has already finish when
function() start. What can I do ?
I've struggle on it for a whole day.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Using png image in program

2009-08-12 Thread whitech

Hi~
Is there a limit color value in android?
When I use png-24 in program, it distortion ( the color value is much
lower, like png-8 or png-16 ), but it's ok when using shapedrawable in
xml.
How can I solve this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Distortion of images

2009-08-12 Thread whitech

Hi~
When I use png image ( with gradient color ) in programs, the color of
image is distortion -- the gradient color is change to a lower level.
Why would it happended? And how can I solve this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Hold http request from webview

2009-08-12 Thread whitech

Hi~~Now I'm facing this problem:
I want to hold part of http requests which send by webview, and send
after modified. How should I do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Cache the event of soft-keyboard pop up

2009-08-11 Thread whitech

And there is another problem. If I want to input something into a non-
edittext view, how should I call up the soft-keyboard(virtual
keyboard) and get the message input from the keyboard?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Cache the event of soft-keyboard pop up

2009-08-11 Thread whitech

Hi there, I've met a problem here.
I've got a control bar align-bottom at the screen, when I click a
editText, the soft-keyboard popup and push the control bar up. But I
don't want it like that. How can I catch the event of soft-keyboard
popup? Or let the control bar invisible when the keyboard popup and
visible when it down?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Let a view bigger than screen

2009-08-11 Thread whitech

Thank you~~

On 8月10日, 下午9时00分, Lutz Schönemann
 wrote:
> I use a ScrollView to do things like that.
>
> I don't know what type of view you use so this is an example for a  
> TextView:
>
>  android:layout_width="fill_parent">
>         
>         
> 
>
> Hope that works for you
>
> Am 10.08.2009 um 12:15 schrieb whitech:
>
>
>
>
>
> > Hi~
> > I've met a problem now. I've got a view that must be bigger than
> > 480*320, like 500*500, and using finger to move it so i can see all of
> > the  view. How should i set the LayoutParams of this view ?
> > Thank you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Let a view bigger than screen

2009-08-10 Thread whitech

Hi~
I've met a problem now. I've got a view that must be bigger than
480*320, like 500*500, and using finger to move it so i can see all of
the  view. How should i set the LayoutParams of this view ?
Thank you!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Hello every body, I'm new here.

2009-08-04 Thread whitech

Thank you, but I think 16MB is the limit of one program not the
emulator, doesn't it?
I've test many times, also in real machine like HTC MAGIC G2, the
program throw "OutOfMemoryError" when using about 16MB memory. Now I
am wondering if i can using more than 16MB memory in one program or
not.
There's another problem, how can I know how many memory my program is
using?

On 8月5日, 上午12时13分, "Balwinder Kaur (T-Mobile)"  wrote:
> You can add -memory for the emulator. If you are using Eclipse, edit
> your run configuration  to add the -memory command line option.
>
> go to /tools/emulator -help to see all the
> emulator options.
>
> Balwinder Kaur
> Open Source Development Center
> ·T· · ·Mobile· stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 3, 11:17 pm,whitech wrote:
>
>
>
> > Thank you very much, I can catch the error now. I've use catch
> > (Exception) not catch(Error) before so I can't catch it.
> > There is another problem, can I push the limit of memory higher? It is
> > a little too small with only 16 MB. If can, what should I do?
>
> > On 8月4日, 上午2时15分, "Yusuf T. Mobile"  wrote:
>
> > > Hello, to see the exception, look at logcat. You can do that from
> > > either the command line, or from the DDMS tab in Eclipse.
>
> > > Yusuf Saib
> > > Android
> > > ·T· · ·Mobile· stick together
> > > The views, opinions and statements in this email are those of the
> > > author solely in their individual capacity, and do not necessarily
> > > represent those of T-Mobile USA, Inc.
>
> > > On Aug 2, 7:55 pm,whitech wrote:
>
> > > > Hi all! I'm new here.
> > > > Now I've met a problem: when my program using too much memory, it die.
> > > > Is there an exception or something else? And how to get it?
> > > > Thank you very much!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Hello every body, I'm new here.

2009-08-03 Thread whitech

Thank you very much, I can catch the error now. I've use catch
(Exception) not catch(Error) before so I can't catch it.
There is another problem, can I push the limit of memory higher? It is
a little too small with only 16 MB. If can, what should I do?

On 8月4日, 上午2时15分, "Yusuf T. Mobile"  wrote:
> Hello, to see the exception, look at logcat. You can do that from
> either the command line, or from the DDMS tab in Eclipse.
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 2, 7:55 pm,whitech wrote:
>
>
>
> > Hi all! I'm new here.
> > Now I've met a problem: when my program using too much memory, it die.
> > Is there an exception or something else? And how to get it?
> > Thank you very much!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Hello every body, I'm new here.

2009-08-03 Thread whitech

Thank, I think that's an "java.lang.OutOfMemoryError", but when I use
try-catch statement at the "new" statement, I can't catch anything. Is
there another way to catch the error?

On 8月4日, 上午2时15分, "Yusuf T. Mobile"  wrote:
> Hello, to see the exception, look at logcat. You can do that from
> either the command line, or from the DDMS tab in Eclipse.
>
> Yusuf Saib
> Android
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 2, 7:55 pm,whitech wrote:
>
>
>
> > Hi all! I'm new here.
> > Now I've met a problem: when my program using too much memory, it die.
> > Is there an exception or something else? And how to get it?
> > Thank you very much!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Hello every body, I'm new here.

2009-08-03 Thread whitech

Hi all! I'm new here.
Now I've met a problem: when my program using too much memory, it die.
Is there an exception or something else? And how to get it?
Thank you very much!

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