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

  • Home
  • SEARCH
  • 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 8946141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:26:02+00:00 2026-06-15T12:26:02+00:00

I am developing an application which will be work in Turkish language. When I

  • 0

I am developing an application which will be work in Turkish language. When I run the app in English language the app is working fine. Now when I am checking the app in Turkish language there are getting error results.

I have an array resources

 <string-array name="pensionArr">// English(values-en)
    <item>monthly</item>
    <item>yearly</item>
</string-array>

<string-array name="pensionArr"> // Turkish(values-tr)
    <item>aylık</item>
    <item>yıllık</item>
</string-array>

I set this array in spinner.

adapterPension = ArrayAdapter.createFromResource(this, R.array.pensionArr, android.R.layout.simple_spinner_item);

Now I am sending the selected value from this spinner to web service. There i am comparing the value in English.

nameValuePairs.add(new BasicNameValuePair("pension_type",_pensiontype));

When I am trying to print the value _pensiontype. the value printing in console is like this

yıllık//====> yearly in English.

So the value is not comparing in the web service. So here is my question how to use English values even I choose Turkish. Is there any way for this.

Edit: Data from spinner is

 _pensiontype=pensionTypeDrpgetSelectedItem().toString();

Pls Help me……

  • 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-15T12:26:04+00:00Added an answer on June 15, 2026 at 12:26 pm

    This is very tricky situation. Finally I search it in many websites and find a solution

    Maintain the array in the server side as

    String[] arr = new String{"monthly","yearly"};
    

    after setting the resource array to the spinner as

    adapterPension = ArrayAdapter.createFromResource(this, R.array.pensionArr, android.R.layout.simple_spinner_item);
    

    Now I am sending the position of the selected item to the server as

    nameValuePairs.add(new BasicNameValuePair("pension_type",Integer.toString(pensionDrp.getSelectedItemPosition())));
    

    Now I am getting the position of array at server side. so Using index instead of value directly.

    works fine..

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

Sidebar

Related Questions

I'm developing a java application which will run on LAN, i do test today
I'm developing an application which will work with external memories accessed through USB a
I am currently developing audio recording application which will run on both device and
I'm developing an application that which will work as a standalone website and will
I'm developing a C++ application which will run on a headless server and keep
I am currently developing an application which will require multiple different development languages. I
I am developing a web application which will be added as a custom page
Context: I'm developing a WPF application which will contain a lot of different screens.
I am developing an application in which I will supply my twitter username and
I'm currently involved with developing a C# CMS-like web application which will be used

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.