P
Peerlings
Neues Mitglied
- 0
Hallo,
ich habe mich in den letzten Tagen ein bisschen mit der Erstellung einer relativ einfachen App beschäftigt. Doch leider bin ich nicht in der Lage, diese App zum Laufen zu bringen. Ahnung habe ich trotz einiger Recheren keine.
Ich kann die App zwar installieren, aber sie wird nicht angezeigt.
Könnt ihr mir vl. weiterhelfen?
Ich möchte eine simple App erstellen, die beim Ausführen sofort den Browser startet und eine URL öffnet.
Mein Java-Script:
package com.leogang;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public class ContinentalActivity extends Activity {
public void onCreate(Bundle bundle){
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(myIntent);
}
}
Mein Manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.leogang"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:exported="false"
android:name=".ContinentalActivity" >
<intent-filter>
</intent-filter>
</activity>
</application>
</manifest>
ich habe mich in den letzten Tagen ein bisschen mit der Erstellung einer relativ einfachen App beschäftigt. Doch leider bin ich nicht in der Lage, diese App zum Laufen zu bringen. Ahnung habe ich trotz einiger Recheren keine.
Ich kann die App zwar installieren, aber sie wird nicht angezeigt.
Könnt ihr mir vl. weiterhelfen?

Ich möchte eine simple App erstellen, die beim Ausführen sofort den Browser startet und eine URL öffnet.
Mein Java-Script:
package com.leogang;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public class ContinentalActivity extends Activity {
public void onCreate(Bundle bundle){
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(myIntent);
}
}
Mein Manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.leogang"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:exported="false"
android:name=".ContinentalActivity" >
<intent-filter>
</intent-filter>
</activity>
</application>
</manifest>