java


How to use string from my DatabaseAccess-class


pretty new programmer here.
So I'm getting a string from my database in my DatabaseAccess.java like this:
public String getUrl(String object_url){
Cursor cursor = null;
object_url = "";
try {
cursor = database.rawQuery("SELECT object_url FROM objects WHERE object_id = 1 AND object_rating = NULL", new String[] {object_url + ""});
if(cursor.getCount() > 0) {
cursor.moveToFirst();
object_url = cursor.getString(cursor.getColumnIndex("object_url"));
}
return object_url;
}finally {
cursor.close();
}
}
How I can use that "object_url"-string in my MainActivity-class?

Related Links

How to add different values to unique keys in Realm?
How to send event from GUI client to Server throw socket?in java
Spring MVC Rest Service JSON - Setting default value for boolean as true
Jersey POST request from simple terminal client
Connecting two computers(machines over a wireless network)
JSR-303 validation of abstract field against the constraints in the impl class
Sorting is wrong when comparing long values
Java : Running shell script in background
How to read stream (messages) from TCP in Spring Inegration
Why do I keep Getting can't init this card about sending sms via gsm in java
convert java code to gremlin query
Purpose of defining POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN constants only for floating-point data types, but not for integral data types [duplicate]
Springboot jersey with multiple source paths (servlets) [duplicate]
do{}while(); seems not working as expected
Trying to make an ArrayList; compiler cannot resolve “add” [closed]
select specific columns from the table and store the results to the non-entity POJO with Spring + hibernate + JPA

Categories

HOME
client
webpack
netsuite
mockito
kde
path-finding
sqlite-net-extensions
sqlite3
baqend
installshield
onelogin
in-app-purchase
uber-api
adfs
kentor-authservices
php-7.1
circular-dependency
windows-phone-7
circuit
google-static-maps
crystal-reports-2008
lucene.net
scriptcs
abi
sox
accessor
realex-payments-api
language-agnostic
angular2-aot
vlsi
uninstall
typo3-6.2.x
subdomains
srcset
bpel
ecto
twilio-api
pdb
stacked
xcode-extension
sqlite2
jna
pdf-reactor
turbogears
import-from-excel
reactive-cocoa-5
qcombobox
dotcover
logparser
worksheet
rdfs
font-size
iso8601
crosswalk-runtime
objective-c-swift-bridge
instant
azure-sdk
home-directory
fody
clang-static-analyzer
connect-by
master-slave
livequery
cyclomatic-complexity
comobject
map-projections
drawbitmap
method-parameters
apache-commons-fileupload
census
notify
streambase
nsmutabledictionary
applescript-objc
xcode-6.2
issuu
bitcoinj
onactivityresult
reactfx
hyprlinkr
mbr
gnu-smalltalk
ms-project-server-2010
web2py-modules
eclipse-memory-analyzer
browser-detection
mt
frameset
venn-diagram
regsvr32
pendrive
whoosh
doh
mod-auth
lang
iweb
data-driven

Resources

Encrypt Message