Skip to content

Instantly share code, notes, and snippets.

[
{
"id": "1",
"name": "KFC",
"address": "address 1",
"review": "84%",
"delivery_time": "20-30 min",
"image": "https://www.financialafrik.com/wp-content/uploads/2018/02/this-is-what-kfc-is-famous.jpg",
"location": {
"lat": "48.873187",
{
"ads": "false",
"update": [
{
"version": "2.8.2000",
"title": "Do you like this VPN app? Check the source code!",
"description": "The App is available ",
"size": "size"
}
],
{
"ovpn_file": [{
"id": "0",
"file": "setenv USERNAME \\\"testfred / connector / 3779 b6b9 - 5 f33 - 4439 - b528 - fa88d20dad2b_3a98dd06 - 566 c - 41 a9 - bc20 - 7 ddb9d9a2eba\\\" # OVPN_WEBAUTH_FRIENDLY_USERNAME = testfred / test / connector01 # OVPN_FRIENDLY_PROFILE_NAME = test @testfred.openvpn.com[London] client dev tun remote gb - lhr.gw.openvpn.com 1194 udp remote gb - lhr.gw.openvpn.com 1194 udp remote gb - lhr.gw.openvpn.com 443 tcp remote gb - lhr.gw.openvpn.com 1194 udp remote gb - lhr.gw.openvpn.com 1194 udp remote gb - lhr.gw.openvpn.com 1194 udp remote gb - lhr.gw.openvpn.com 1194 udp remote gb - lhr.gw.openvpn.com 1194 udp remote - cert - tls server cipher AES - 256 - CBC auth SHA256 persist - tun nobind verb 3 socket - flags TCP_NODELAY < ca > -- -- - BEGIN CERTIFICATE-- -- - MIIDRDCCAiygAwIBAgIJAPRJm0V + RAQkMA0GCSqGSIb3DQEBCwUAMBsxGTAXBgNVBAMMEENsb3VkVlBOIFByb2QgQ0EwHhcNMTkxMDE2MTgwNDQ3WhcNNDkxMDA4MTgwNDQ3WjAbMRkwFwYDVQQDDBBDbG91ZFZQTiBQcm9kIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE
[
{
"id":1,
"name":"Leanne Graham",
"username":"Bret",
"email":"Sincere@april.biz",
"address":{
"id_user":1,
"lat":"-37.3159",
"lng":"81.1496"
[
{
"id":1,
"name":"Leanne Graham",
"username":"Bret",
"email":"Sincere@april.biz",
"lat":"-37.3159",
"lng":"81.1496",
"phone":"1-770-736-8031 x56442",
"website":"hildegard.org"
1- layout MainActivity
2- google_maps_key
3- Gradle
4- Manifest
5- Fragment layout
6- Fragment
PS : Don't forget Dexter check
=========================================================================
1- Class contact avec constructeur principal
2- gradle
3- manifest
4- function contacts
Ps: check
========================================================================
class Contact
========================================================================
class Contact(var number: String, var name: String)
=========================================================================
Gradle
=========================================================================
implementation 'com.karumi:dexter:6.2.3'
=========================================================================
Manifest
=========================================================================
<uses-permission android:name="android.permission.BLUETOOTH" />
============================================
Gradle
============================================
dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
========================================================
layout activity
========================================================
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">