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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:40:46+00:00 2026-06-15T03:40:46+00:00

Example I do not understand this example. How to apply in my program I

  • 0

Example
I do not understand this example.
How to apply in my program

I try to write In my program

General use that I can.
But replaced fragment.
I do not know how to use.

Pass the value of the object.

    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        View view = inflater.inflate(R.layout.templistmune, container, false);
FragmentManager DS2 = getFragmentManager();
    FragmentTransaction DSE2 = DS2.beginTransaction();
    Fragment DF2 = DS2.findFragmentById(R.id.frameLayout4);
    if (DF2 == null) {
        String title = "Fragment A";
        templistview2 usermune = new templistview2(title);
        DSE2.add(R.id.frameLayout4, usermune);
        DSE2.addToBackStack(null);
        DSE2.commit();   
/////////////////////////////////////////////////////////   
        Bundle bundle = new Bundle();
        String SAS="50";
        bundle.putString("ST", SAS);
        DF2.setArguments(bundle);
////////////////////////////////////////////////
        }

The pick value the object
templistview2.java

    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        View view = inflater.inflate(R.layout.templistmune2, container, false);
////////////////////////////////////////////////////////////////////////////////////
     Bundle bundle = this.getArguments();
    String myST = bundle.getString("ST", SAS);
 ///////////////////Error SAS cannot be resolved to a variable  /////////////////



        return view;

    }
  • 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-15T03:40:47+00:00Added an answer on June 15, 2026 at 3:40 am

    You’re only adding adding the Bundle when DF2 is null… so your program will either crash with a NullPointerException somewhere along the line or run but not have the Bundle passed.

    So place

        Bundle bundle = new Bundle();
        String SAS="50";
        bundle.putString("ST", SAS);
        DF2.setArguments(bundle);
    

    outside the if structure.

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

Sidebar

Related Questions

I understand that this may not necessarily apply to just @properties, but they would
Where can I find a RSA encrypt example that does not use NoPadding? --update
for example, in this one, I 'm not very understand about the this pointer,
I'm trying something like this, but this example does not work. jsObj = {};
I am trying to understand from this example if lubridate can be applied to
I do not understand the following example, let's say I have these functions: #
Let me try to explain by example. Say website is hosted at example.com (NOT
I'm having problems understanding how latest.integration works. I have an example that is not
I want to understand about variables, that has been used in returning function. This
I think the title for this question is probably wrong, but I'm not sure

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.