Error is sample XML - don't see the issue?

EdisonYP

New Member
I've been trying to run the sample code from this website : http://www.apriorit.com/our-company/dev-blog/227-handle-sms-on-androidI downloaded the code, posted it into eclipse and I am getting errors with the android manifest. This is where I'm getting the errors:\[code\]<?xml version="1.0" encoding="UTF-8"?>-<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.secure.sms" android:versionCode="1" android:versionName="0.1" >\[/code\]It's two errors, right after each other saying " Content is not allowed in prolog"Any ideas what is wrong with these lines?Here is the full manifest just in case:\[code\]<?xml version="1.0" encoding="UTF-8"?>-<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.secure.sms" android:versionCode="1" android:versionName="0.1" > <uses-sdk android:minSdkVersion="8" /> <uses-permission android:name="android.permission.WRITE_SMS" /> <uses-permission android:name="android.permission.READ_SMS" /> <uses-permission android:name="android.permission.RECEIVE_SMS" /> - <application android:icon="@drawable/icon" android:label="@string/app_name" > - <activity android:name=".SecureMessagesActivity" android:label="@string/app_name" > - <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> - <receiver android:name=".SmsReceiver" android:exported="true" > - <intent-filter android:priority="999" > <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter> </receiver> </application></manifest>\[/code\]
 
Back
Top