An array of strings that can be referenced from the resource class (R) in an Android application.

learn more… | top users | synonyms

1
vote
1answer
815 views

onClick Listener on DrawerLayout Does Not Launch Toast

I'm attempting to implement a toast depending on the item clicked in a DrawerLayout - however I cannot seem to get the toasts to appear no matter what I do. I'm not sure exactly what I did wrong: any ...
1
vote
1answer
454 views

DatePickerDialog with custom values

I'm using the DatePickerDialog and it works like a charm. Now I would like to set my own values from 3 string arrays (array.xml) into the datepicker. The reason is that I'm changing the locale inside ...
0
votes
1answer
35 views

Coudnt call the array in main-activity

I've created 2 arrays in my string.xml. But when i call the strings in my MainActivity.java it says "array could not be retrieved or not a field" can anyone help me to fix this. thank you ...
0
votes
1answer
15 views

Return String[] From database

I am trying to populate my AutoCompleteTextView from a column of values in my database. The query I am running in my database is: // GET MEMOS public ArrayList<String> ...
0
votes
1answer
42 views

String Array showing complete list in GridView

I have a GridView of Images, below is the text relating to that image which i have it in a string array. now when i try to print the contents of the array below the image in the gridview, it shows ...
0
votes
1answer
195 views

How do I retrieve parse data and enter this into a string array and/or into a spinner?

I have a list of fruit stored in Parse. I want to conduct a parse query and a) either directly load the objects into a spinner or b) store them as a string array which the spinner will later call. I ...
0
votes
1answer
56 views

Getting URL from String and sending to another class

I would like to get the ImageURL from the String I have set up. I know my String "mImageUrl" will give the correct image URL corresponding to the image in which the user is viewing. How would I be ...
0
votes
1answer
52 views

android 2D array without using split method

I have a 2D array in string resources. I want to use it without using the java split method (I am assuming the time complexity of split is bigger). Here is my array: <string-array ...
0
votes
1answer
124 views

cast StringArray to String[] inside SOAP client

i have a service of SOAP webservice that return ArrayList<String[]>. When i call it from client, eclipse says me that service don't return ArrayList<String[]> but List<StringArray>. ...
0
votes
1answer
305 views

How can I filter a String-Array in Android Developement?

I wanted to know if their is any way you can automatically filter a String-array. Basically, I have two spinners, In the 1st spinner, you have a list of 50 US states. The second has All all the US ...
0
votes
1answer
34 views

Finding indices of string array1 in string array2

I have two string arrays: A = ['i4x://C/2013/problem/b4ce36e6a5f745ddb061636fc86ed3cb', $ 'i4x://C/2013/problem/08b2360eea2a4a95930b073694f7b5b2', $ ...
0
votes
1answer
189 views

getResourceEntryName for an array item

I have a string array in strings.xml as detailed below: <string-array name="spinerArray"> <item name="one">First</item> <item name="two">Second</item> ...
0
votes
1answer
176 views

How to format list items with HTML in a Master Detail Flow Activity

I have a Master Detail Flow activity, and in that activity there is a string array. I would like to format my item name string "content" in my list with HTML. However, I am not sure where to declare ...
0
votes
1answer
231 views

Checking for null in if statement isn't working in java

Here is my if statement: for(int i=0;i<SharedPrefsData.subscribers.length; i++){//loop through subscribers array if(SharedPrefsData.subscribers[i] == null ){//if string at index i is null ...
0
votes
1answer
365 views

Java Displaying String on a JTextField after a JButton in a separate class is pressed

Currently working on a school project in which I am making a wheel of fortune replica in Java. I have a panel of JButtons within a class called buttonPanel, and a separate class, wheelGUI, which acts ...
0
votes
1answer
577 views

how to put unicode characters in string-array as external resource

I am using unicode characters in my android application. As I want them to be external resources, I created string-array in strings.xml as follows <string-array name="geez_first_chars"> ...
0
votes
1answer
61 views

concatenating existing strings within an array into new strings of a new array

I'm trying to get this program's groupPairs function to take the six Strings in an initial String array [One,Two,Three,Four,Five,Six] and create a new String array of half the size (3) with the ...
0
votes
1answer
1k views

How to pass hashmap<string, hashmap<string, string>> to a simple adapter?

I have a simple adapter filling a ListView in this manner : adapter = new SimpleAdapter(this, mylist , R.layout.itemlist, new String[] { "item1", "items2" }, ...
0
votes
1answer
158 views

Update a datatable with a string array as values

I have a problem where I am trying to update a datatable's columns with values from a string array and then submit those updates to the database. I have debugged this, thinking there is an error, but ...
0
votes
1answer
361 views

Send ListView results via Messaging application

I am very new to programming. I have an app that has several views. The Main view shows a list such as Breakfast, Lunch & Dinner. When a an item is selected, example Lunch, a list of lunch menu ...
0
votes
1answer
134 views

How to get String-Array referenced by another String-Array?

For example if I have the following String_Array <string-array name="recipe_ingredients"> <item>@array/m1_ingredients</item> <item>@array/m2_ingredients</item> ...
0
votes
1answer
1k views

Android Expandable List Put Child Items From String Array

I'm trying to make an Expandable List in Android. But I have one problem putting the values in child list. Group list data I'm writing manually because they won't be changed. But Child list data will ...
0
votes
1answer
109 views

Install4j: Howto use String arrays in textfields

In my installer there is a screen with textfields whitch appears several times in a loop to configure different instances of services. For cleanliness i want to save those values in a String array. ...
0
votes
1answer
1k views

searching through a string-array in android

I have a rather large string-array with a lot of strings (obviously), and i want to put a search bar in the top. This string array comes out in a listview. I want to be able to search for some string ...
0
votes
1answer
268 views

mvc3 model string array property getting Object reference not set to an instance of an object

In my application I have a Public Class HomeIndexClientModel I declare these properties: Public strButtonBarProblemGuid() As String Public strButtonBarProblemTitle() As String Public ...
0
votes
1answer
688 views

Android - How do I change button text to arraylist item

I've got a grid of nine buttons and at the moment each one displays the numbers 1-9 as text and another button which will change the numbered buttons text to a different number from 1-9 when clicked. ...
-1
votes
1answer
31 views

How to ReGenerate String Array using Some Keyword

My Question is that I have An String array of 5 Contains Value as follow : red, green, yellow, white, black Now I am searching some text using EditText, If User Enters : "re" then my array should be ...
-1
votes
1answer
1k views

Passing string array from c to java jni

OK, i am doing a java native interface(jni) project, and i am trying to pass a string array from c++ to java. How is this done. I cannot figure out how to do it. All i have tried to do is directly ...
-1
votes
1answer
435 views

How to add an item to an XML string-array from Java and then save it?

I have an XML file that is as follows: <string-array name="Cube_type_entries"> <item>2x2x2</item> <item>3x3x3</item> <item>4x4x4</item> ...
-3
votes
1answer
152 views

Best algorithm to validate that all items of one string array occur in another string array

I have two string arrays, one containing file names like file1.docx, file2.docx, file3.docx and another array comes from UI controls and has to be like first one but having date added. I need to ...
1
vote
0answers
27 views

Checking user choice independently of locale in android

I am checking a user input (specifically, a spinner choice) that is populated using a string-array in strings.xml. Afterwards I want to check that user input, however I want to avoid locale problems ...
1
vote
0answers
463 views

How to assign values to child of ExpandableListView

Since many hours I'm trying to assign values to child of Expandablelistview, but with any result. I'm getting the values from SQLite database. And then I convert them to array string. And then I'm ...
1
vote
0answers
229 views

Android: how to make string-array to be a reference to another string-array?

I can make string to be a reference to another string just like that: <resources> <string name="my_string">My String</string> <string ...
1
vote
0answers
413 views

Show different String Array Toast in 3 List View Flipper

I have 3 listview on my Flipper using diffrent linear layout ListView list; ListView list1; ListView list2; and I have String Arrays that has been converted from Array list. ...
0
votes
0answers
42 views

How to generate dynamic imageviews by using a string array

I want to set bitmaps to two imageviews generated from multiple image urls and have to set ontouchlistener/onclicklistener for last imageview to change the bitmap images dynamically.Can anyone give me ...
0
votes
0answers
41 views

image in string-array list preference

I wanted to add an image instead of string for listPreferences, i tried inserted ImageView b/w the item tags but it gave an error too, I just want to display images instead of text besides the ...
0
votes
0answers
27 views

Change font in sans-serif-light from strings.xml

i've got an array string in my strings.xml <string-array name="categories"> <item>first</item> <item>second</item> <item>third</item> ...
0
votes
0answers
37 views

Get the five closest addresses from String Array

I have a String array in Android (Java) with 175 elements which contains addresses. Now I need to sort the five closest addresses and make it to a list, I have got it to work with one element and a ...
0
votes
0answers
60 views

Using String Arrays and ListView sticky headers

Im trying to use the StickyListHeaders library to create a listview with headers. Now my goal is to have groups of lists headed by their corresponding group name. Example. Manuals foo 1 bar 2 baz ...
0
votes
0answers
55 views

multiline string input for array

I am a java beginner trying to finish a school project and need help with syntax.... i am trying to write a question paper generator according to the icse pattern. I started with history/civics as the ...
0
votes
0answers
55 views

reading files and store the method line in an string array

I have a java file 'Arithmetic.java', in which i have 2 overridden method. Now i wanted to read this file and i need to print all the method signature lines and have to put all the values in an ...
0
votes
0answers
17 views

Get Intent extras iteratively

In my android app I pass data from one activity to another via bundle string arrays. The data flows in the following fashion: MainActivity -> sends bundle string array in an Intent to Activity1. ...
0
votes
0answers
38 views

cython ndarray static type declaration for string array

I want to add static type declaration for the following string array: myarray = ["abc", "bcd", "cde", "def"] The type declaration format for ndarray may look like this: cdef np.ndarray[np.float_t, ...
0
votes
0answers
135 views

Reading txt file, parsing into string array

I am reading in a text file and parsing it by creating a string array. What I am trying to do right now is read in only the first array object of each line, compare to a list of already defined ...
0
votes
0answers
58 views

Unable to cast object of type to type

I'm having some issues sending an Array to a WebReference (Client´s WebService), the web reference tells me it catches a object[], but the client tells me its catching an ArrayList, so here is my ...
0
votes
0answers
31 views

How I can convert a variable String to String[] in a parcelable Object?

I have read some post on Stackoverflow, but I don't get to clear my mind! This is my source code of my parcelable (works well), but I want to know what I need to change to convert smb_previous_path ...
0
votes
0answers
44 views

g.drawstring string from String[]

I try to draw strings from String[]. This code doesen't seem to work. It's supposed to be somekind of chatsystem.. I'm also wondering if this is good or bad way to make chat system? For example is ...
0
votes
0answers
107 views

Reference a String Array with a String

I have created multiple arrays and want to be able to to put them in a list and then have that list, when clicked, display the new list of arrays. Here is what I have come up with so far. I am tring ...
0
votes
0answers
41 views

Retrieving StringArray resource depending on the clicked button

I want to design a ListView that will be populated from a StringArray resource depending on which button was clicked. The array name will be retrieved and put into the getStringArray method like ...
0
votes
0answers
274 views

Combine Multiple string-array imported from resource file

I am trying to import multiple string-arrays defined in the resource file and then combine them all to a single string array. But I have no idea how to do it. Please help. I am trying to somethinglike ...