Accessing distant database, android

I'd like to access an Internet database from my app to edit it and read it. Any link I should read or any advise?


Asked by: Lucas919 | Posted: 20-01-2022

Answer 1

You should offer API to operate the database as a server. Then your app can call them with HTTP way.

Answered by: Julian215 | Posted: 21-02-2022

Similar questions

android - accessing data from Database

I am connecting oracle database through OJDBC.RAR. when i try to list out all the data from the database it show only the data which contains in the first column. the remaining data are not visible. pls give me a solution My Code: DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Connection conn; ResultSet rs; Statement stmt; conn = DriverManager.getConnection(jdbcURL, user,...

sqlite - accessing a "Database View" in Android

I create a Database view using a "create view" statement in my onUpgrade Method.I cannot find good enough code sample on how to access a view in Android.Can someone point me to a sample code snippet?

android - Having trouble accessing the database

I am (re)writing an android app that uses an SQLite database to store various items, at the moment I am trying to open the database but I get the following logcat error: 08-04 13:05:52.735: ERROR/AndroidRuntime(7793): at 08-04 13:05:52.735: ERROR/AndroidRuntime(7793): at

android - Service accessing a database

Ok guys, I did ask before on how to create a way to run a code always in my app. It's similar to how say iMobeter or something like that check your hp, if it's less than max it'll add to it every 5 mins. Some people told me to use service which sounded good. Problem is, I need a service that is always running in the background. Plus, I could not create a service that can access the database. I cant use the cursor t...

database - Updating and accessing sqlite from an android service

I have a main activity which updates the UI from a DB and each time there is a SMS received from the broadcast receiver, it will call a service to update the DB. The problem is that, is there a tutorial that shows how to handle these sqlite calls and if anyone can point me to the right direction to this.

android - Accessing SQLite database from command line

I am trying to access SQLite database from command line for an android application I have developed. I type adb shell to connect to the device and then sqlite3 to connect to the database. sqlite3 gives me the following an error: /system/bin/sh: sqlite3: not found

android - Accessing Sqlite Database from Sd Card

I have stored my database on the SD card and now I'm trying to access it but it gives me an error : 03-02 15:36:09.653: E/AndroidRuntime(27299): FATAL EXCEPTION: main 03-02 15:36:09.653: E/AndroidRuntime(27299): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.drturing/com.drturing.ProfileList}: android.database.sqlite.SQLiteException: no such table: FeverQuestionTable: , while...

android - advice needed with accessing database

I have been building an application. One of the activity involves two EditText fields. The first field sets the title and the second field sets the text which the user enters. The title and the text gets saved and the title gets displayed in a customised list view. Now when I click on the title displayed in the list.An new Activity opens up.Which has the same title as the one clicked in the list.But the problem here is the...

android - Accessing SQLite database from another class

I've created a sample SQLite database in Android that reads entries into a ListView. I'm going to add code so that when clicked, each ListView item starts a new activity to display more information. How can I run queries on this database from within another activity? Thanks public class Database extends ListActivity { private final String SAMPLE_DB_NAME = "myFriendsDb"; /** Called when the activity is fi...

android - Error in accessing sqlite database

public class DBOpener { private static String DB_PATH = "/data/data/"; // path // of // our // database private static String DB_NAME = "finals"; // Database na...

Accessing Google Account Id /username via Android

How do you access the user's Google Account Id / username in code? I am building an application that will call a web service to store data and I want to identify the identity of the person submitting the data.

problem accessing run() in android

Hi i have a problem accessing run() method in my program. The rum method is not getting focus at all. The Log message that is present outside the loop is getting displayed and i am getting a blank screen with preset background.Here's the code... public class MusicListActivity extends Activity { List<HashMap<String, String>> songNodeDet = new ArrayList<HashMap<String,String>>(); HashM...

java - accessing remote services functions

i ran into a problem with remote services. after i started and bound my service, i want/need to access it's functionality. this works just fine if i work with buttons and onclick-controllers just as in

accessing phone images through content provider in android

I need a sample code or tutorial for accessing phone images/media through content provider ? I know the following, what next ? ContentResolver cr = mContext.getContentResolver(); Cursor cursor = cr.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null);

java - Accessing 'this' in anonymous methods

I'm trying to do a simple global exception handler in my Android app and I am having troubles: public class TicTacToe extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Thread.currentThread().setUncaughtExceptionHandler(new UncaughtExceptionHandler() { @Override public ...

android - Accessing members in one Activity from another

I'm going for a tabbed layout for my application, and I'm having a little trouble. I have the main Activity, and then I have the sub activities (one for each tab). In one sub activity, I have a TextView set as a public member of the activity. Using the main activity, how could I call .setText() on the TextView in the sub activity? Thanks!

java - Accessing Class level stuff from an inner Class

Sorry if the title is kinda confusing, and if the Android tags don't really belong, I thought I would add them in since this is for an Android application. What I want to do, is be able to access the object neoApi inside the Neoseeker class, from its inner class RunningTimer. Now, in my code, you can see what I would think to work, but when I run my application, nothing pops up. Nothing inside my TextView, no Toa...

java - accessing fields across a package

How do I make fields accessible across a package? Currently, even if they are declared public i'm not able to access the fields from another class in the same package.

java - accessing the children views of a View in Android

I am quite new to Java, let alone Android. I am stuck with a problem that I encountered while instrumenting (using the instrumentation framework of android) the code of a Android project. I have a ListView and using the getTouchables() API I have store the view in a ArrayList. When in debug session, I saw that each view has children (mChildren) when expanded I could see that there is a "ImageView" and "TextView" present. w...

iphone - Mobile app and accessing app through mobile website in browser

I have seen few apps having exact same UI when you access the app through stand alone app or through their mobile website. What are the pros and cons of both approaches while developing the app? Edit - This is a general question. Not necessarily android. Iphone apps are also in similar categories.

Still can't find your answer? Check out these communities...

Android Google Support | Android Community | Android Community (Facebook) | Android