A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 102
Backtrace:
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 128
Backtrace:
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$hooks is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$config is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$log is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$uri is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$router is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$output is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$security is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$input is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$lang is deprecated
Filename: core/Controller.php
Line Number: 83
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$db is deprecated
Filename: core/Loader.php
Line Number: 397
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated
Filename: database/DB_driver.php
Line Number: 372
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 10
Function: __construct
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$session is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 11
Function: library
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 6
Function: __construct
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$dcphpmailer is deprecated
Filename: core/Loader.php
Line Number: 1284
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 11
Function: library
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$model is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 13
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$categories is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 15
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$postcat is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 19
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$comment is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 23
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$user is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 27
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$coderunner is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 32
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$toc is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 37
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$data is deprecated
Filename: controllers/Blog.php
Line Number: 39
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 39
Function: _error_handler
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property blog::$meta is deprecated
Filename: core/Loader.php
Line Number: 359
Backtrace:
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 42
Function: model
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$load is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$state is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$userrole is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$user_id is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$benchmark is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$hooks is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$config is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$log is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$utf8 is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$uri is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$exceptions is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$router is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$output is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$security is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$input is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$lang is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$db is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$session is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$dcphpmailer is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$model is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$categories is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$postcat is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$comment is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$user is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$coderunner is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$toc is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$data is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property CI_Loader::$meta is deprecated
Filename: core/Loader.php
Line Number: 932
Backtrace:
File: /home/u1494823/public_html/deretcode/application/core/DC_Controller.php
Line: 33
Function: view
File: /home/u1494823/public_html/deretcode/application/controllers/Blog.php
Line: 77
Function: view
File: /home/u1494823/public_html/deretcode/start.php
Line: 315
Function: require_once
Membuat Place Picker Android Seperti Aplikasi Gojek
Deretcode
English | Bahasa
Membuat Place Picker Android Seperti Aplikasi Gojek
Pernah kepikiran membuat aplikasi seperti gojek, mungkin tutorial kali ini akan sedikit membantumu membuat salah satu fitur yang ada didalamnya. Sesuai yang tertera pada judul di atas, kali ini kita akan belajar membuat sebuah place picker yang bisa di gunakan untuk mempickup lokasi pada google map.
advertisement
Sebenarnya, place picker ada di android Sdk android versi lama namun pada Sdk yang terbaru fungsi tersebut sudah di gantikan dengan PlaceAutocomplete.
Tapi tenang saja ada sebuah library class pihak ketiga yang bisa kita gunakan untuk membuat place picker dengan mudah dan di lengkapi dengan berbagai macam fitur di dalamnya. Jadi pada kesempatan kali ini kita akan membuatnya dengan Leku library place picker.
Fitur - Fitur Didalamnya
Pencarian Menggunakan Suara
Pencarian Menggunakan Teks
Mengambil data lokasi menggunakan Gps Atau Netwrok Provider
Google Places (Opsional)
Google Time Zone API (Opsional)
Pick lokasi dengan hanya mentouch peta dan gestur
Kostumisasi Tampilan Peta
Pelacakan Event
Mendukung Tiga Bahasa (English, Spanish and Vietnamese) Secara Bawaan
Mendukung RTL (Right-To-Left) layout
Instalasi Library
Pastikan Versi Sdk kalian 15 ke atas dan Google Play Services 17.0.0 keatas
Buka root build.gradle dan masukan code berikut di dalamnya
allprojects {
jcenter()
}
Kemudian buka app build.gradle dan di bagian dependency silahkan masukan code berikut jika menggunakan package library AndroidX
dependencies {
implementation 'com.schibstedspain.android:leku:7.2.0'
}
Jika menggunakan versi google servcie yang berbeda tulis code berikut
implementation ('com.schibstedspain.android:leku:7.2.0') {
exclude group: 'com.google.android.gms'
exclude group: 'androidx.appcompat'
}
Dan jika kalian tidak menggunakan package library AndroidX kalian bisa menggunakan Leku versi lawas
implementation ("com.google.android.libraries.places:places-compat:2.2.0")
implementation ("com.schibstedspain.android:leku:5.0.0") {
exclude group: 'com.google.android.gms'
exclude module: "play-services-places"
}
Mengatur Perijinan Di Manifiest.xml
Leku membutuhkan beberapa perizinan dari aplikasi untuk dapat menjalankannya, silahkan kalian buak Manifiest dan tambahkan code permission berikut.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-feature android:name="android.hardware.location.network" android:required="false" />
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
Cara Menggunakan Library Leku
Sebagai contoh disini kita akan menggunakan activity default dari leku untuk menampilkan place pickernya.
Buka Manifiest.xml proyek android kalain dan daftarkan Activity bawaan lekunya dengan memasukan code berikut
<activity
android:name="com.schibstedspain.leku.LocationPickerActivity"
android:label="@string/leku_title_activity_location_picker"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="adjustPan"
android:parentActivityName=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/leku_searchable" />
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>
Buka class activity klian (Misalnya: MainActivity) dan panggil place pickernya dengan code berikut ini.
val locationPickerIntent = LocationPickerActivity.Builder()
.withLocation(41.4036299, 2.1743558)
.withGeolocApiKey("<PUT API KEY HERE>")
.withSearchZone("es_ES")
.withSearchZone(SearchZoneRect(LatLng(26.525467, -18.910366), LatLng(43.906271, 5.394197)))
.withDefaultLocaleSearchZone()
.shouldReturnOkOnBackPressed()
.withStreetHidden()
.withCityHidden()
.withZipCodeHidden()
.withSatelliteViewHidden()
.withGooglePlacesEnabled()
.withGoogleTimeZoneEnabled()
.withVoiceSearchHidden()
.withUnnamedRoadHidden()
.build(applicationContext)
startActivityForResult(locationPickerIntent, MAP_BUTTON_REQUEST_CODE)
Untuk menerima data lokasi yang dipilih dari place picker. Di activity class kalian (Misal:MainActivity) masukan callback methode berikut.
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
if (resultCode == Activity.RESULT_OK && data != null) {
Log.d("RESULT****", "OK")
if (requestCode == 1) {
val latitude = data.getDoubleExtra(LATITUDE, 0.0)
Log.d("LATITUDE****", latitude.toString())
val longitude = data.getDoubleExtra(LONGITUDE, 0.0)
Log.d("LONGITUDE****", longitude.toString())
val address = data.getStringExtra(LOCATION_ADDRESS)
Log.d("ADDRESS****", address.toString())
val postalcode = data.getStringExtra(ZIPCODE)
Log.d("POSTALCODE****", postalcode.toString())
val bundle = data.getBundleExtra(TRANSITION_BUNDLE)
Log.d("BUNDLE TEXT****", bundle.getString("test"))
val fullAddress = data.getParcelableExtra<Address>(ADDRESS)
if (fullAddress != null) {
Log.d("FULL ADDRESS****", fullAddress.toString())
}
val timeZoneId = data.getStringExtra(TIME_ZONE_ID)
Log.d("TIME ZONE ID****", timeZoneId)
val timeZoneDisplayName = data.getStringExtra(TIME_ZONE_DISPLAY_NAME)
Log.d("TIME ZONE NAME****", timeZoneDisplayName)
} else if (requestCode == 2) {
val latitude = data.getDoubleExtra(LATITUDE, 0.0)
Log.d("LATITUDE****", latitude.toString())
val longitude = data.getDoubleExtra(LONGITUDE, 0.0)
Log.d("LONGITUDE****", longitude.toString())
val address = data.getStringExtra(LOCATION_ADDRESS)
Log.d("ADDRESS****", address.toString())
val lekuPoi = data.getParcelableExtra<LekuPoi>(LEKU_POI)
Log.d("LekuPoi****", lekuPoi.toString())
}
}
if (resultCode == Activity.RESULT_CANCELED) {
Log.d("RESULT****", "CANCELLED")
}
}
Dan harusnya ketika kalian runing programnnya akan muncul tampilan kurang lebih seperti animasi berikut ini.
Terimakasih sudah mampir di artikel cara membuat place picker dengan mudah seperti aplikasi gojek. Jangan lupa di share jika kalian merasa artikel ini bermanfaat, kalau ada pertanyaan silahkan tulis di kolom komentar. Untuk tutorial lengkapnya kalian bisa mengunjungi web git nya di link Leku Repository . Good Luck!
advertisement
This website uses cookies to ensure you get the best experience on our website
learn more
Got IT!
Silahkan berkomentar dengan baik dan bijak!