Skip to content

Instantly share code, notes, and snippets.

@novotnyr
novotnyr / gist:02a74e78d0801cd06d74b75975264cda
Last active May 2, 2021 20:55
UINF/VMA - Appka Magellan
//build.gradle (Top-Level)
classpath 'com.google.gms:google-services:4.3.5'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
//build.gradle (App)
plugins {
//...
id 'com.google.gms.google-services'
@novotnyr
novotnyr / gist:f17e0aeab686a316d80c7dd49468fd91
Created April 26, 2021 00:40
UINF/VMA Android -- Appka Kde som?
implementation 'androidx.activity:activity-ktx:1.2.2'
implementation 'androidx.fragment:fragment-ktx:1.3.3'
implementation 'com.google.android.gms:play-services-location:18.0.0'
@novotnyr
novotnyr / gist:1cd160a7e67403277daac34dc28ec7f7
Created April 18, 2021 23:33
UINF/VMA Android - Appka Fotoriava
implementation 'androidx.activity:activity-ktx:1.2.2'
implementation 'androidx.fragment:fragment-ktx:1.3.2'
implementation 'com.otaliastudios:cameraview:2.7.0'
implementation 'com.squareup.picasso:picasso:2.71828'
-----
class GalleryViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
@novotnyr
novotnyr / gist:a9d7095f79393bb143fb0eb8c6e3606b
Created April 11, 2021 11:38
UINF/VMA Android - Appka Groš
implementation "androidx.activity:activity-ktx:1.2.2"
implementation "androidx.fragment:fragment-ktx:1.3.2"
implementation 'androidx.preference:preference-ktx:1.1.1'
@novotnyr
novotnyr / gist:08ab14467c249555e6e6baf7e9de5a8e
Created March 28, 2021 22:50
UINF/VMA Android 2021 - Appka Dr Iľko
---------build.gradle
buildFeatures {
viewBinding true
}
---------build.gradle
implementation 'androidx.activity:activity-ktx:1.2.2'
implementation "androidx.fragment:fragment-ktx:1.3.2"
@novotnyr
novotnyr / gist:9e1fade9406d10cf729356bfd5d0c603
Last active March 22, 2021 07:45
UINF/VMA Android 2021 - Appka Presentr
implementation 'androidx.activity:activity-ktx:1.2.1'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
------------
REST API:
https://ics.upjs.sk/~novotnyr/android/demo/presentr/index.php/available-users
package com.github.novotnyr.yello
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Note::class], version = 1)
abstract class AppDatabase : RoomDatabase() {
Ferdinand I., 1526 - 1564
Maximilián, 1564 - 1576
Rudolf, 1576 - 1608
Matej II., 1608 - 1619
Ferdinand II., 1619 - 1637
Gabriel Betlen, 1619 - 1621
Ferdinand III., 1637 - 1657
Leopold I., 1657 - 1705
Imrich Tököli, 1682 - 1685
Jozef I., 1705 - 1711
Ferdinand I., 1526 - 1564
Maximilián, 1564 - 1576
Rudolf, 1576 - 1608
Matej II., 1608 - 1619
Ferdinand II., 1619 - 1637
Gabriel Betlen, 1619 - 1621
Ferdinand III., 1637 - 1657
Leopold I., 1657 - 1705
Imrich Tököli, 1682 - 1685
Jozef I., 1705 - 1711
package com.github.novotnyr.rc;
import java.text.ParseException;
import java.time.DateTimeException;
import java.time.LocalDate;
public class RodneCislo {
private LocalDate datum;
private String koncovka;