You've put an <activity> tag inside another activity tag. You aren't
supposed to do that. Try using:

<manifest xmlns:android="http://schemas.android.com/apk/res/android";
    package="lars.browser"
    android:versionCode="1"
    android:versionName="1.0" xmlns:tools="http://schemas.android.com/tools";
tools:ignore="HardcodedDebugMode">

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

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:debuggable="true">
        <activity
            android:name=".BrowserActivity"
            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=".dagensbilde"
                android:label="@string/dagens_label"
                android:launchMode="standard"
                >
            </activity>
    </application>

</manifest>

On Sat, Jun 16, 2012 at 12:12 AM, Lars <lars.breum...@gmail.com> wrote:

> Were you able to see that from the error log?
>
>  I can't find any errors, when i look in my book it seems i wrote the
> same(with the modifications of the names). But i am probably not writing
> the same =)
>
> Here's my entire androidManifest.xml:
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>     package="lars.browser"
>     android:versionCode="1"
>     android:versionName="1.0" xmlns:tools="
> http://schemas.android.com/tools"; tools:ignore="HardcodedDebugMode">
>
>     <uses-sdk android:minSdkVersion="8" />
>
>     <application
>         android:icon="@drawable/ic_launcher"
>         android:label="@string/app_name"
>         android:debuggable="true">
>         <activity
>             android:name=".BrowserActivity"
>             android:label="@string/app_name" >
>             <activity
>                 android:name=".dagensbilde"
>                 android:label="@string/dagens_label"
>                 android:launchMode="standard"
>                 >
>             </activity>
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" />
>
>                 <category android:name="android.intent.category.LAUNCHER"
> />
>             </intent-filter>
>         </activity>
>     </application>
>
> </manifest>
>
> Den fredag den 15. juni 2012 19.35.11 UTC+2 skrev Raghav Sood:
>
>> You haven't declared one of your Activities in your manifest, or it has
>> been declared incorrectly. So yeah, we would need to see your manifest.
>>
>> On Fri, Jun 15, 2012 at 10:58 PM, Lars <lars.breum...@gmail.com> wrote:
>>
>>> I tried that. The logcat output shows me 14 red error lines.
>>> I don't understand very little of what it tell.
>>>
>>> Here is the errors: (do you need to see my androidManifest.xml?)
>>>
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): FATAL EXCEPTION: main
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): 
>>> android.content.**ActivityNotFoundException:
>>> Unable to find explicit activity class 
>>> {lars.browser/lars.browser.**dagensbilde};
>>> have you declared this activity in your AndroidManifest.xml?
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> android.app.Instrumentation.**checkStartActivityResult(**
>>> Instrumentation.java:1508)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> android.app.Instrumentation.**execStartActivity(**
>>> Instrumentation.java:1384)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.**
>>> startActivityForResult(**Activity.java:3190)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.app.Activity.**
>>> startActivity(Activity.java:**3297)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> lars.browser.BrowserActivity$**1.onClick(BrowserActivity.**java:24)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View.**
>>> performClick(View.java:3511)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.view.View$**
>>> PerformClick.run(View.java:**14105)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.**
>>> handleCallback(Handler.java:**605)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at android.os.Handler.**
>>> dispatchMessage(Handler.java:**92)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> android.os.Looper.loop(Looper.**java:137)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> android.app.ActivityThread.**main(ActivityThread.java:4575)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> java.lang.reflect.Method.**invokeNative(Native Method)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> java.lang.reflect.Method.**invoke(Method.java:511)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.
>>> **ZygoteInit$**MethodAndArgsCaller.run(**ZygoteInit.java:789)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at com.android.internal.os.
>>> **ZygoteInit.main(ZygoteInit.**java:556)
>>> 06-15 19:21:53.139: E/AndroidRuntime(28730): at
>>> dalvik.system.NativeStart.**main(Native Method)
>>>
>>>
>>> Den fredag den 15. juni 2012 17.49.15 UTC+2 skrev MagouyaWare:
>>>
>>>> When the app closes "unexpectedly" the best thing to do to figure out
>>>> the cause of the problem is to look at the logcat output... It will usually
>>>> tell you the file and the line where the crash happened, along with what
>>>> the problem is (e.g. NullPointerException, etc...)
>>>>
>>>> Thanks,
>>>> Justin Anderson
>>>> MagouyaWare Developer
>>>> http://sites.google.com/site/**m**agouyaware<http://sites.google.com/site/magouyaware>
>>>>
>>>>
>>>> On Fri, Jun 15, 2012 at 7:33 AM, Lars <lars.breum...@gmail.com> wrote:
>>>>
>>>>> I did as you wrote, and it seems to work.
>>>>> But, when I press the button, the app closes "unexpectedly". I have
>>>>> declared the next activity in the android manifest. I can't show you the
>>>>> code till I get home.
>>>>>
>>>>> Thanks for the help:-)
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Android Developers" group.
>>>>> To post to this group, send email to android-developers@**googlegroup*
>>>>> *s.com <android-developers@googlegroups.com>
>>>>> To unsubscribe from this group, send email to
>>>>> android-developers+**unsubscribe**@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/**group**/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com <android-developers@googlegroups.com>
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>>>
>>
>>
>>
>> --
>> Raghav Sood
>> Please do not email private questions to me as I do not have time to
>> answer them. Instead, post them to public forums where others and I can
>> answer and benefit from them.
>> http://www.appaholics.in/ - Founder
>> http://www.apress.com/**9781430239451<http://www.apress.com/9781430239451> -
>> Author
>> +91 81 303 77248
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

Reply via email to