Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6339019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:33:54+00:00 2026-05-24T19:33:54+00:00

I have been following a video tutorial from O’reilly media going through the basics

  • 0

I have been following a video tutorial from O’reilly media going through the basics of android. The app is a flashlight and it’s only supposed to switch between two activities with the use of a button. But the app force close when i call startActivity(intent) in RedFlashlightActivity.java, the intent is only supposed to change activity. Eclipse does not recognice any errors either.

My thanks for any help!

I put the code in pastebin as I tought it would clog upp the post.

RedFlashlightActivity.java
http://pastebin.com/4ejjgaXp

GreenFlashlightActivity.java
http://pastebin.com/SdGV32kL

Manifest
http://pastebin.com/qjRACKix

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:33:55+00:00Added an answer on May 24, 2026 at 7:33 pm

    You have a typo in your manifest:

    android:name=".GreenFlashligtActivity"
    

    should be

    android:name=".GreenFlashlightActivity"
    

    Therefore the new Activity could not be started, because it was not found,and the App crashes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to NHibernate... I have been following this NHibernate Tutorial from Gabriel Schenker
I am new to Ajax and have been following a tutorial from JQuery.com. I
I'm a newcomer to Rails, and have been following the tutorial on the rails
I have been working with Xcode 4.2.1, but following some tutorials and videos from
So I'm new to rails and am actually following a video tutorial from Lynda.com
I'm following a php video tutorial (it's not online sorry) from Lynda.com and used
I have been following some MVC tutorials that connect to a sql mdf database
I have been following the usage of JavaScript for the past few years, and
I have been following the following post on using multiple ItemTemplates in a ListView
Hi I am quite new to php but i have been following some tutorials

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.