Hi i have gone through the Resource and wrote a code for launching
Notepad through a launcher program . (Downloaded the Notepad code from
google ) But i am getting and Error saying "Process
com.intent.launcher has stopped unexpectedly ". My code goes like this


Launcher.Java

package com.intent.launcher;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;


public class launcher extends Activity {
    /** Called when the activity is first created. */
    @Override

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       Intent i  =  new
Intent(this,com.android.demo.notepad1.Notepadv1.class);
       startActivity(i);

    }
}

AndroidManifest.Xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.intent.launcher"
      android:versionCode="1"
      android:versionName="1.0">
    <uses-permission android:name="android.permission.INTERNET" />
    <provider android:name=".Notepadv1"
android:authorities="com.android.demo.notepad1" />
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".launcher"
                  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>

        <uses-sdk android:minSdkVersion="5" />

</manifest>

Can u please tell me the Error in  this code..

Thanks ,







On Mar 14, 2:18 pm, TreKing <[email protected]> wrote:
> On Sun, Mar 14, 2010 at 2:11 AM, Sudheendra <[email protected]>wrote:
>
> > Can u please guide me for a resource which talks about generic intents
> > and how to use them.
>
> How about the official documentation? Just a 
> thought.http://developer.android.com/intl/de/reference/android/content/Intent...
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to