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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:09:17+00:00 2026-06-18T04:09:17+00:00

Chcę zrobić Android Viewpager as Image Slide Gallery. I have this ( Unfortunately, I

  • 0

Chcę zrobić Android Viewpager as Image Slide Gallery.

I have this ( Unfortunately, I have errors.):

Code + LogCat

To moderators: Please paste code here because i can’t… I have errors.

  • 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-06-18T04:09:18+00:00Added an answer on June 18, 2026 at 4:09 am

    You are definitely to launch a Fragment as an Activity

    <activity
            android:name="com.test.PlaceDetailsFragment"
    </activity>
    

    Fragments are contained in Activities; you cannot launch a Fragment as an Activity – they’re not interchangable. This means that you have to make a SherlockActivity that holds your Fragment (call the Activity MainActivity – simple and meaningful name), then you should be able to get everything launched (not guaranteeting the Fragment code is proper, there’s too much code to look at). Start with this tutorial, then move on to this tutorial. They both give you a lot of information about how to properly build android apps. Then once you’ve grasped the subject, don’t forget to change your manifest so it points to the Activity instead.

    <activity
        android:name="com.test.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
    
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    

    Eg, in your main.xml layout, you should have:

    <fragment   android:name="com.test.PlaceDetailsFragment"
                android:id="@+id/fragment"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please show me an example code on how to set image as wallpaper using
I follow the example in this link : Viewpager Example in android its work
I implemented a ViewPager inside my app (according to this recent blog entry: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
I have used both Gallery and ViewPager widgets, I am fetching images from web
Possible Duplicate: android viewPager implementation Can someone please tell me how I can properly
Im using this guide to implement a ViewPager : http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-horizontal-view-paging/ This is my main.xml
I have used the android v4 viewPager widget. I want to go to a
I am using the android ViewPager : http://developer.android.com/reference/android/support/v4/view/ViewPager.html This class allows you to basically
In my code I import android.support.v4.view.ViewPager but I get a ClassNotFoundException: android.support.v4.view.ViewPager when I
How can I add a progress bar to a ViewPager in Android? My scenario

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.