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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:13:27+00:00 2026-06-13T05:13:27+00:00

In my app, I am getting text content from JSON and that content I

  • 0

In my app, I am getting text content from JSON and that content I am showing into text view. But, problem is text is not appearing complete and it is not formatted as well. I had checked my JSON using http://jsonformatter.curiousconcept.com/ and it showed the JSON is valid. I had printed the content that I received on the log and it is complete. Even, after setting it to textview and again getting back from it, I am getting complete data. But, it is not displaying complete text.

This is how it appears in the app:

I am not getting where the problem is. The textview is inside scrollview.

Below is my code:
Base Activity

public class TIEBaseActivity extends MapActivity
{
//private ProgressDialog dialog;
public AlertDialog _alertDialog;
protected HeaderBar _headerBar;
protected FooterBar _footerBar;
protected LinearLayout _manager;
protected LinearLayout form;
protected TIEBaseActivity _self;

public void createDefaultView(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.basescreen);
    this._self=this;
    initView();
}   

public void loadFormFromResource(int resourceID)
{
    LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View view = inflater.inflate(resourceID, null);
    _manager.addView(view);

}

public void loadDefaultForm()
{
    form=new LinearLayout(this);
    form.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
    form.setOrientation(LinearLayout.VERTICAL);
    form.setGravity(Gravity.CENTER);
    _manager.addView(form);
}

public void initView() 
{

    _headerBar = (HeaderBar) findViewById(R.id.baseHeaderBar);  
    _manager = (LinearLayout) findViewById(R.id.baseScrollContent);
    //_footerBar = (FooterBar) findViewById(R.id.baseFooterBar);

    _headerBar.view.setVisibility(View.GONE);
    //_footerBar.view.setVisibility(View.GONE);
}

protected void showScreen(Intent intent) {
    startActivity(intent);
}

public void setHeaderTitle(String title) {

    if (_headerBar!=null) {
        _headerBar.setTitle(title);
    }

}

public Handler progressCloseHandler = new Handler() {
    public void handleMessage(Message msg) {
        super.handleMessage(msg);
        if (_alertDialog != null)
            _alertDialog.cancel();
    }

};

private Handler alertViewHandler = new Handler() {

    public void handleMessage(Message msg) {
        String message=(String)msg.obj;
        AlertDialog.Builder _alert = new AlertDialog.Builder(TIEBaseActivity.this);
        _alert.setMessage(message)
        .setCancelable(false)
        .setPositiveButton("OK", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface arg0, int arg1) {
            }
        });
        _alert.create().show();
    }
};

public void DisplayAlert(String message) {

    Message msg=Message.obtain(alertViewHandler);
    msg.obj=message;
    alertViewHandler.sendMessage(msg);

}

public void DisplayAlert(String message, int id) {  

    Message msg=Message.obtain(alertViewHandler);
    msg.obj=message;
    msg.what=id;
    alertViewHandler.sendMessage(msg);
}


private Handler closeViewHandler=new Handler() {
    public void handleMessage(Message msg) {
        super.handleMessage(msg);
        _self.finish();
    }
};

public void closeScreen() {

    closeViewHandler.sendMessage(Message.obtain(closeViewHandler));

}

public void openRating()
{
    Intent marketIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("market://details?id=com.dzo.tie"));
    startActivity(marketIntent);    
}

@Override
public void onConfigurationChanged(Configuration newConfig) {

    super.onConfigurationChanged(newConfig);
}

public void openShare()
{

    String mMailSubject = "OIE App. - Get the All Indian Events happening in Overseas"; 
    String mMailMessage = null;     
    mMailMessage = "Hi,\n I found this great Application. This application customize for Overseas Indian Events.";
    mMailMessage += "\n";
    mMailMessage += "Go to: https://market.android.com/details?id=com.dzo.oie";
    mMailMessage += ",\n Please visit: http://www.dotzoo.net to see more about Dotzoo Inc.";

    Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
    emailIntent.setType("text/*");              
    emailIntent.putExtra(Intent.EXTRA_SUBJECT, ""+mMailSubject);
    emailIntent.putExtra(Intent.EXTRA_TEXT, mMailMessage);
    startActivity(Intent.createChooser(emailIntent, "Share via..."));   

}

@Override
protected boolean isRouteDisplayed() {
    // TODO Auto-generated method stub
    return false;
}

}

Layout for BaseActivity:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:background="@color/white"
android:layout_height="fill_parent"
android:orientation="vertical"
android:id="@+id/baseLayout">

<com.dzo.tie.ui.HeaderBar
    android:id="@+id/baseHeaderBar" 
    android:layout_width="fill_parent"
    android:layout_height="50dp"/> 

<ScrollView 
    android:scrollbars="vertical"
    android:fillViewport="true"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent">  

    <LinearLayout 
        android:id="@+id/baseScrollContent" 
        android:layout_height="wrap_content" 
        android:orientation="vertical" 
        android:gravity="center"
        android:layout_gravity="center" 
        android:layout_width="fill_parent">

    </LinearLayout> 
</ScrollView>  

I am extending this base activity in my activity class:

My Activity

public class TIEInfo extends TIEBaseActivity 
{
TextView txtTieInfo;
String contents;

private String infoUrl = "http://www.tradeineu.com/tie_app/aboutTie.php";
protected void onCreate(Bundle savedInstanceState) 
{
    super.createDefaultView(savedInstanceState);
    _headerBar.view.setVisibility(View.VISIBLE);
    super.setHeaderTitle("Info");
    init();
    new TIEInfoAsyncTask(getParent(), infoUrl, txtTieInfo).execute();
}//onCreate

public void init()
{
    loadFormFromResource(R.layout.tieinfo);
    txtTieInfo = (TextView)findViewById(R.id.txtTieInfo);
}//init
}//TIEInfo

Layout for my activity

<?xml version="1.0" encoding="utf-8"?>
<TextView 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/txtTieInfo"
android:textSize="12sp"
android:textColor="@color/copper_gold"
android:lineSpacingExtra="5dp"/>
  • 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-13T05:13:29+00:00Added an answer on June 13, 2026 at 5:13 am

    You need to scroll to see the rest of your text.
    Place your textview inside a scrollView and it will be ok.

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

Sidebar

Related Questions

I have a Django app, which populates content from a text file, and populates
my app is getting force close randomly. And every time error can not be
I'm having a problem with my iOS app and getting a UILabel in a
I have a GUI app that is getting to be quite slow. I want
I'm writing a Javascript app that is getting an HTML document via AJAX, then
I'm running a java code for getting info from a google-app-engine web service (testeserjaum.appspot.com),
i'm trying to write a simple app with node.js to pull some json from
So I am using tinyMce in my app but I am getting a JavaScript
I'm so close to getting this effect perfect, but I have run into a
I have been getting an error message that I can't resolve. It originates from

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.