Questions tagged [getstring]

150 questions
-1
votes
3 answers

cannot resolve method on getstring(java.lang.string)

i'm having a bit of trouble creating an app with 2 factor authentication. I decided to use twilio as my sms gateway and decided to follow along on their tutorial. However I've run into the issue when declaring a url to send out sms's from. For some…
Wshivnarine
  • 23
  • 2
  • 7
-1
votes
1 answer

How can i combine more than one getString into a textfield

i want to combine rs.getString("PresentationDay") rs.getString("PresentationStart") rs.getString("PresentationEnd") into one checkbox so these three will enter the database in one column. this is my current code
Mong2203
  • 71
  • 1
  • 12
-1
votes
2 answers

Get the double part from string with vbscript

I want to create a barcode with vbscript that will be decoded from my company's erp (my company devides the nubers with 10000. The barcode should have this type of look: 99XXXXXXXXXQQQQQQQQPPPPP where: X is my barcode, Q is quantity, and P is the…
-1
votes
2 answers

c# if string equals database table

I am trying to have c# look to see if the database table equals what i am asking it to equal to open a specific form here is one way i am try doing it void getsformat() { string constring = @"server=host;userid=user;password=pass"; …
-1
votes
1 answer

Receiving a null pointer exception when trying to use toString

I am trying to access a local database and pull the data out and store it in an array...but I keep receiving a null pointer exception, please help? int rows = 0; int colNum =…
Daniel Buckle
  • 628
  • 1
  • 9
  • 19
-2
votes
3 answers

Undefined symbols for architecture arm for

I am new to C++, and trying to use get_string, but I am not sure what I writing wrong that is creating an error. The code I have is the following: #include #include int main(void) { string name = get_string("What's your name?…
toasted
  • 7
  • 1
-2
votes
3 answers

How to pass Context into public class with public static String method

I have a public class with one public static String method. I have to getString() and I know that before that I have to extract String ressource and pass Context and I dont know how to pass it . Another class uses public static String method Code…
lounchy
  • 76
  • 2
  • 11
-2
votes
1 answer

Using a variable in getString()

I'm using a random number to pull a string from a resource xml, all of which have a similar beginning (they are named "quote" with a number after, so quote1, quote2, etc. I'm trying to find a way to access them using getResources().getString() but I…
Jordan P
  • 19
  • 1
  • 4
-2
votes
2 answers

Can't retrieve value from Bundle android

Inside my fragment in the onCreateView method, I retrieve the Bundle which was set for the fragment using the following code: Bundle args = getArguments(); String value = args.getString("fixedExpenseId"); But somehow the value is null when I run my…
michel
  • 97
  • 2
  • 6
-3
votes
1 answer

how to fill array of strings using user input

I am trying to take string user input from the user using c code and then add it to array of strings so that I could have a variable its first component be a word so if the variable called X then X[1] becomes full word which inputted to the array…
-3
votes
2 answers

cursor.getString can't equal with string variable

I intend to compare cursor.getString(1) == pName, but the code always does the comparison improperly. I was doing anything that came into my mind, but could not make it work. The code is like this : public Cursor addProduct(int id, String pName, int…
-3
votes
1 answer

Json: JSONException: No value for UserNm

I have a problem with the extraction of data from a JSON file that I receive from a PHP file This is the filecontents of the JSON file I get: {"success":1,"message":"Data of the Person", "0":{"Name":"Marco","Surname":"Rossi","Age":"32"}} I tried…
Andrea
  • 128
  • 3
  • 13
-3
votes
3 answers

unable to get strings from SharedPreferences?

I 'm creating a list that stores and keeps the values as string using shared Preferences.I want to store time of events(Some events). My code looks like package com.defcomdevs.invento16; import android.content.Context; import…
Midhun0407
  • 59
  • 6
-4
votes
2 answers

How do I prompt a user for input while still using argc, argv[] in c?

So i'm completely new to programming and I'm not sure if I'm even asking this correctly. The code does exactly what I want it to as far as output matching input. It's just supposed to spit out the first letter of whatever words you put in. The…
-4
votes
3 answers

Result null in "getStringExtra"

I am working on this code, and get an error, the variable "textoviejo" is returned as null, I would like to know what is wrong here. Thank you Activity 1 EditText input = (EditText) findViewById(R.id.input); startActivityForResult(new Intent(this,…
JackFlash
  • 11
  • 3
1 2 3
9
10