Angular CLI: 6.1.1
Node: 8.9.4
OS: linux x64
Angular: 6.1.0
| package com.journaldev.recyclerviewgridlayoutmanager; | |
| import android.content.Context; | |
| import android.support.v7.widget.GridLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| /**AUTHORING: | |
| * Created by anupamchugh on 05/03/17. | |
| * Source code from BY ANUPAM CHUGH. | |
| * Article published on APRIL 2, 2018 on |
| public interface CustomItemClickListener { | |
| public void onItemClick(View v, int position); | |
| } |
| package com.udacity.myapplicationtest; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| /** | |
| * Official documentation: | |
| * https://developer.android.com/reference/android/app/Activity | |
| */ |
| /** | |
| * When a item list is clicked the news item will be shown on the device browser. | |
| * | |
| * @param url is Web Url of the news item. | |
| */ | |
| private void openWebPage(String url) { | |
| Uri uriWebPage = Uri.parse(url); | |
| Intent intent = new Intent(Intent.ACTION_VIEW, uriWebPage); | |
| if (intent.resolveActivity(getPackageManager()) != null) { | |
| startActivity(intent); |
| // Get unix current DATETIME | |
| long epoch = System.currentTimeMillis()/1000; | |
| Log.v(">>EPOCH NOW DATE>>>", String.valueOf(epoch)); |
| -- TIME STAMP SAMPLE FOR NEW ROWS and UPDATE A EXISTING ROW | |
| create table table_name ( | |
| id int unsigned not null auto_increment, | |
| column_abc varchar(255) not null, | |
| column_created timestamp not null default current_timestamp, | |
| column_updated timestamp not null default current_timestamp on update current_timestamp, | |
| primary key (id) | |
| ); |
| package com.udacity.myapplicationtest; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| /** | |
| * Official documentation: | |
| * https://developer.android.com/reference/android/app/Activity | |
| */ |