Questions tagged [getstring]
150 questions
0
votes
1 answer
JSONObject getstring removes the zero from string
I'm trying to get numerical values that start with 0s from a JSONObject. The problem is the method converts the string into a double. Example:
JSONObject:
{
"LATITUDE1":41,
"LATITUDE2":06962
}
When I use
String lat2 =…
0
votes
4 answers
How to escape special characters from JSON when assign it to Java String
im tring to assign value from json to java String. but JSON value is including some special charactor ("\"). when i was try to assigen it to the string it gives error.
this is the JSON value,
"ValueDate":"\/Date(1440959400000+0530)\/"
this is how i…

MadukaJ
- 722
- 6
- 22
0
votes
1 answer
InvalidCastExeption when trying to dim a string
Im having a problem when trying to run my code. Im new to stackoverflow but will try to explain my problem.
Well, i get a "InvalidCastExeption" with the explanation
"Converson from string "Filename" to type "Integer" is not valid.
The confusing…

RoYo
- 3
- 3
0
votes
1 answer
How to format the date in this android app
In my Android app right now the date "created" is in this format: 2014-02-21 00:00:00
I would like it to be in this format: Feb 21 2014 00:00:00
If it is possible to reformat it in this bit of code, could someone please show me…

user3116419
- 1
- 1
0
votes
1 answer
How get I get the hex type data using the commands below
I want to get a hex type data using getstring, but I don't know C# very well. How can I modified the code to implement the function? I have a device keep sending the hex data to my PC via socket. I find the socket program below to receive the hex…

user2863859
- 3
- 3
0
votes
1 answer
get string with foreach in datagridview
I create a function with the aim to show the concatenated string to the DataGrid that I made such:
file1.exe, file2.docx, file3.mp3
how to display that way? I have tried it but messagebox displays an empty string.
This is the code :
public void…

sloqye
- 101
- 1
- 3
- 11
0
votes
2 answers
String within bundle is null
Here is the code in the first activity:
Bundle UserEntries = new Bundle();
UserEntries.putString("Venue_Name", VenueName);
UserEntries.putString("Event_Name", EventName);
UserEntries.putString("Category", Category);
UserEntries.putString("Region",…

James Roberts
- 195
- 1
- 4
- 13
0
votes
2 answers
VS2005 UTF-8 generic HTTP handler: issues with certain chars in query string (e.g. þ æ)
I am developing a generic HTTP handler in VS2005 and testing it in Debug Mode. It works well except when the query string contains higher-bit characters, e.g. Latin Small Letter Thorn /u00FE þ and Latin Small Letter Ae /u00E6 æ.
IE8 on my machine…

Tim
- 23
- 4
0
votes
1 answer
Apache xmlconfig xpath not reading element
I want to read this xml file:
C:\Users\bellibot\Desktop
config.xml
0
votes
1 answer
oracle reader returning System.Data.OracleClient.OracleCommand as value
i'm stumped by this thing.
i'm using the very simple following code:
con.ConnectionString = @"Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=myservice)));User…

Urliamo
- 11
- 5
0
votes
1 answer
Check radiobuttons after SqlDataReader
I have 2 radio buttons in a panel and I save their value as numeric (0 and 1) here is the code for insert into SQL:
String typdop="1";
if(rb_a.Checked)typdop="0";
("INSERT INTO zajezd(typdop)values(@typdop")
prikaz.Parameters.AddWithValue("typdop",…

Marek
- 3,555
- 17
- 74
- 123
0
votes
1 answer
Best way to use getString()
I'm having some problems on where and how to place and call the getString().
I tried at the beginning of my activity where I usually define it but always get an error. Should it be only after onCreate()?
Some of my strings I use it very often so I…

Marcus Gabilheri
- 1,259
- 1
- 14
- 26
0
votes
1 answer
JSONObject why does getString not getting any value here?
I am having problems parsing a JSONObject send betweend my Server and the Android Device.
It looks like this:
{
…

puelo
- 5,464
- 2
- 34
- 62
0
votes
1 answer
How to get string resources in my class?(Android )
please help me.
I need get a string data in my class, when i use a Resources.getSystem().getString(R.string.test), but get a error:
Resources$NotFoundException (id=830139056248)
my code:
// manage DB
private class DBHelper extends…

user1904376
- 21
- 1
- 1
- 4
0
votes
2 answers
Webview won't receive getStringExtra from previous activity
I'm trying to use a barcode scanner and then take that input and use in another activity to open with a url. I've been able to get the data to return, just not in another activity and haven't seen any projects exactly like this. I'm not sure if it…
user1733579