Category Archives: Mobile Development

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 index.android.js –bundle-output android/app/src/main/assets/index.android.bundle –assets-dest android/app/src/main/res This command will create 2 files: index.android.bundle index.android.bundle.meta 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=”http://schemas.android.com/apk/res-auto&#8221; xmlns:android=”http://schemas.android.com/apk/res/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

Material Design

Posted in Android Development | Leave a comment