SQLConnection for Android and iOS : React-Native

Posted on Leave a commentPosted in ReactNative

# SQLiteConnection_Android_iOS NPM Database Connection Package for android https://www.npmjs.com/package/reactnative_sqlconnection_android_ios   Steps: 1:  npm install –save sqliteconnection_android_ios  2: npm link sqliteconnection_android_ios 3: Add following code in settings.gradle include ‘:reactnative_sqlconnection_android_ios’ project(‘:reactnative_sqlconnection_android_ios’).projectDir = new File(rootProject.projectDir, ‘../node_modules/reactnative_sqlconnection_android_ios/android’) 4: Add in  App build.gradle compile project(“:reactnative_sqlconnection_android_ios”) 5: Check in default configuration with multidex enable or not multiDexEnabled true     @Android […]

Create React-Native-Bridge: Native Android and iOS Code

Posted on Leave a commentPosted in ReactNative

Bridging native modules & UI components. Getting Started npm install -g react-native-create-bridge or yarn global add react-native-create-bridge From the root of your React Native project, run create-bridge Ex. SQLiteConnection_Android_iOS>create-bridge ? What is your bridge module called? SQLConnection ? What type of bridge would you like to create? (Press <space> to select, <a> t o toggle all, <i> to […]

Android now supports the Kotlin programming language

Posted on Leave a commentPosted in Android

For Android developers, Kotlin support is a chance to use a modern and powerful language, helping solve common headaches such as runtime exceptions and source code verbosity. Kotlin is easy to get started with and can be gradually introduced into existing projects, which means that your existing skills and technology investments are preserved. https://kotlinlang.org/docs/reference/android-overview.html

Get IP in JSON

Posted on Leave a commentPosted in Android

http://www.rameshchavan.in/myip.php   Android Code: final TextView mTextView = (TextView) findViewById(R.id.text); … // Instantiate the RequestQueue. RequestQueue queue = Volley.newRequestQueue(this); String url =”http://www.rameshchavan.in/myip.php”; // Request a string response from the provided URL. StringRequest stringRequest = new StringRequest(Request.Method.GET, url,             new Response.Listener<String>() {     @Override     public void onResponse(String response) […]

Places Autocomplete: Android

Posted on Leave a commentPosted in Android

Places Autocomplete: Android Steps 1: Create Android API Browser API key on google console. 2: Http Get Request on following link: https://maps.googleapis.com/maps/api/place/autocomplete/json?input=ban&key=API_KEY 3: Define output format : json/xml 4: On autocomplete text  change , call following method . PlaceAPI.getPlace(String inputType,  String latitude,String longitude) Ex. PlaceAPI.getPlace(“bank”,”18.643702″,”73.00000″)   5: Set Adapter to autocomplete view.   PlaceAPI Code: import org.json.JSONArray; import […]