Skip to content

Instantly share code, notes, and snippets.

Avatar

Laszlo Lajos Toth LaszloLajosT

View GitHub Profile
@LaszloLajosT
LaszloLajosT / FirebaseJobDispatcher.java
Created Sep 6, 2020
FirebaseJobDispatcher Sample Code:
View FirebaseJobDispatcher.java
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)
@LaszloLajosT
LaszloLajosT / activity_main.xml LinearLayout ->TextViews
Created May 1, 2020
Horizontal TextView examples in LinearLayout and RelativeLayout
View activity_main.xml LinearLayout ->TextViews
<?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 / NumbersActivity.java
Last active Dec 15, 2019
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
View NumbersActivity.java
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 / README-Template.md
Created Dec 5, 2019 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.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 / MainActivity.java
Last active Apr 17, 2020
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.
View MainActivity.java
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) {
You can’t perform that action at this time.