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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:17:31+00:00 2026-06-16T13:17:31+00:00

I am making a calculator in Android. For this purpose I am using various

  • 0

I am making a calculator in Android.

For this purpose I am using various buttons, three of which are for the symbol of PI, square root and cube root.

Now when I test this as a simple code in netbeans:

public class Test {
    public static void main(String[] args) {
      System.out.println("\u03C0");  
      System.out.println("\u221A");  
      System.out.println("\u221B");  
    }
}

I get the expected output:

run:

π

√

∛

However when I do similar display for android development using eclipse:

public static String[] button_text = new String[]{
    "^",        "ln(",      "log(",     "\u221A(",
    "\u03C0",       "x!",       "abs(",     "\u221B("   
};

public static String[] button_text_values = new String[]{
    "^",        "ln(",      "log(",     "\u221A(",
    "\u03C0",       "!",        "abs(",     "\u221B("   
};

The buttons pi, sqrt do display the symbol. On pressing them, the symbols also appear in the textview.

However the same does not hold for the cube root button. It just displays the bracker “(“.
On pressing it the textview also displays only the bracket.

However all calculations go correct.

That is pressing cuberoot and then 8 does give the result 2.

This means the cuberoot does exist in the expression string, but is not being displayed in buttons or the textview.

How do I correct it?

Thank you.

  • 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-16T13:17:32+00:00Added an answer on June 16, 2026 at 1:17 pm

    The font you are using probably does not contain the cube root character. Try a different font:

    tv1=(TextView)findViewById(R.id.textViewOne);
    bt1=(Button)findViewById(R.id.buttonOne); 
    Typeface font= Typeface.createFromAsset(getAssets(), "DejaVuSans.ttf");
    tv1.setTypeface(font); 
    bt1.setTypeface(font); 
    

    Also see this:

    http://tinkering-is-fun.blogspot.co.uk/2012/04/adding-support-for-more-characters-in.html

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

Sidebar

Related Questions

I just set up a background for this app I'm making, but now it
i'm making a calculator and need to get my buttons to work but i
I keep getting this error when making the program as given below: using System;
I'm making a calculator using Swing. So far I have created a GUI that
I'm making a calculator in Java using Processing as a framework. I'm writing a
I am making a special calculator which accepts user input and looks up data
I am making an iOS calculator app in which the scientific notion is enabled
I have started making graphics for my Android app using Adobe Photoshop. But I
I've been learning Android for a while now and have decided on making an
I'm making a calculator in Javascript for my school homework and it's using the

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.