I
idova
Neues Mitglied
- 0
Hallo Leute!
Ich habe das Problem, das bei dieser Anwendung nach der Installation auf Handy oder Simulator/Emulator
das Icon für diese App mehrfach auftaucht. Genauer: für jede Klasse!?
Aber wieso?
Ich habe das Problem, das bei dieser Anwendung nach der Installation auf Handy oder Simulator/Emulator
das Icon für diese App mehrfach auftaucht. Genauer: für jede Klasse!?
Aber wieso?
Code:
package de.rhapp;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
public class RHAppActivity extends Activity
{
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
/////////// button 1 AllesZumTraning
final Button allgTraining = (Button) findViewById(R.id.button1);
allgTraining.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view)
{
Intent myIntent = new Intent(view.getContext(),AllesZumTraning.class);
startActivity(myIntent);
}
}); //setOnClickListener
/////////// button 2 Fragen an den Einstazleiter
final Button FragenAnEL = (Button) findViewById(R.id.button2);
FragenAnEL.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view)
{
Intent myIntent = new Intent(view.getContext(),FragenAnEL.class);
startActivity(myIntent);
}
}); //setOnClickListener
} //onCreate(Bundle savedInstanceState)
}//RHAppActivity extends Activity
//-------------------------------------------------------------
File: AllesZumTraning.java
package de.rhapp;
import android.app.Activity;
import android.os.Bundle;
public class AllesZumTraning extends Activity
{
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.allgekines_training);
} //onCreate(Bundle savedInstanceState)
}//RHAppActivity extends Activity
//-------------------------------------------------------------
File: FragenAnEL.java
package de.rhapp;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class FragenAnEL extends Activity
{
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.fragen_an_el);
/////////// button 1
final Button FragenAnELT = (Button) findViewById(R.id.button1);
FragenAnELT.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view)
{
Intent myIntent = new Intent(view.getContext(),FragenAnELT.class);
startActivity(myIntent);
}
}); //setOnClickListener
/////////// button 1
final Button FragenAnELF = (Button) findViewById(R.id.button2);
FragenAnELF.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view)
{
Intent myIntent = new Intent(view.getContext(),FragenAnELF.class);
startActivity(myIntent);
}
}); //setOnClickListener
} //onCreate(Bundle savedInstanceState)
}//RHAppActivity extends Activity
//-------------------------------------------------------------
File: FragenAnELF.java
package de.rhapp;
import android.app.Activity;
import android.os.Bundle;
public class FragenAnELF extends Activity
{
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.fragen_an_el_f);
} //onCreate(Bundle savedInstanceState)
}//RHAppActivity extends Activity
//-------------------------------------------------------------
File: FragenAnELT.java
package de.rhapp;
import android.app.Activity;
import android.os.Bundle;
public class FragenAnELT extends Activity
{
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.fragen_an_el_t);
} //onCreate(Bundle savedInstanceState)
}//RHAppActivity extends Activity
//-------------------------------------------------------------
File: AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.rhapp"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="9" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".RHAppActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".AllesZumTraning"
android:label="Frage1">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".FragenAnEL"
android:label="Frage1">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="FragenAnELT"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="FragenAnELF"
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>
<supports-screens android:anyDensity="true" />
</manifest>