[android-beginners] How can I find out the text height from a paint object?

2009-02-17 Thread ying...@gmail.com

Hi,

If I have a android.graphics.Paint, how can I find out the ascent/
descent of the text for that Paint object?

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] Problems in running ADT on eclipse on Mac

2009-01-28 Thread ying...@gmail.com

Hi,

I am running ADT on eclipse on Mac.
I have setup JAVA_HOME and java is pointing to Java 1.6.

$which java
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/
java

$ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

But I am getting class unsupported version error in my .log file.
SESSION 2009-01-28 15:38:55.720
---
eclipse.buildId=M20080911-1700
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments:  -keyring /Users/samuel/.eclipse_keyring -
showlocation
Command-line arguments:  -os macosx -ws carbon -arch x86 -keyring /
Users/samuel/
.eclipse_keyring -consoleLog -showlocation

!ENTRY com.android.ide.eclipse.adt 4 0 2009-01-28 15:39:03.540
!MESSAGE Failed to start com.android.ide.eclipse.editors
!STACK 0
org.osgi.framework.BundleException: Exception in
com.android.ide.eclipse.editors
.EditorsPlugin.start() of bundle com.android.ide.eclipse.editors.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:1028)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:265)
at com.android.ide.eclipse.adt.AdtPlugin$11.run(Unknown
Source)
Caused by: java.lang.UnsupportedClassVersionError: Bad version number
in .class
file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at
com.android.ide.eclipse.editors.resources.manager.ProjectClassLoader.
findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.loadAndParseRClass(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.projectOpenedWithWorkspace(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.ResourceMonitor.add
ProjectListener(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.setupMonitor(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.ResourceManager.set
up(Unknown Source)
at com.android.ide.eclipse.editors.EditorsPlugin.start(Unknown
Source)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl
$2.run(Bund
leContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:1003)
... 4 more
Root exception:
java.lang.UnsupportedClassVersionError: Bad version number in .class
file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.lang.ClassLoader.defineClass(ClassLoader.java:520)
at
com.android.ide.eclipse.editors.resources.manager.ProjectClassLoader.
findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.loadAndParseRClass(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.projectOpenedWithWorkspace(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.ResourceMonitor.add
ProjectListener(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.CompiledResourcesMo
nitor.setupMonitor(Unknown Source)
at
com.android.ide.eclipse.editors.resources.manager.ResourceManager.set
up(Unknown Source)
at com.android.ide.eclipse.editors.EditorsPlugin.start(Unknown
Source)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl
$2.run(Bund
leContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:1003)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:984)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:265)
at com.android.ide.eclipse.adt.AdtPlugin$11.run(Unknown
Source)


Can you please tell me how can I fix my problem?

Thank you.

--~--~-~--~~~---~--~~
You received this messag

[android-beginners] How to run the 'AllTests' of ApiDemos in the android sdk sample

2009-01-28 Thread ying...@gmail.com

Hi,

I am trying to run the 'AllTests' of ApiDemos in the android sdk
sample.

When I run the
I get this when I select 'AllTests' and then click 'Debug->Run as
Junit Test'

Problems Launching JUnit Tests
The input type of the launch configuration does not exist'

Can you please tell me how to fix my problem?

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
-~--~~~~--~~--~--~---