Click here to Skip to main content
13,297,048 members (49,875 online)
Rate this:
Please Sign up or sign in to vote.
See more:
1. Well , i am very new to android development.
2. I do have basic knowledge about xml and java
3. Problem: My app is supposed to splash the welcome screen and then load the login page. But it just splashes a blank screen for a second.
4. I don't understand why is the code failing.Any kind of help/inputs/pointers are greatly appreciated

1. Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
    android:versionName="1.0" >
        android:targetSdkVersion="17" /> 
        android:theme="@style/AppTheme" >
            android:label="@string/app_name" >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            android:name=".Login" >
package com.example.wi_fi_canic;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class WelcomeActivity extends Activity {
    final int display = 3000;
    //private int count = 0;
    protected void onCreate(Bundle savedInstanceState)
        new Handler().postDelayed(new Runnable(){
            public void run() {
                Intent i = new Intent(WelcomeActivity.this,Login.class);
        }, display);
     public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(, menu);
        return true;
import android.os.Bundle;
public class Login extends Activity{
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
Posted 3-Feb-13 4:50am
analogx 4-Feb-13 9:44am
What have tried to debug,one solution is to put toast in onCreate() method to check whether it is going in it or not...after that you can narrow down the search.Also what is your logcat saying about the application crash it must be giving some kind of error info about it.
harsha_n 4-Feb-13 21:57pm
Analogx,firstly Thank you. I have introduced a Toast statement in OnCreate() , the control doesn't go into the program. LogCat is throwing me the errors in an infinite fashion. I mean its not just few errors , there seems to be thousands of errors.

The code is here :

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171207.1 | Last Updated 3 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100