Questions tagged [getstring]

150 questions
0
votes
1 answer

c.getstring not found in ListActivity

public class SimpleCursorAdapterConLogoActivity extends ListActivity { private DatabaseHelper databaseHelper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
0
votes
1 answer

Split the getString result into multiple values according to columns

<% st = con.createStatement(); rs = st.executeQuery("select pf_nm from portfolio"); while(rs.next()) { out.print(rs.getString(1)); //divide the result into multiple values } %> The result in above code may vary according to data…
Tiny Jaguar
  • 433
  • 3
  • 12
  • 30
0
votes
1 answer

How to print values of getString differently?

<% st = con.createStatement(); rs = st.executeQuery("select pf_nm from portfolio"); while(rs.next()) { String arr=…
Tiny Jaguar
  • 433
  • 3
  • 12
  • 30
0
votes
1 answer

getstring context with onitemclicklistener

I have the following class define with some info that I would like to catch from another one. I used the context so getstring() can work: public class Util{ public ArrayList getRellenas(Context con) { ArrayList MiLista = new…
Txispas
  • 159
  • 4
  • 14
0
votes
1 answer

Unusual android getString and equals behaviour

I am working with a database with 4 columns (_id, name, scores, status), and using the following to import all rows into an arrayList. Cursor assessmentStatus = myDbHelper.getAllTests(); assessmentStatus.moveToFirst(); while…
cg5572
  • 21
  • 1
  • 4
0
votes
1 answer

Is there anything like JSONObject.getString() to get !DOCTYPE method

I am POSTing to a PHP file from my website. I am not using JSON, so when I try to use code like Log.e("errr", jsonObj.getString("err")); I get a system.err saying: 07-27 20:57:29.274: W/System.err(2431): org.json.JSONException: Value
Christian
  • 958
  • 5
  • 23
  • 52
0
votes
3 answers

get string between parentheses

Possible Duplicate: Regular Expression to find a string included between two characters, while EXCLUDING the delimiters I'm using a method called Interpreter.eval() of external library "beanshell" that allows to make math operations with Strings…
Dors
  • 5
  • 1
  • 3
0
votes
1 answer

How to get nvarchar data from SQL Server database

I'd like to get some values from nvarchar column (SQL Server database). My code looks like below: Dim value1 As String Dim con2 As New System.Data.SqlClient.SqlConnection con2.ConnectionString = "data source=AAA;initial catalog=DWH;integrated…
Konrad Z.
  • 1,592
  • 4
  • 20
  • 34
0
votes
3 answers

Getting String Name from an Item in a ListView when clicked. Android

For some reason this only returns the name of the first item in the list no matter which item I click. I am not sure why it isn't returning the proper name. Basically I just want to find the name so I can search the list for that name so I can…
user433047
  • 13
  • 6
-1
votes
2 answers

intent.putExtra getting too long and not convenient

I am new using Kotlin and have implemented a recyvclerview list and now I'm using putExtra() and getStringExtra() intents to open in the same activities to avoid creating too many activities. So far it is working fine but I'm noticing my list is…
-1
votes
1 answer

Android SharedPreferences check for empty or null

In my android application I am saving the last order did in Sharedpreference. When the user check for last order I am calling Sharedprefernce and showing it. That is working perfectly. But if nothing is saved in shared preference app is crashing. So…
roshanpeter
  • 1,334
  • 3
  • 13
  • 32
-1
votes
1 answer

Trying to extract values correctly but having issues

I'm having difficulty getting my code to get the values efficiently. { "Members": { "Member": { "@First_Id": "000", "@Second_Id": "000", "@Third_Id": "000", "@Fourth_Id": "000", "DisplayAs": "Title FirstName…
-1
votes
4 answers

Android get string from resource?

I want to get string from xml resource and put as string variable value this is my Code : String defaultText = Resources.getSystem().getString(R.string.release_movie_message_now); when run application system say error : E/AndroidRuntime: FATAL…
Erlangga
  • 41
  • 1
  • 7
-1
votes
1 answer

Unable to get the required value from JSON in java" The method getString(String) is undefined for the type String""

I have 2 json's where I need to compare and get the matching value, I am using the below way in java where the boolean condition works fine and returns true after the comparison but unable to get the value from getString, Receiving the error message…
SimbuStar
  • 623
  • 1
  • 7
  • 18
-1
votes
1 answer

C# how to get proper string from GetString()

I use: propItem.Value = System.Text.Encoding.UTF8.GetBytes(textBox1.Text + "\0"); where textBox1.Text contains "MMM", to set the Value and save it in a file (propItem.Value is byte[]), but when I try to read the file I use: string myString =…
Joe
  • 118
  • 2
  • 6
1 2 3
9
10