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