Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Android 4 Application Development
This is the forum to discuss the Wrox book Beginning Android 4 Application Development by Wei-Meng Lee; ISBN: 978-1-1181-9954-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android 4 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2012, 04:07 PM
Registered User
Points: 24, Level: 1
Points: 24, Level: 1 Points: 24, Level: 1 Points: 24, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2011
Location: Colorado
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Yahoo to ironmantis7x
Post Using intent has stopped message

When I run the UsingIntent code, I get an error in the emulator that says: "Unfortunately, UsingIntent has stopped"

Can someone help me understand this error? what could the possible cause be and what does this error code mean?

ironmantis7x
 
Old July 6th, 2012, 04:19 PM
Registered User
Points: 24, Level: 1
Points: 24, Level: 1 Points: 24, Level: 1 Points: 24, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2011
Location: Colorado
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Yahoo to ironmantis7x
Default [Solved]

Quote:
Originally Posted by ironmantis7x View Post
When I run the UsingIntent code, I get an error in the emulator that says: "Unfortunately, UsingIntent has stopped"

Can someone help me understand this error? what could the possible cause be and what does this error code mean?

ironmantis7x
I found the error -- it was in my Manifest file...

Thanks!

ironmantis7x
The Following User Says Thank You to ironmantis7x For This Useful Post:
nenad.bulatovic (December 6th, 2014)
 
Old February 18th, 2013, 03:01 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default aarr

Quote:
Originally Posted by ironmantis7x View Post
I found the error -- it was in my Manifest file...

Thanks!

ironmantis7x
What was the Manifest error!? lolz I can't get the UsingIntent to run either, after I click the "Display Second Activity" button.
 
Old February 18th, 2013, 03:24 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gakushya View Post
What was the Manifest error!? lolz I can't get the UsingIntent to run either, after I click the "Display Second Activity" button.
Okay I got it to work. The problem was that when I created the Intent in UsingIntent.java file in the method onClick() I wrote new Intent(".SecondActivity"). But you're supposed to give it the full package name, so it should have been new Intent("packagename.SecondActivity")
 
Old December 6th, 2014, 09:09 AM
Registered User
Points: 19, Level: 1
Points: 19, Level: 1 Points: 19, Level: 1 Points: 19, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2012
Location: Novi Sad
Posts: 4
Thanks: 4
Thanked 0 Times in 0 Posts
Talking action vs. category

Quote:
Originally Posted by ironmantis7x View Post
I found the error -- it was in my Manifest file...

Thanks!

ironmantis7x
Lost almost an hour to find that I typed

Code:
            <intent-filter>
                <action android:name="net.learn2develop.SecondActivity" />
                <action android:name="android.intent.category.DEFAULT" />
            </intent-filter>
instead of:

Code:
            <intent-filter>
                <action android:name="net.learn2develop.SecondActivity" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
Before I found your post I even wasn't looking at all at AndroidManifest.xml




Similar Threads
Thread Thread Starter Forum Replies Last Post
Activity vs intent ironmantis7x BOOK: Beginning Android 4 Application Development 0 July 6th, 2012 12:25 PM
Intent Filter TeaDrinkingGeek BOOK: Beginning Android Application Development 0 March 21st, 2012 07:55 AM
The use of: Intent.createChooser MountEverest107 BOOK: Beginning Android Application Development 0 March 10th, 2012 05:29 PM
Chapter 2 - Intent weimenglee BOOK: Beginning Android Application Development 0 May 13th, 2011 09:38 AM
Confused between the rules applied to Intent and Intent Filters fungi8210 BOOK: Professional Android 2 Application Development 1 March 10th, 2010 06:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.