Questions tagged [activeandroid]

ActiveAndroid is an active record style ORM (object relational mapper) for Android.

ActiveAndroid allows you to save and retrieve SQLite database records without writing SQL statements. Each database record is wrapped into an object with methods like save() and delete().

The library is open sourced under the Apache 2.0 License.

Tutorials:

slidenerd Series

231 questions
0
votes
2 answers

Error: No such table User - Active Android

I am making a Twitter client as a practice run in learning Android, and the login and timeline activities work fine, but when I click on Action Bar icon, it takes me to a ComposeTweetActivity.java, and after I enter text (my tweet) and press the…
Azurespot
  • 3,066
  • 3
  • 45
  • 73
0
votes
1 answer

Transfering data from server to an android client's SQLite database using ActiveAndroid

I am writing an Android app that needs to download data from a server and persist the data in an SQLite database on the android client. I have broken this problem down into two steps: 1) fetch data from server and populate a model on the android…
neonDion
  • 2,278
  • 2
  • 20
  • 39
0
votes
0 answers

Method doesn't get called, when calling it from AsyncTaskLoader

Here's the thing, I have a AsyncTaskLoader loading data from a web page using Jsoup and storing it in SQLite using ActiveAndroid. I have all my parsing and database methods in a class called Parser, I won't bother to explain why, but when I'm…
Doctor X
  • 33
  • 6
0
votes
1 answer

ActiveAndroid Updating table fields whilst leaving automatically generated row id the same

I am trying to find a method of updating fields in a table row whilst leaving the row id (automatically generated by Active Android) the same. Is this possible in Active Android or does the row id always get updated when updates occur to a…
user2252028
  • 31
  • 1
  • 3
0
votes
1 answer

Android SQLite create table

I'm trying to create simple db with 1 table and use activityandroid as ORM to it. But after starting project, i have such errors: 03-30 17:41:01.379: INFO/Database(345): sqlite returned: error code = 1, msg = duplicate column name: id 03-30…
0
votes
2 answers

ActiveAndroid seems not to initialize

I configured ActiveAndroid at AndroidManifest.xml as described below:
seufagner
  • 1,290
  • 2
  • 18
  • 25
0
votes
4 answers

ActiveAndroid: Upgrade Database version

I have the following scenario: My app is published with database version 4 to the customers. I did some bugfixes and added some more features. This process also changed my models and thats why the database changed too. How can I check what database…
Basic Coder
  • 10,882
  • 6
  • 42
  • 75
0
votes
1 answer

ActiveAndroid- unable to create Tables when initialized explicitly

In my application rather than following the regular hierarchy of the ActiveAndorid, I'm explicitly calling with the .initialize() method by passing the getApplicationContext. However, the TableInfo returned doesnt have any Tables from the model…
rock_win
  • 755
  • 1
  • 5
  • 14
-1
votes
1 answer

How to delete and recreate a database in Android?

we have an application that uses ActiveAndroid ORM, in some devices like Vivo and some models of Samsung, the schema doesn't get updated even if you increase the version of the database, more problematic is the Vivo models doesn't seem to delete the…
user1098694
  • 31
  • 1
  • 6
-1
votes
1 answer

Why do i have a null pointer exception on database calls and what can i do to solve?

new AsyncTask>() { @Override protected List doInBackground(Ticket... params) { List lines; while (true){ Log.d(TAG, "Waiting for data base…
Kevin Lopez
  • 63
  • 1
  • 9
-1
votes
1 answer

Clear Shared Preference after Active Android onUpgrade

How to detect if the database version has changed and perform actions in ActiveAndroid. Similar to onUpgrade in SQLiteDatabaseHelper?
vijaydev
  • 395
  • 4
  • 14
-1
votes
2 answers

How to resolve "Can't downgrade database from version 2 to 1" in ActiveAndroid?

I used ActiveAndroid ORM in my application and in AndroidManifest.xml we just need do define meta-data tag for database version like but when i uninstall build and change Db version to 1…
Pranav
  • 4,172
  • 3
  • 30
  • 31
-1
votes
1 answer

ActiveAndroid Not saving blob type data(Image) in Sqlite

This is My model class ...i want to insert image file in db using activeandroid .i converted image file into bytes ... but bytes is not stored in Db ... the field type in Table is Blob import com.activeandroid.Model; import…
-1
votes
1 answer

ActiveAndroid - SELECT all users who have this product by the product name

I am using ActiveAndroid for the first time. I have users that have products. I want to select all the users that have a certain product. Here is my "scheme" @Table(name = "users") class User extends Model { } @Table(name = "products") class…
Kaloyan Roussev
  • 14,515
  • 21
  • 98
  • 180
-1
votes
1 answer

How to load items of a category from database in a depandent spinner

I created a List of Categories.Then I saved the names as a strings in an adapter. what I wanted to do is if I select a category from spinner1 I want the spinner2 to show items of category1 for example. the categories and items are two tables from…
TheGreenGoblen
  • 108
  • 1
  • 11
1 2 3
15
16