Skip to main content

Android lwuit UnknownHostException

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
68060
Offline
Joined: 2011-08-29

my network code works fine on the wtk emu but on my android device I get UnknownHostException - is there some reason why the networking would break on android?

I also appear to get a null pointer calling showForm but im not sure if its related to the network error

Here is my errors from logcat - theres some font stuff in there too but i dont mind if its not causing issues..

D/LWUIT ( 3779): showKeyboard false|false
I/System.out( 3779): ####StateMachine:They chose to send via GPRS
I/System.out( 3779): ####StateMachine:doNetworkCall: http://www.himate.in/api/reminderapp.php?reqdata=register&name=ffdf&mobile_
no=5555&email_id=55555&insurance_company=1&lic_designation=Manager&lic_code=555&lic_branch=1&lic_city=&lic_state=&address=&city=
&state=&pin_code=111&password=null&product_key=123&terms_accept=true&imei=null
I/System.out( 3779): ####StateMachine:go to networking screen..
D/szipinf ( 3779): Initializing inflate state
D/szipinf ( 3779): Initializing zlib to inflate
W/System.err( 3779): java.net.UnknownHostException: www.himate.in
D/LWUIT ( 3779): font lookup fail: Monospaced-plain-13;
D/LWUIT ( 3779): java.lang.NumberFormatException: unable to parse '13;' as integer
D/LWUIT ( 3779): at java.lang.Integer.parse(Integer.java:383)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:372)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:332)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidFont.<init>(AndroidFont.java:126)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidImplementation.loadNativeFont(AndroidImplementation.java:627)
D/LWUIT ( 3779): at com.sun.lwuit.Font.create(Font.java:200)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.loadFont(Resources.java:987)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.openFile(Resources.java:187)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.<init>(Resources.java:131)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.open(Resources.java:547)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.fetchResourceFile(UIBuilder.java:1317)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:2062)
D/LWUIT ( 3779): at userclasses.StateMachine.doNetworkCall(StateMachine.java:1581)
D/LWUIT ( 3779): at userclasses.StateMachine.onRegistrationAPP5_ActivateyyyuuAction(StateMachine.java:12576)
D/LWUIT ( 3779): at generated.StateMachineBase.handleComponentAction(StateMachineBase.java:3815)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2231)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
D/LWUIT ( 3779): at com.sun.lwuit.Button.fireActionEvent(Button.java:392)
D/LWUIT ( 3779): at com.sun.lwuit.Button.released(Button.java:423)
D/LWUIT ( 3779): at com.sun.lwuit.Button.pointerReleased(Button.java:495)
D/LWUIT ( 3779): at com.sun.lwuit.Form.pointerReleased(Form.java:1966)
D/LWUIT ( 3779): at com.sun.lwuit.Component.pointerReleased(Component.java:2106)
D/LWUIT ( 3779): at com.sun.lwuit.Display.handleEvent(Display.java:1543)
D/LWUIT ( 3779): at com.sun.lwuit.Display.edtLoopImpl(Display.java:826)
D/LWUIT ( 3779): at com.sun.lwuit.Display.mainEDTLoop(Display.java:776)
D/LWUIT ( 3779): at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)
D/LWUIT ( 3779): at java.lang.Thread.run(Thread.java:1019)
W/System.err( 3779): at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
W/System.err( 3779): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
W/System.err( 3779): at java.net.InetAddress.getAllByName(InetAddress.java:256)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.<init>(HttpConnection.java:69)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.<init>(HttpConnection.java:48)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection$Address.connect(HttpConnection.
java:322)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnectionPool.get(HttpConnectionPool.java
:89)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getHttpConnection(HttpUR
LConnectionImpl.java:285)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.makeConnection(HttpURLCo
nnectionImpl.java:267)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.retrieveResponse(HttpURL
ConnectionImpl.java:1018)
W/System.err( 3779): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getResponseCode(HttpURLC
onnectionImpl.java:726)
W/System.err( 3779): at com.sun.lwuit.io.impl.PlatformImplementation.getResponseCode(PlatformImplementation.java:170)
W/System.err( 3779): at com.sun.lwuit.io.ConnectionRequest.performOperation(ConnectionRequest.java:245)
W/System.err( 3779): at com.sun.lwuit.io.NetworkManager$NetworkThread.run(NetworkManager.java:222)
W/System.err( 3779): at java.lang.Thread.run(Thread.java:1019)
D/LWUIT ( 3779): font lookup fail: Monospaced-plain-13;
D/LWUIT ( 3779): java.lang.NumberFormatException: unable to parse '13;' as integer
D/LWUIT ( 3779): at java.lang.Integer.parse(Integer.java:383)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:372)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:332)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidFont.<init>(AndroidFont.java:126)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidImplementation.loadNativeFont(AndroidImplementation.java:627)
D/LWUIT ( 3779): at com.sun.lwuit.Font.create(Font.java:200)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.loadFont(Resources.java:987)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.openFile(Resources.java:187)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.<init>(Resources.java:131)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.open(Resources.java:547)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.fetchResourceFile(UIBuilder.java:1317)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:2062)
D/LWUIT ( 3779): at userclasses.StateMachine.doNetworkCall(StateMachine.java:1581)
D/LWUIT ( 3779): at userclasses.StateMachine.onRegistrationAPP5_ActivateyyyuuAction(StateMachine.java:12576)
D/LWUIT ( 3779): at generated.StateMachineBase.handleComponentAction(StateMachineBase.java:3815)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2231)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
D/LWUIT ( 3779): at com.sun.lwuit.Button.fireActionEvent(Button.java:392)
D/LWUIT ( 3779): at com.sun.lwuit.Button.released(Button.java:423)
D/LWUIT ( 3779): at com.sun.lwuit.Button.pointerReleased(Button.java:495)
D/LWUIT ( 3779): at com.sun.lwuit.Form.pointerReleased(Form.java:1966)
D/LWUIT ( 3779): at com.sun.lwuit.Component.pointerReleased(Component.java:2106)
D/LWUIT ( 3779): at com.sun.lwuit.Display.handleEvent(Display.java:1543)
D/LWUIT ( 3779): at com.sun.lwuit.Display.edtLoopImpl(Display.java:826)
D/LWUIT ( 3779): at com.sun.lwuit.Display.mainEDTLoop(Display.java:776)
D/LWUIT ( 3779): at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)
D/LWUIT ( 3779): at java.lang.Thread.run(Thread.java:1019)
D/LWUIT ( 3779): font lookup fail: Monospaced-plain-13;
D/LWUIT ( 3779): java.lang.NumberFormatException: unable to parse '13;' as integer
D/LWUIT ( 3779): at java.lang.Integer.parse(Integer.java:383)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:372)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:332)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidFont.<init>(AndroidFont.java:126)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidImplementation.loadNativeFont(AndroidImplementation.java:627)
D/LWUIT ( 3779): at com.sun.lwuit.Font.create(Font.java:200)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.loadFont(Resources.java:987)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.openFile(Resources.java:187)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.<init>(Resources.java:131)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.open(Resources.java:547)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.fetchResourceFile(UIBuilder.java:1317)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:2062)
D/LWUIT ( 3779): at userclasses.StateMachine.doNetworkCall(StateMachine.java:1581)
D/LWUIT ( 3779): at userclasses.StateMachine.onRegistrationAPP5_ActivateyyyuuAction(StateMachine.java:12576)
D/LWUIT ( 3779): at generated.StateMachineBase.handleComponentAction(StateMachineBase.java:3815)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2231)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
D/LWUIT ( 3779): at com.sun.lwuit.Button.fireActionEvent(Button.java:392)
D/LWUIT ( 3779): at com.sun.lwuit.Button.released(Button.java:423)
D/LWUIT ( 3779): at com.sun.lwuit.Button.pointerReleased(Button.java:495)
D/LWUIT ( 3779): at com.sun.lwuit.Form.pointerReleased(Form.java:1966)
D/LWUIT ( 3779): at com.sun.lwuit.Component.pointerReleased(Component.java:2106)
D/LWUIT ( 3779): at com.sun.lwuit.Display.handleEvent(Display.java:1543)
D/LWUIT ( 3779): at com.sun.lwuit.Display.edtLoopImpl(Display.java:826)
D/LWUIT ( 3779): at com.sun.lwuit.Display.mainEDTLoop(Display.java:776)
D/LWUIT ( 3779): at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)
D/LWUIT ( 3779): at java.lang.Thread.run(Thread.java:1019)
D/LWUIT ( 3779): font lookup fail: Monospaced-plain-13;
D/LWUIT ( 3779): java.lang.NumberFormatException: unable to parse '13;' as integer
D/LWUIT ( 3779): at java.lang.Integer.parse(Integer.java:383)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:372)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:332)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidFont.<init>(AndroidFont.java:126)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidImplementation.loadNativeFont(AndroidImplementation.java:627)
D/LWUIT ( 3779): at com.sun.lwuit.Font.create(Font.java:200)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.loadFont(Resources.java:987)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.openFile(Resources.java:187)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.<init>(Resources.java:131)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.open(Resources.java:547)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.fetchResourceFile(UIBuilder.java:1317)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:2062)
D/LWUIT ( 3779): at userclasses.StateMachine.doNetworkCall(StateMachine.java:1581)
D/LWUIT ( 3779): at userclasses.StateMachine.onRegistrationAPP5_ActivateyyyuuAction(StateMachine.java:12576)
D/LWUIT ( 3779): at generated.StateMachineBase.handleComponentAction(StateMachineBase.java:3815)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2231)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
D/LWUIT ( 3779): at com.sun.lwuit.Button.fireActionEvent(Button.java:392)
D/LWUIT ( 3779): at com.sun.lwuit.Button.released(Button.java:423)
D/LWUIT ( 3779): at com.sun.lwuit.Button.pointerReleased(Button.java:495)
D/LWUIT ( 3779): at com.sun.lwuit.Form.pointerReleased(Form.java:1966)
D/LWUIT ( 3779): at com.sun.lwuit.Component.pointerReleased(Component.java:2106)
D/LWUIT ( 3779): at com.sun.lwuit.Display.handleEvent(Display.java:1543)
D/LWUIT ( 3779): at com.sun.lwuit.Display.edtLoopImpl(Display.java:826)
D/LWUIT ( 3779): at com.sun.lwuit.Display.mainEDTLoop(Display.java:776)
D/LWUIT ( 3779): at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)
D/LWUIT ( 3779): at java.lang.Thread.run(Thread.java:1019)
D/LWUIT ( 3779): font lookup fail: Monospaced-plain-13;
D/LWUIT ( 3779): java.lang.NumberFormatException: unable to parse '13;' as integer
D/LWUIT ( 3779): at java.lang.Integer.parse(Integer.java:383)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:372)
D/LWUIT ( 3779): at java.lang.Integer.parseInt(Integer.java:332)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidFont.<init>(AndroidFont.java:126)
D/LWUIT ( 3779): at com.sun.lwuit.impl.android.AndroidImplementation.loadNativeFont(AndroidImplementation.java:627)
D/LWUIT ( 3779): at com.sun.lwuit.Font.create(Font.java:200)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.loadFont(Resources.java:987)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.openFile(Resources.java:187)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.<init>(Resources.java:131)
D/LWUIT ( 3779): at com.sun.lwuit.util.Resources.open(Resources.java:547)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.fetchResourceFile(UIBuilder.java:1317)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:2062)
D/LWUIT ( 3779): at userclasses.StateMachine.doNetworkCall(StateMachine.java:1581)
D/LWUIT ( 3779): at userclasses.StateMachine.onRegistrationAPP5_ActivateyyyuuAction(StateMachine.java:12576)
D/LWUIT ( 3779): at generated.StateMachineBase.handleComponentAction(StateMachineBase.java:3815)
D/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2231)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
D/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
D/LWUIT ( 3779): at com.sun.lwuit.Button.fireActionEvent(Button.java:392)
D/LWUIT ( 3779): at com.sun.lwuit.Button.released(Button.java:423)
D/LWUIT ( 3779): at com.sun.lwuit.Button.pointerReleased(Button.java:495)
D/LWUIT ( 3779): at com.sun.lwuit.Form.pointerReleased(Form.java:1966)
D/LWUIT ( 3779): at com.sun.lwuit.Component.pointerReleased(Component.java:2106)
D/LWUIT ( 3779): at com.sun.lwuit.Display.handleEvent(Display.java:1543)
D/LWUIT ( 3779): at com.sun.lwuit.Display.edtLoopImpl(Display.java:826)
D/LWUIT ( 3779): at com.sun.lwuit.Display.mainEDTLoop(Display.java:776)
D/LWUIT ( 3779): at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)
D/LWUIT ( 3779): at java.lang.Thread.run(Thread.java:1019)
W/System.err( 3779): java.lang.NullPointerException
W/System.err( 3779): at com.sun.lwuit.util.UIBuilder.isSameBackDestination(UIBuilder.java:2047)
W/System.err( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:1983)
W/System.err( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:2063)
W/System.err( 3779): at userclasses.StateMachine.doNetworkCall(StateMachine.java:1581)
W/System.err( 3779): at userclasses.StateMachine.onRegistrationAPP5_ActivateyyyuuAction(StateMachine.java:12576)
W/System.err( 3779): at generated.StateMachineBase.handleComponentAction(StateMachineBase.java:3815)
W/System.err( 3779): at com.sun.lwuit.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2231)
W/System.err( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
W/System.err( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
W/System.err( 3779): at com.sun.lwuit.Button.fireActionEvent(Button.java:392)
W/System.err( 3779): at com.sun.lwuit.Button.released(Button.java:423)
W/System.err( 3779): at com.sun.lwuit.Button.pointerReleased(Button.java:495)
W/System.err( 3779): at com.sun.lwuit.Form.pointerReleased(Form.java:1966)
W/System.err( 3779): at com.sun.lwuit.Component.pointerReleased(Component.java:2106)
W/System.err( 3779): at com.sun.lwuit.Display.handleEvent(Display.java:1543)
W/System.err( 3779): at com.sun.lwuit.Display.edtLoopImpl(Display.java:826)
W/System.err( 3779): at com.sun.lwuit.Display.mainEDTLoop(Display.java:776)
W/System.err( 3779): at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)
W/System.err( 3779): at java.lang.Thread.run(Thread.java:1019)
E/LWUIT ( 3779): Err on EDT
E/LWUIT ( 3779): java.lang.NullPointerException
E/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.isSameBackDestination(UIBuilder.java:2047)
E/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:1983)
E/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder.showForm(UIBuilder.java:2063)
E/LWUIT ( 3779): at userclasses.StateMachine.doNetworkCall(StateMachine.java:1581)
E/LWUIT ( 3779): at userclasses.StateMachine.onRegistrationAPP5_ActivateyyyuuAction(StateMachine.java:12576)
E/LWUIT ( 3779): at generated.StateMachineBase.handleComponentAction(StateMachineBase.java:3815)
E/LWUIT ( 3779): at com.sun.lwuit.util.UIBuilder$FormListener.actionPerformed(UIBuilder.java:2231)
E/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionSync(EventDispatcher.java:312)
E/LWUIT ( 3779): at com.sun.lwuit.util.EventDispatcher.fireActionEvent(EventDispatcher.java:257)
E/LWUIT ( 3779): at com.sun.lwuit.Button.fireActionEvent(Button.java:392)
E/LWUIT ( 3779): at com.sun.lwuit.Button.released(Button.java:423)
E/LWUIT ( 3779): at com.sun.lwuit.Button.pointerReleased(Button.java:495)
E/LWUIT ( 3779): at com.sun.lwuit.Form.pointerReleased(Form.java:1966)
E/LWUIT ( 3779): at com.sun.lwuit.Component.pointerReleased(Component.java:2106)
E/LWUIT ( 3779): at com.sun.lwuit.Display.handleEvent(Display.java:1543)
E/LWUIT ( 3779): at com.sun.lwuit.Display.edtLoopImpl(Display.java:826)
E/LWUIT ( 3779): at com.sun.lwuit.Display.mainEDTLoop(Display.java:776)
E/LWUIT ( 3779): at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)
E/LWUIT ( 3779): at java.lang.Thread.run(Thread.java:1019)
D/dalvikvm( 3779): GC_CONCURRENT freed 1020K, 54% free 3110K/6663K, external 3281K/3616K, paused 2ms+3ms
I/System.out( 3779): DATE STRING IS CALLED FROM STATEMACHINE HERE
I/System.out( 3779): LIVE TIME: Time now : 2:16 AM 27/01/2012
I/System.out( 3779): time label was null cant set time on it
D/dalvikvm( 2976): GC_EXPLICIT freed 20K, 49% free 2774K/5379K, external 1625K/2137K, paused 68ms

my manifest:

<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.me.androidapplication5">
<application>
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<activity android:name=".MainActivity" android:label="MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
68060
Offline
Joined: 2011-08-29

Apologies for panic - I adjusted my manifest as follows and it worked - it was the INTERNET permissions...

<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.me.androidapplication5">
<application>

<activity android:name=".MainActivity" android:label="MainActivity">
<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.SEND_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
</manifest>