Config “januslo / react-native-bluetooth-escpos-printer” in React-Native

Copy from:  https://github.com/januslo/react-native-bluetooth-escpos-printer https://github.com/januslo/react-native-bluetooth-escpos-printer/pull/76/files We will get error message when we config on ios as bellow [!] use_native_modules! skipped the react-native dependency ‘react-native-bluetooth-escpos-printer’. No podspec file was found. Go to node_modules -> react-native-bluetooth-escpos-printer and create new file is called “RNBluetoothEscposPrinter.podspec” ————————————————————————– require “json” package = JSON.parse(File.read(File.join(__dir__, “package.json”))) Pod::Spec.new do |s| s.name = “RNBluetoothEscposPrinter” s.version =Continue reading “Config “januslo / react-native-bluetooth-escpos-printer” in React-Native”

Obfuscating Android Code with Proguard

By: 4down vote First enable minifyEnabled in your build.gradle file, like minifyEnabled true After this, add below lines in progurad-rules.txt file -keep class yourpackage.** { *; } -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -verbose For checking that its working fine go to: http://www.javadecompilers.com/apktool website so that you can verify after decompilation. It will work and your classes will be hidden completely. Copyfrom: https://stackoverflow.com/questions/17290023/obfuscation-in-android-studioContinue reading “Obfuscating Android Code with Proguard”

Horizontal RecyclerView in Vertical RecyclerView like Google Play Store

By: prathap kumar Step: 1 ====== Create two Model Classes like below. SingleItemModel.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43Continue reading “Horizontal RecyclerView in Vertical RecyclerView like Google Play Store”

Android Push Notifications when app is closed

By: Charuක   Yes, it is possible ‘to receive notifications from google cloud message when the application is fully closed’. Infact, A broadcast receiver is the mechanism GCM uses to deliver messages. You need to have implement a BroadcastReceiver and declare it in the AndroidManifest.xml. Please refer to the following code snippet. AndroidManifest.xml <receiver android:name=”.GcmBroadcastReceiver” android:permission=”com.google.android.c2dm.permission.SEND” > <intent-filter>Continue reading “Android Push Notifications when app is closed”

Adding Badge count on menu items like cart , notification etc

By: mobikul.com In every application, we decorate our MenuItem placed on ActionBar. Displaying of badge count not only decorate the ActionBar beautifully but also displays useful information like showing the number of items currently available in your cart or update you with unread notification. We can create badge count using either a custom view orContinue reading “Adding Badge count on menu items like cart , notification etc”

Get started with RabbitMQ on Android (Android Studio)

By: LOVISA JOHANSSON (cloudamqp) This guide explains how to create a simple chat application in Android using Android Studio and RabbitMQ. Everyone that has the application will be able to send and receive messages from all other users that are using the same application. If you are using Eclipse, check out this blog post instead. InContinue reading “Get started with RabbitMQ on Android (Android Studio)”

Android support multidex library implementation

By: Nicolas Tyler There are a few things you have to do, 1- In your gradle you need to specify multidex and add the support library: android { defaultConfig { … multiDexEnabled true … } } dependencies { … compile ‘com.android.support:multidex:1.0.0’ … } 2- In your manifest you have to set your application to a multidexContinue reading “Android support multidex library implementation”

Integrated aSmack (Openfire) with Android

By: http://developer.samsung.com/ Introduction Instant messaging (IM) communication is done through the use Extensible Messaging and Presence Protocol (XMPP) (also known as Jabber), an open standard XML based messaging communication protocol. Most IM Clients use the XMPP protocol for communication. Google is one of the clients that use XMPP for its Google Talk Product. There are variousContinue reading “Integrated aSmack (Openfire) with Android”

Compile Google Volley to JAR on Windows

By Sochinda, Requirement: 1-Install Git Go to: https://git-scm.com/download/win and install 3-JDK PATH: C:\Program Files\Java\jdk1.7.0_75\bin JAVA_HOME: C:\Program Files\Java\jdk1.7.0_75 3-Android Command Open Android Studio File -> Project Stucture -> check SDK location – add …\tools;…\platform-tools in PATH 4-Apache Ant Go to: https://ant.apache.org/bindownload.cgi -> and click download file zip Extract and copy to path as C:\apache-ant-1.9.6 (Example) AndContinue reading “Compile Google Volley to JAR on Windows”