Final SDK build available (84853) deadline extended to Tuesday, August 5

by Mark Murphy » Fri, 18 Jul 2008 18:10:19 GMT


Sponsored Links
 > I am curious why it is taking more than a day for my posts to appear

What I'm seeing is the occasional trickle of messages, then a whole batch
of them in one shot, some fairly old. For example, your message came in as
a part of a group of nine new ones. I think yesterday I got a flood of
about two dozen all at one time.

I'm not signed up to get individual emails from other Google Groups, so I
have no idea if this is system-wide or what -- anybody know?

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ -- Available Now!



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. dalvikvm doesnt seem to recognize classes compiled with groovyc

Ive been trying to get groovy running on dalvikvm. And i have been trying the 
route via groovyc (groovyc -> jar -> dx -> dalvikvm).
For testing i put together a jarfile with 3 classfiles, one pure java, one 
javaclass that invokes a method on a groovy class, and a groovy class. 

The pure java class works flawlessly but the other two fails with these 
messages:

/system/bin/dalvikvm -classpath testdex.jar GroovyFromJ
Dalvik VM unable to find static main(String[]) in 'GroovyFromJ'
java.lang.VerifyError: GroovyFromJ
        at dalvik.system.NativeStart.main(Native Method)

And for the groovy file:

/system/bin/dalvikvm -classpath testdex.jar Groov
Dalvik VM unable to locate class 'Groov'
java.lang.NoClassDefFoundError: Groov
        at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Groov in loader 
dalvik.system.pathclassloa...@400190d8
        at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
        ... 1 more

What should happen is that the classes invoking groovy should throw a class 
not found exception since i don't have the groovy jar in the classpath yet 
(theres no point atm). 
Does anyone have a clue about whats going on here? I know the classfiles 
generated by groovyc is slightly different from javas, but they are "real" 
classfiles and should atleast load.

(This might be a dupe, my message didn't seem to get posted)


--~--~---------~--~----~------------~-------~--~----~

2. can't loading external webpage or image, javascript in WebView

when I load external web page, image or javascript file from local
webpage.
I can't see external image and can't load javascript or webpage.
but I can only see local image.
why I can't load external javascript, webpage or image?

here is the HTML source.
(of course, I filled right [daum open API key])

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Daum ÔéČAPI</title>
<script type="text/javascript" src="http://apis.daum.net/maps/maps.js?
apikey=[daum open API key]" charset="utf-8"></script>
</head>
<body>
       <div id="map" style="width:600px;height:400px;" style="border:
1px
solid #000"></div>
       <img src="http://4.bp.blogspot.com/_2-7AdSkZA7I/RlCnDhD3ZfI/
AAAAAAAAE9U/LEHMtyVLdY8/s400/CutyTale10.jpg">
       <img src="file:///android_asset/coffeebean.jpg">
       <script type="text/javascript">
               var map = new DMap("map", {point:new DLatLng
(37.48879895934866,
127.03130020103005), level:2} );
       </script>
       <iframe src="http://www.daum.com" width="300" height="150"></
iframe>
</body>
</html>

and I use this Activity source

package bo.my.android.test;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class OpenAPITest extends Activity {

       WebView webView;
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);

       webView = (WebView) findViewById(R.id.webView1);
       webView.setWebViewClient(new DaumMapClient());
       webView.getSettings().setJavaScriptEnabled(true);

       webView.loadUrl("file:///android_asset/daummap.html");
       //webView.loadUrl("http://www.daum.net");
   }
}

I check permission like this manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="bo.my.android.test"
     android:versionCode="1"
     android:versionName="1.0">
   <application android:icon="@drawable/icon" android:label="@string/
app_name">
       <activity android:name=".OpenAPITest"
                 android:label="@string/app_name">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category
android:name="android.intent.category.LAUNCHER" />
           </intent-filter>
       </activity>
   </application>
   <uses-permission android:name="android.permission.INTERNET"></uses-
permission>
   <uses-sdk android:minSdkVersion="2" />

</manifest>


--~--~---------~--~----~------------~-------~--~----~

3. G1 Unlock Code Free

4. word wrap on button

5. Netbook with Android

6. How to open wbxml stream ?

7. ScrolllBar style