Category Archives: Mobile Development

Realm Problem After Installed\\Program Files\\Java\\jdk1.8.0_131 Advertisements

Posted in Mobile Development | Leave a comment

React Native

Problem with Real Device Create a new folder => android/app/src/main/assetsjust create the folder assets in “android/app/src/main/” Run this command: react-native bundle –platform android –dev false –entry-file –bundle-output android/app/src/main/assets/ –assets-dest android/app/src/main/res This command will create 2 files: run … Continue reading

Posted in Android Development, Mobile Development | Leave a comment

Create Multiple Model Realm

public boolean synceTransaction(final List<T> list){ if(list.size() == 0) return false; Realm.init(getContext()); realm = Realm.getInstance(getConfiguration()); realm.executeTransactionAsync(new Realm.Transaction() { @Override public void execute(Realm realm) { for(int i = 0;i<list.size();i++) { realm.insert(list.get(i)); } } }, new Realm.Transaction.OnSuccess() { @Override public void onSuccess() { … Continue reading

Posted in Realm | Leave a comment

Relationship Model

public class PayReceiptModelRealm extends RealmObject { private String AccountNo; private String PaymentGatewayNo; private String Token; public RealmList<TransactionModel> TransactionList = new RealmList<>();//don’t forget to initialize this therefor it won’t work } public class TransactionModel extends RealmObject { @PrimaryKey private int ID; … Continue reading

Posted in Realm | Leave a comment

How to access views insde the actionLayout in menu

<menu xmlns:app=”; xmlns:android=””&gt; <group android:visible=”true” android:id=”@+id/menu”> <item android:id=”@+id/nav_dashboard” android:icon=”@drawable/ic_dashboard_home” android:title=”Dashboard” /> <item android:id=”@+id/nav_time_sheet” android:icon=”@drawable/ic_time_sheet” android:title=”Time Sheet” /> <item android:id=”@+id/nav_setting” android:icon=”@drawable/ic_settings” android:title=”Setting” /> <item android:id=”@+id/nav_messaging” android:icon=”@drawable/ic_chat” android:title=”Chat” /> <item android:id=”@+id/nav_syn” android:icon=”@drawable/ic_syncronize” android:title=”Syncronize”/> <item android:id=”@+id/nav_switcher” android:icon=”@drawable/ic_mode” android:title=”Offline Mode” android:clickable=”false” app:actionLayout=”@layout/layout_switcher_button” /> </group> … Continue reading

Posted in Android Development | Leave a comment

Android MultipleSelect checkbox on Dialog box Tutorial

Objective In this tutorial, I am going to explain process of opening a dialog box with various selectable options, select more than one option as response and use that response.

Posted in Android Development | Leave a comment

Retrofit Android Tutorial : Example of Retrofit 2.0 capturing JSON Array and JSON Object from URL

Posted in Android Development | Leave a comment