This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.app.penyakitdaunjagung.ui.detection | |
| import android.content.Intent | |
| import android.graphics.Bitmap | |
| import android.graphics.Color | |
| import android.net.Uri | |
| import android.os.Bundle | |
| import android.util.Log | |
| import android.widget.ArrayAdapter | |
| import android.widget.Toast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import zipfile | |
| import os | |
| import shutil | |
| # Unzipping the file to a temporary directory | |
| zip_path = '/content/human-ai-artwork.zip' | |
| extract_path = '/content/temporary' | |
| with zipfile.ZipFile(zip_path, 'r') as zip_ref: | |
| zip_ref.extractall(extract_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.rijaldev.snapgram.presentation.customviews | |
| import android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.drawable.Drawable | |
| import android.text.InputType | |
| import android.util.AttributeSet | |
| import android.util.Patterns | |
| import android.view.MotionEvent | |
| import android.view.View |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private fun showMarker(stories: List<Story>) { | |
| val firstStory = stories.firstOrNull() ?: return | |
| val cameraUpdate = CameraUpdateFactory.newLatLngZoom( | |
| LatLng(firstStory.lat ?: return, firstStory.lon ?: return), 10f | |
| ) | |
| map.animateCamera(cameraUpdate) | |
| stories.forEach { story -> | |
| val latLng = LatLng(story.lat ?: return, story.lon ?: return) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.rijaldev.snapgram.presentation.widget | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.graphics.Bitmap | |
| import android.widget.RemoteViews | |
| import android.widget.RemoteViewsService | |
| import androidx.core.os.bundleOf | |
| import com.bumptech.glide.Glide | |
| import com.rijaldev.snapgram.R |