AKMafia001's Profile User Rating: -----

Reputation: 237 Stalwart
Active Posts:
747 (0.46 per day)
11-June 11
Profile Views:
Last Active:
User is offline Today, 09:34 AM

Previous Fields

Who Cares
OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   AKMafia001 has not set their status

Posts I've Made

  1. In Topic: Cant display custom listView from base adapter

    Posted 1 Dec 2015

    The problem is in your MyAdapter's getCount() override,
    public int getCount() {
        return 0;

    you have returned the count as 0, specifying that there is no data and nothing to render. Return the actual size of your list.
  2. In Topic: How can i make that Runnable will get a TextView variable ?

    Posted 19 Nov 2015

    I have answered the very same question and code but different OP yesterday here.

    If that user was you, please avoid creating duplicate posts for same problem so that we can keep all the discussion about the problem in on place.

    and, Welcome to DIC!
  3. In Topic: How do I retrieve information from the previous page ?

    Posted 18 Nov 2015

    Oops! I already answered this question yesterday but I guess my answer wasn't posted due to a connection timeout.

    The 2nd and 3rd page, are those activities? You can pass data in an intent to the activity you are starting. E.g. if you want to pass a string all you need to do is put it in the intent object intent.putExtra("message", strMessage); as key, value. In the started activity, get the item by passing in the key getIntent().getStringExtra("message");. Similarly, if you want to pass data to a fragment, you can create a bundle, put items into it, and call setArguments on the fragment object and pass the bundle object to it. In the fragment, you can get the arguments from the bundle.

    If you want two fragments to communicate with each other, you will need to do this through the associated activity by defining an interface in the fragment which the associated activity will implement and you can confirm when the fragment is attached. When communicating, the fragment would call the interface method in the associated activity which would forward it to the target fragment. Read this example.

    If none of this is what you are looking for, then maybe you can implement a simple Singleton class which would hold the data and you can access it from any activity and change it.

    Hope it Helps!
  4. In Topic: How can i update a TextView inside a Runnable ?

    Posted 18 Nov 2015

    To change the UI, you will need to execute your code on the UI thread instead of background thread. You can put your UI code inside runOnUiThread(). If you are inside a fragment, you can call this method as getActivity().runOnUiThread().

    Hope it Helps!
  5. In Topic: EventHandling not working with button

    Posted 15 Nov 2015

    The problem in your code is the order of these lines,
        editText = (EditText) findViewById(R.id.editText);
            //editText3 = (EditText) findViewById(R.id.editText2);
            button = (Button) findViewById(R.id.button);

    setContentView() is called after calling the super() of onCreate() to set the View for this activity. It can be either programmaticaly created view or from an xml file. Once the view is set for this activity, you can refer to ViewGroups and child views in that view. Since you haven't set any view yet, calling findViewById() would end-up not finding any view for the activity and crashing. All you need to do is call the setContentView() before calling findViewById().

    One more thing is, you always need to call set or get windows features before calling setContentView().

My Information

Member Title:
24 years old
January 2, 1991
Computers, Programming, Games, Sports, Cooking, Swimming
Full Name:
Years Programming:
Programming Languages:
Assembly (80x86)

Contact Information



Page 1 of 1
  1. Photo

    vaseeprasanna Icon

    18 Dec 2012 - 08:29
    and your rocking
  2. Photo

    vaseeprasanna Icon

    18 Dec 2012 - 08:28
    how to make glass form in c#
  3. Photo

    AKMafia001 Icon

    09 Dec 2012 - 12:04
    You are outstanding, buddy! ;) You have to accept that... :P
  4. Photo

    Xupicor Icon

    09 Dec 2012 - 10:24
    I think you're way overstating my input here at DIC. But still, thanks. :P
  5. Photo

    raghav.naganathan Icon

    09 Dec 2012 - 09:26
    Well, thank you...:)...although its not such a good job compared to what you are doing...:)
  6. Photo

    AKMafia001 Icon

    07 Dec 2012 - 03:15
    Thanks Raghav! You are also doing good job in C/C++...
  7. Photo

    raghav.naganathan Icon

    07 Dec 2012 - 02:56
    Congrats on the excellent answer...and a well deserved 100 :)
  8. Photo

    raghav.naganathan Icon

    05 Dec 2012 - 10:29
    Dude...I have to say this...Outstanding work in the C/C++ forums...:)
    Looks like you are up in line for the expert badge :)
  9. Photo

    techdreamer Icon

    04 Nov 2012 - 06:59
Page 1 of 1