Emulator not finding java/javascript html program

by Thomas » Mon, 13 Apr 2009 12:14:22 GMT


Sponsored Links
 Hi Guys:
I've written a small javascript - html program
http://gpsmancer/android/amdroidgpstest.html to test linking to an
android platform.  With this I've written as small program that uses a
java  wv.loadUrl( " http://gpsmancer.com/android/androidgpstest.html" ;)
in a android java program. The idea is to provide GPS latitude and
longitude to an html form program.  When I run the app using the
emulator I get "Web page not available". If I go to the android
emulator web browser it finds the url without difficulty.  It has not
trouble finding other URLs as well.  My question: do I need to set
some sort of emulator setting or permission or does the emulator not
work with java/javascript/html?  For those that care about geocaching,
the game can be seen at  http://gmpmancer.com  . There are several
variations and I am attempting to extend the game to android.  I have
a netbook version working on my ASUS netbook running winXP but the
android platform seems to be a logical extension.  Some of the
versions work on IPhone, and various cellphones but in a crippled
sense.
Regards, Tom Birchmire

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



Other Threads

1. Setting File Permissions

If I have a File object which points to a non-existent directory
(which is within my apps 'app_data' space), I can call file.mkdir() or
file.mkdirs() to create the directories.  However, if I do this, the
directories seem to be created with permissions set for access only by
the owner (i.e. drwx------).  Then if I write a .mp3 file into that
directory, I cannot later play that .mp3 file using the MediaPlayer,
apparently because it does not have permission to read the file (note
that if I put the .mp3 file directly in the 'app_data' directory, it
works fine).  How can I set the permissions on the directories that I
create so that the MediaPlayer can access the files?

Thanks.

-- 

2. Problem with ListView on a 480x854 device

I have a ListView where the rows are not scaled properly under certain
circumstances.  If I build my project using the following manifest,
then the ListView looks like: http://gabysoft.com/images/androidgood.png.
However, if I change the minSdkVersion to 4 (and that is the ONLY
change), then the ListView looks like: 
http://gabysoft.com/images/androidbad.png.
Note that if I run on a 320x480 device, then everything works fine.

Can anyone explain what is going on here?

Thanks

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.gabysoft.myapp"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="com.android.vending.CHECK_LICENSE" />
    <uses-sdk android:minSdkVersion="3" />
    <application android:label="@string/app_name"
android:debuggable="true" android:icon="@drawable/icon">
        <activity android:name=".MyApp"
                  android:label="@string/app_name"
                  android:theme="@android:style/Theme.NoTitleBar"
                  android:configChanges="orientation|keyboardHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

-- 

3. charging taxes

4. Can Android 2.X connect to 3G and Wifi data networks simultaneously?

5. New student, willing to learn!

6. Any API's or code flow

7. Starting on android...where to start.