Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Stuart Campbell
    @Stuart-campbell
    But replace co.uk.rushexample.SampleApplication with your own package and class name
    Diego Aguilar Aguilar
    @diegoaguilar
    Im tyring it right now
    Diego Aguilar Aguilar
    @diegoaguilar
    @Stuart-campbell I got the same
    oh wait
    I didnt do last part
    Stuart Campbell
    @Stuart-campbell
    Make sure you remove all other calls to
    RushAndroid.initialize(getApplicationContext());
    Diego Aguilar Aguilar
    @diegoaguilar
    so I need one single call
    I have one single call
    I'm sharing you the repository now
    I guess
    because I got same
    Stuart Campbell
    @Stuart-campbell
    Can you post what metadata tags do you have in your manifest?
    Diego Aguilar Aguilar
    @diegoaguilar
    sorry for verbose, but here is my manifest
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="apps.android.expressa.expressa">
    
        xmlns:tools="http://schemas.android.com/tools">
    
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
        <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
        <uses-permission android:name="android.permission.INTERNET"/>
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
        <uses-permission android:name="android.permission.CAMERA"/>
        <uses-permission android:name="android.permission.READ_CONTACTS"/>
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    
        <application
    
    
            tools:replace="android:icon,android:theme"
            android:icon="@mipmap/ic_launcher"
            android:allowBackup="true"
            android:label="@string/app_name"
            android:theme="@style/AppTheme"
            android:name=".ExpresaApplication">
    
            <meta-data android:name="Rush_db_version" android:value="1" />
            <!-- Database name -->
            <meta-data android:name="Rush_db_name" android:value="expressa.db" />
            <!-- Setting this to true will cause a migration to happen every launch,
            this is very handy during development although could cause data loss -->
            <meta-data android:name="Rush_debug" android:value="true" />
            <!-- Setting this to true mean that tables will only be created of classes that
            extend RushObject and are annotated with @RushTableAnnotation -->
            <meta-data android:name="Rush_requires_table_annotation" android:value="true"/>
    
            <activity
                android:name=".MainActivity"
                android:label="@string/app_name"
                android:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout|uiMode"
                android:windowSoftInputMode="adjustResize|stateVisible|adjustPan|stateHidden">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
    
            <activity
                android:name=".PeopleActivity"
                android:label="@string/app_name"
                android:parentActivityName=".MainActivity" >
                <meta-data
                    android:name="android.support.PARENT_ACTIVITY"
                    android:value=".MainActivity" />
            </activity>
        </application>
    
    </manifest>
    Stuart Campbell
    @Stuart-campbell
    Ah
    Here is your problem.
    <meta-data android:name="Rush_requires_table_annotation" android:value="true"/>
    remove that line
    Or add @RushTable to each class
    Diego Aguilar Aguilar
    @diegoaguilar
    that was it
    thanks a lot
    Hey is there any kind of ... sql console for sqlite
    ?
    Stuart Campbell
    @Stuart-campbell
    Adding this will log all the sql thats run
    <meta-data android:name="Rush_log" android:value="true" />
    Diego Aguilar Aguilar
    @diegoaguilar
    but I want to see what's stored
    I have a doubt, how can I ensure that database and tables will remain
    or how could I drop database
    only by changing version?
    Stuart Campbell
    @Stuart-campbell
    I'm not aware of a console to look through the data.
    I think you just have to trust android that its not going to delete your tables.
    Diego Aguilar Aguilar
    @diegoaguilar
    Ok thanks
    Hmm trying to do an async query
    List<CustomString> storedStrings = new RushSearchCallback<>()
    should it be CustomString inside the <>
    ?
    Stuart Campbell
    @Stuart-campbell
    new RushSearch().find(Object.class, new RushSearchCallback<Object>() {
        @Override
        public void complete(List<Object> list) {
        }
    });
    Diego Aguilar Aguilar
    @diegoaguilar
    ok
    and for synchronous requests, does this make sense? List<CustomString> storedStrings = new RushSearch().whereEqual("category","actions").find(CustomString.class);
    Stuart Campbell
    @Stuart-campbell
    Yeah that should work
    Diego Aguilar Aguilar
    @diegoaguilar
    Hey what about exceptions
    should I worry about anything
    how could I notice about any error?
    Stuart Campbell
    @Stuart-campbell
    You shouldn't see any errors
    They would be logged if you have any
    Diego Aguilar Aguilar
    @diegoaguilar
    ok
    jbxberg
    @jbxberg
    Hi Stuart, I'm evaluating RushOrm for our application. Looks very good so far, but I'm wondering whether/how it's possible to begin/end transactions manually?
    Stuart Campbell
    @Stuart-campbell
    Sorry maven server is temporarily down latest jar here
    Fathony Teguh Irawan
    @fathonyfath
    Greetings. Great libs. I wondering what minSdk level API of this lib? Thanks!
    Felipe Costa
    @Felipe00
    Hi, I'm newbie with Orm but the Id is a String (rush_id). How can I use my own "Long id" with auto_increment?