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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:08:19+00:00 2026-05-26T14:08:19+00:00

I have created a nice scientific calculator and now want to save inputs and

  • 0

I have created a nice scientific calculator and now want to save inputs and results to a file for use on a PC and as an archieval report and need some help with the overall process.

I have first created the required output headers and such in excel and then saved it as an .xml file I am thinking that this really eased the setup of the .xml file so all the formatting and columns and headers are established and all I need to do is place this file or its cotents in my java code, I hope.

Is this a good approach so far?

I would like to now put my data into this xml file/layout is specif columns so when I put this .xml file back on a PC that excel will open a nice looking report. no formulas just the data.

Am I on the right track? any good links to get going? I am off to search for how to but maybe somebody can get me started The hopes are this can be a good example for oneonline.

So far I have done this:
1.Create an Excel file on PC with formatting that you need
2.Save that file as XML, Excel will insert Tags for formatting

now I need to do:
3.Write java code to generate similar XML file on Android
4.On Android, save this XML file on SD Card
5.Transfer the XML to PC and open that in Excel

Update – so it looks like java.io.file might be my solution but as always nothing simple is easy. My code might look like this but I see I am going to have problems with entering the xml code as strings because they have quotes of their own and other characters that conflict with java code.. this is what I am trying

                    astring1 = "<?xml version="1.0"?>";
                astring2 = <?mso-application progid="Excel.Sheet"?>;
                astring3 = Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet";
                astring4 =  xmlns:o="urn:schemas-microsoft-com:office:office"

                if (((m1_ss_spinner.getSelectedItem().toString().equals("Square"))))
                {
                    try 
                    {
                        BufferedWriter out = new BufferedWriter(new FileWriter("outfilename"));
                        out.write astring1;
                        out.write astring2;
                        out.write astring3;
                        out.write astring4;
                        out.close();
                    } catch (IOException e) {
                    } //end try

                } //end if
  • 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-05-26T14:08:20+00:00Added an answer on May 26, 2026 at 2:08 pm

    java.io.file did exactly what I needed. As I said before, I first ccreated the xml file from excel and used the out.write command to recreate the file on my phone, substituting just the answere from my app. I needed to include carriage return and line feeds so excel would understand and everything works well. My excel.xml was 515 lines so it takes up some room in my app but it works beautifully. My calculator creates some interesting information and creates a nice report which I send to a pc and have excel open it. This is a major improvement to what a programable calculator can perform. And its in my pocket!

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

Sidebar

Related Questions

I want to enumerate colors and use Color instances. Therefore I have created an
I have created a nice silverlight control doing exactly what I want it to
I have created a nice icon for my app that quite accurately reproduces the
I have created a nice joomla website with a sprite navigation that works fine
I have an AutoCompleTextView for which I created a shape which creates a nice
I want to convert a JSON file I created to a SQLite database. My
Hi there Stack Overflow users. I have created a nice little script to append
I've got a nice facet_wrap density plot that I have created with ggplot2 .
I have created a custom facelets component and I need to set some value
I would like to know if someone have created a RDL report (running it

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.