Beste,
Kan iemand mij vertellen wat een Java code minimaal moet bevatten om het project in Eclipse op een Android toestel werkend te krijgen?
Als ik onderstaande "app" naar een .apk converteer en op mijn toestel installeer, krijg ik de melding dat de applicatie niet geïnstalleerd is. Op de emulator doet die het wel.
Enig idee hoe dat kan?
Layout
[xml]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
androidrientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hi, testing application" />
</LinearLayout>
[/xml]
Manifest
[xml]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mycompany.com"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".MyFirstAppActivity"
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>[/xml]
Kan iemand mij vertellen wat een Java code minimaal moet bevatten om het project in Eclipse op een Android toestel werkend te krijgen?
Als ik onderstaande "app" naar een .apk converteer en op mijn toestel installeer, krijg ik de melding dat de applicatie niet geïnstalleerd is. Op de emulator doet die het wel.
Enig idee hoe dat kan?
Layout
[xml]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
androidrientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hi, testing application" />
</LinearLayout>
[/xml]
Manifest
[xml]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mycompany.com"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".MyFirstAppActivity"
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>[/xml]
Laatst bewerkt door een moderator: