Я не получаю следующую исправленную ошибку (logcat):
E/AndroidRuntime( 1010): FATAL EXCEPTION: Thread-105
E/AndroidRuntime( 1010): android.content.ActivityNotFoundException: No Activity
found to handle Intent { act=com.androidpeople.xml.parsing.appz }
E/AndroidRuntime( 1010): at android.app.Instrumentation.checkStartActivit
yResult(Instrumentation.java:1512)
E/AndroidRuntime( 1010): at android.app.Instrumentation.execStartActivity
(Instrumentation.java:1384)
E/AndroidRuntime( 1010): at android.app.Activity.startActivityForResult(A
ctivity.java:3190)
E/AndroidRuntime( 1010): at android.app.Activity.startActivity(Activity.j
ava:3297)
E/AndroidRuntime( 1010): at com.androidpeople.xml.parsing.Splash$1.run(Sp
lash.java:30)
так много пытался, но, может быть, кто-то видит свет;
Splash.java. Нет ошибок компиляции в любом классе. только на эмуляторе приложение вылетает после заставки
package com.androidpeople.xml.parsing;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
public class Splash extends Activity {
protected boolean _active = true;
protected int _splashTime = 2000;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
Thread splash = new Thread(){
@Override
public void run(){
try{
int waited= 0;
while(_active && (waited < _splashTime)){
sleep(100);
if(_active){
waited += 100;
}
}
}catch(InterruptedException e){
}finally {
finish();
startActivity(new Intent(Splash.this , appz.class));
stop();
}
}
};
splash.start();
}
@Override
public boolean onTouchEvent(MotionEvent event){
if(event.getAction() == MotionEvent.ACTION_DOWN){
_active = false;
}
return true;
}
}
de appz.java - это:
package com.androidpeople.xml.parsing;
import android.app.Activity;
import android.os.Bundle;
public class appz extends Activity{
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.example);
}
}
Манифест:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.androidpeople.xml.parsing"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:label="Appz"
android:name=".appz" />
</application>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>
С этим банкоматом появляется экран, но происходит мгновенное падение