Closed GoogleCodeExporter closed 9 years ago
It appears that I had to manually modify the AndroidManifest.xml by opening up
the file and adding the XML myself.
I also had to manually add the .Jar entry into Classpath.
Very strange as I haven't had this problem before. However it works now and I
recommend others who are having similar problems to check these files and make
sure they are correct.
Your Classpath file should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="lib/google-api-translate-java-0.95.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Your AndroidManifest.xml file should look something like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.TransCam"
android:versionCode="1"
android:versionName="1.0">
<uses-permission
android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/app_name" android:permission="android.permission.INTERNET">
<activity android:name=".Camera"
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>
</manifest>
Good luck!
Original comment by orochima...@hotmail.co.uk
on 14 May 2011 at 10:44
Original comment by rich.mid...@gmail.com
on 5 Nov 2011 at 5:20
Original issue reported on code.google.com by
orochima...@hotmail.co.uk
on 13 May 2011 at 11:57