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 883771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:38:51+00:00 2026-05-15T12:38:51+00:00

Is there a way to start an activity from a view? I have this

  • 0

Is there a way to start an activity from a view? I have this nice view that renders these menu buttons and when they click a particular button (Trapped in an onTouch event) I want to start the “clicked” activity.

It seems that there from my view startActivity method is uncallable. So that leads me to believe that there is no way to do this, in which case I guess I am asking, what do I do here when I want this menu to have a view that animates drawables and can get touches to know what “button” was pressed to know what activity to start?

I have been searching and nothing seems to fit what I am looking for. I suspect since I cannot find it that it probably breaks convention in some way and in which case, what is the proper way to do this?

I have another Activity that starts this cool scrolling tile map view. When the user clicks on a specific tile I would like to load up an entirely different view (maybe even activity not sure which I need) based on the tileID clicked. This new View or activity would show all the items in the cell that was clicked (imagine the map with cells , each cell has stuff in it. When the user clicks on the cell then a new view happens that shows all this stuff as cool drawables, like it “zoomed in” on the cell).

I would think I need the same thing, when the user is inside my scrolling map view and they push down then up I get what cell they clicked on and use that to initialize the activity that will launch showing the zoomed in state of things (via drawables using a new kind of view i suspect)

  • 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-15T12:38:52+00:00Added an answer on May 15, 2026 at 12:38 pm

    Is there a way to start an activity
    from a view?

    Arguably, the View should tell the Activity that hosts it to start an activity, via a registered callback method. I am not a fan of the code organization you have described here (but, admittedly, based solely on the description).

    However, if you really want to have the View start the activity, have the View call getContext().startActivity().

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

Sidebar

Related Questions

Is there a way to start a script from another process, so that if
Is there a way to start an ordered list from a specific index while
Is there any way to start foobar.js WSH-script in order that standard Task Manager
Is there a way for me to have eclipse start and point to a
I have a simple class, BoundedView that extends View . I'm doing this primarily
I have an application that displays contacts from the contact book. This isnt hard:
Is there a way to start an instance of eclipse, passing it some sort
Is there a way to start off showing a dialog modally, but then instead
Using Win32-specific APIs, is there an easy way to start an external application to
Is there a way in Firebug to start a new script file to apply

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.