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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:25:11+00:00 2026-06-16T17:25:11+00:00

I have a fragment which has a button. Once the button is clicked the

  • 0

I have a fragment which has a button. Once the button is clicked the following code executes:

@Override
    public void onClick(View clickedView) {
        switch(clickedView.getId()) {
            case R.id.btnTest:
                FragmentManager fm = getSherlockActivity().getSupportFragmentManager();
                MyDialog dialog = new MyDialog();
                dialog.show(fm, "TaskDeadlineDialog");
                break;
        }
    }

My Dialog Fragment is as follows:

public class MyDialog extends DialogFragment 
{
    public MyDialog() {

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedBundleInstance) {
        View currentView = inflater.inflate(R.layout.my_dialog_layout, parent);
        System.out.println("Inflated!");
        return currentView;
    }

}

What happens is, the dialog doesn’t show and the app stops responding. I am testing this on Samsung SII with CM9 ICS.

Edit: Logcat shows nothing either.

12-21 16:05:16.970: I/System.out(15753): debugger has settled (1304)
12-21 16:05:18.250: D/dalvikvm(15753): VFY: replacing opcode 0x6f at 0x0006
12-21 16:05:18.445: I/System.out(15753): Got ID: 1
12-21 16:05:20.430: I/System.out(15753): List position: 0
12-21 16:05:23.225: I/System.out(15753): Inflated!
12-21 16:05:38.510: D/dalvikvm(15753): GC_CONCURRENT freed 2265K, 41% free 4867K/8131K, paused 3ms+6ms
12-21 16:05:51.895: D/dalvikvm(15753): GC_CONCURRENT freed 1797K, 42% free 4787K/8131K, paused 2ms+2ms

..etc

What am i doing wrong?

  • 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-16T17:25:12+00:00Added an answer on June 16, 2026 at 5:25 pm

    Seems like the following widget which i was inflating inside my dialog was causing the issue:
    https://github.com/SimonVT/android-calendarview

    I’ll make sure i report this to the developer on the project’s issues page.

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

Sidebar

Related Questions

I have created an applet which has a necessity to execute the following code:
I have an activity which has a fragment. XML: <fragment android:name=com.example.androidcalculator.ResultFragment android:id=@+id/result_fragment android:layout_weight=1 android:layout_width=match_parent
I have a listview in a fragment container. Each view within the list has
Say I have an activity that has fragments added programmatically: private void animateToFragment(Fragment newFragment,
I have a fragment which has its own state (selected buttons, etc). That state
So I have an Activity which has a FragmentPagerAdapter and inside each fragment I
I have a HTML fragment which contains two anchor tags in various parts of
I have a fragment of html which is contained in a property of a
Lets say you have a fragment of the page which displays the most recent
I have an Activity which uses a Fragment . I simply want to pass

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.