Oh okay, ich hatte gegoogelt, wie ich allg. eine neue Form hinzufüge.
Das habe ich dann über new Android XML File gemach, jetzt muss ich wohl die dazugehörige Activity erstellen?
Habs aktuell wieder ausgebessert/verändert nur noch eine zusätzliche Form/XML unbenannt in act_willkommen, sieht wie folgt aus:
Log:
104-10 19:37:45.825: D/AndroidRuntime(21183): Shutting down VM
204-10 19:37:45.825: W/dalvikvm(21183): threadid=1: thread exiting with uncaught exception (group=0x41843da0)
304-10 19:37:45.825: E/AndroidRuntime(21183): FATAL EXCEPTION: main
404-10 19:37:45.825: E/AndroidRuntime(21183): Process: com.example.testApp, PID: 21183
504-10 19:37:45.825: E/AndroidRuntime(21183): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
6
7{com.example.testApp/com.example.testApp.act_willkommen}: java.lang.ClassNotFoundException: Didn't find class
8
9"com.example.testApp.act_willkommen" on path: DexPathList[[zip file "/data/app/com.example.testApp.apk"],nativeLibraryDirectories=
10
11[/data/app-lib/com.example.testApp-151, /vendor/lib, /system/lib]]
1204-10 19:37:45.825: E/AndroidRuntime(21183): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2208)
1304-10 19:37:45.825: E/AndroidRuntime(21183): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2340)
1404-10 19:37:45.825: E/AndroidRuntime(21183): at android.app.ActivityThread.access$800(ActivityThread.java:157)
1504-10 19:37:45.825: E/AndroidRuntime(21183): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
1604-10 19:37:45.825: E/AndroidRuntime(21183): at android.os.Handler.dispatchMessage(Handler.java:102)
1704-10 19:37:45.825: E/AndroidRuntime(21183): at android.os.Looper.loop(Looper.java:157)
1804-10 19:37:45.825: E/AndroidRuntime(21183): at android.app.ActivityThread.main(ActivityThread.java:5293)
1904-10 19:37:45.825: E/AndroidRuntime(21183): at java.lang.reflect.Method.invokeNative(Native Method)
2004-10 19:37:45.825: E/AndroidRuntime(21183): at java.lang.reflect.Method.invoke(Method.java:515)
2104-10 19:37:45.825: E/AndroidRuntime(21183): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
2204-10 19:37:45.825: E/AndroidRuntime(21183): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
2304-10 19:37:45.825: E/AndroidRuntime(21183): at dalvik.system.NativeStart.main(Native Method)
2404-10 19:37:45.825: E/AndroidRuntime(21183): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.testApp.act_willkommen" on
25
26path: DexPathList[[zip file "/data/app/com.example.testApp-151.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.testApp-151, /vendor/lib,
27
28/system/lib]]
2904-10 19:37:45.825: E/AndroidRuntime(21183): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
3004-10 19:37:45.825: E/AndroidRuntime(21183): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
3104-10 19:37:45.825: E/AndroidRuntime(21183): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
3204-10 19:37:45.825: E/AndroidRuntime(21183): at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
3304-10 19:37:45.825: E/AndroidRuntime(21183): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2199)
3404-10 19:37:45.825: E/AndroidRuntime(21183): ... 11 more
begruessung.xml:
1<?xml version="1.0" encoding="utf-8"?>
2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:background="#ffff00"
6 android:columnCount="1"
7 android:orientation="vertical" >
8
9 <ImageView
10 android:id="@+id/imageView1"
11 android:layout_width="wrap_content"
12 android:layout_height="wrap_content"
13 android:layout_alignParentTop="true"
14 android:layout_centerHorizontal="true"
15 android:src="@drawable/lgt_logo" />
16
17 <ImageButton
18 android:id="@+id/ibtn_Login_KontoAuth"
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:layout_alignRight="@+id/imageView1"
22 android:layout_below="@+id/imageView1"
23 android:layout_marginTop="66dp"
24 android:src="@drawable/lock_unlocked" />
25
26 <ImageButton
27 android:id="@+id/ibtn_Login_Gmail"
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:layout_alignTop="@+id/ibtn_Login_KontoAuth"
31 android:layout_marginRight="20dp"
32 android:layout_toLeftOf="@+id/ibtn_Login_KontoAuth"
33 android:src="@drawable/email" />
34
35 <TextView
36 android:id="@+id/textView1"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_above="@+id/ibtn_Login_Gmail"
40 android:layout_toLeftOf="@+id/ibtn_Login_KontoAuth"
41 android:text="Login Methode:"
42 android:textAppearance="?android:attr/textAppearanceLarge" />
43
44</RelativeLayout>
Manifest:
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="com.example.testApp"
4 android:versionCode="1"
5 android:versionName="1.0" >
6
7 <uses-sdk
8 android:minSdkVersion="8"
9 android:targetSdkVersion="19" />
10 <uses-permission android:name="android.permission.INTERNET" />
11 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
12 <uses-permission android:name="android.permission.VIBRATE" />
13 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
14 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
15
16 <application
17 android:allowBackup="true"
18 android:icon="@drawable/ic_launcher"
19 android:label="@string/app_name"
20 android:theme="@style/AppTheme" >
21 <activity
22 android:name="com.example.testApp.act_willkommen"
23 android:label="@string/app_name" >
24 <intent-filter>
25 <action android:name="android.intent.action.MAIN" />
26
27 <category android:name="android.intent.category.LAUNCHER" />
28 </intent-filter>
29 </activity>
30 </application>
31
32</manifest>
— geändert am 10.04.2014, 19:43:36
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.