Reputation: 187
I just want to code for splashscreen. for that I used intent but I am getting error that instrumention source not found. I have two files splashscreen.java
and myapps.java
where I have use threading concept and called anothe activity as
finally
{
finish();
startActivity(new Intent("com.example.MyApps"));
stop();
}
@ startAcitivy I am getting axception please guide me do I have to modify androidmanifest file? if yes please provide me syntax for that.
Upvotes: 0
Views: 565
Reputation: 11251
If you're starting a new Activity with intent, I prefer using it like:
Intent intent = new Intent(MyClass.this, MyApps.class);
startActivity(intent);
and have proper entry on your manifest for your MyApps
class like:
<application>
.......
.....
<activity android:name="com.example.MyApps" />
........
</application>
Upvotes: 1
Reputation: 40168
Add
<activity android:name="com.example.MyApps"></activity>
in your manifest.
Upvotes: 1