Skip to content

Instantly share code, notes, and snippets.

View LaszloLajosT's full-sized avatar

Laszlo Lajos Toth LaszloLajosT

  • Bournemouth
View GitHub Profile
@LaszloLajosT
LaszloLajosT / MainActivity.java
Last active April 17, 2020 17:43
This is an Android Basics Nanodegree Program Practice Set. Lesson 4. Making an App interactive. I read many comments how confusing to set up a new project before even start the practice part. I got it. A few updates came out since and the first step for beginners can be hard. So, here is my "create a new project" first step.
package android.example.practiceset2;
import android.os.Bundle;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
@LaszloLajosT
LaszloLajosT / README-Template.md
Created December 5, 2019 20:25 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@LaszloLajosT
LaszloLajosT / NumbersActivity.java
Last active June 5, 2021 19:54
Here we are again. I hope this will make it easier how to compare the task to the result. Do you want to know which lesson is that? -> Custom ArrayAdapter Exercise from Udacity, Android Basics Nanodegree Program. Multi Screen Apps -> LESSON 3 Arrays, Lists, Loops, & Custom Classes Use Arrays, Lists, and Loops
package com.example.android.miwok;
import android.os.Bundle;
import android.widget.ListView;
import java.util.ArrayList;
import androidx.appcompat.app.AppCompatActivity;
public class NumbersActivity extends AppCompatActivity {
@Override
@LaszloLajosT
LaszloLajosT / activity_main.xml LinearLayout ->TextViews
Created May 1, 2020 19:21
Horizontal TextView examples in LinearLayout and RelativeLayout
<?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">
<LinearLayout
android:id="@+id/tv_amenities"
@LaszloLajosT
LaszloLajosT / FirebaseJobDispatcher.java
Created September 6, 2020 11:41
FirebaseJobDispatcher Sample Code:
Driver driver = new GooglePlayDriver(context);
FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(driver);
Job myJob = dispatcher.newJobBuilder()
// the JobService that will be called
.setService(MyJobService.class)
// uniquely identifies the job
.setTag("complex-job")
// one-off job
.setRecurring(false)