• Breaking News

    Sunday, May 2, 2021

    Android Dev - Building the Earth 1:1 in Minecraft - Mobile App

    Android Dev - Building the Earth 1:1 in Minecraft - Mobile App


    Building the Earth 1:1 in Minecraft - Mobile App

    Posted: 01 May 2021 10:25 PM PDT

    Hi Reddit,

    I am Jpac14, I am a developer and have been programming for many years now. I have been a major contributor to an open source project called Openstreetcraft for the last year and with one other active developer, we are nearly ready to go live. I am writing this to promote the project and get more people interested, to help develop or test it out.

    First let me explain what Openstreetcraft is. In a nutshell, Openstreetcraft is aiming to make a 1:1 replica of our home, Earth.

    A few stand-out features Openstreetcraft offers are:

    • Bedrock (Mobile, PC, Console) and Java (PC) Edition support
    • Weather and Timezone replication based on location in world
    • Replicates elevation levels and biomes from real world into the Minecraft world
    • Automatically builds structures such as roads, forest, rivers, baseplates for buildings
    • Public Java server that anyone can join already running + the ablity to run your own server easily.
    • Support for Bukkit and Nukkit (Partially)

    Features to come (that we need help developing):

    • A Mobile App, which will allow you to run a server on your phone to play as you go.
    • A Website, to learn more about the project and how to use it. As well as a cheap hosting platform to spin up your own server.
    • Use machine learning to design various town houses that can be placed into the world.
    • Implement ore, flora and fauna spawning based off real life statistics
    • Create a 1:1 scale of the other planets in our solar system (such as the moon), using open images and datasets
    • Create a Discord Bot, for various operations we need.
    • Port plugins to other server types such as Forge, Nukkit, Paper, Spigot, Sponge and Minestom

    Main Language and Technologies we use:

    • Java
    • Python
    • Spring
    • Docker
    • Minecraft APIs such as Bukkit API and Nukkit API
    • AWS
    • NextJS

    Now that I have described the project, let me explain what we are looking for. We are looking for beta testers and contributors.

    If your interested in becoming a beta tester, contact me (contact methods below).

    If your interesting in contributing, you can start looking through issues on the Gitlab repository and open a merge request or get in contact with me, so I can help you get started (contact links below). Our main priority at the moment is the Mobile App, Website and Minecraft Plugins, but if you would like to contribute to something else thats fine. If you have never contributed to a open source project before, this is a great oppourtunity. And if your a intermediate developer, we will do code review to help you become a better programmer and learn the best design practices.

    If you are on the fence about anything or want to ask any questions, please contact me. We would love to have you helping us out.

    Videos & Pictures:

    https://www.youtube.com/watch?v=HSXzLlPBH3M

    https://imgur.com/a/XZXBMuN

    https://imgur.com/a/3HAJEG2

    Links:

    submitted by /u/Jpac14_
    [link] [comments]

    Coroutines for beginners- the only article you need to get started!

    Posted: 02 May 2021 06:44 AM PDT

    When I shifted to Kotlin, I realised that the www was pretty unfriendly for a coroutine beginner- there was a lot of information available but one had to really go through a ton of articles for Coroutines to start making any sense! I often ended up fumbling through the internet, having words like scope, dispatchers, builder, asyncawaitsuspendaaaaaaaah! thrown in my face, and after I could finally decipher Coroutines, I decided to use my bad experience to create a good one for all the fellow Coroutine-noobs out there. So, here's presenting this comprehensive article!

    https://medium.com/gradeup/coroutines-for-beginners-the-only-article-youll-need-to-get-started-3178929ca70d?sk=d34f14f70d46bb65c6e0918040c506da

    submitted by /u/Separate-Skill8197
    [link] [comments]

    Testing Admob Ad Serving Limit

    Posted: 01 May 2021 05:43 PM PDT

    Hi, I just started with the new account and after 1 day I got an ad limit. I was running app open, interstitial, and video reward ads. All of them were frequency capped 5 per 10 min or something like that. I also ran a Facebook Ad campaign for £25 a day without changing anything the traffic was like 200-300 people a day and everything looks normal ctr, requests, etc. Even with reduced ads than before and without banners the problem still arises. Someone mentioned the bot clicks from when you submit your app for a review, but tbh it is not that.

    Account 1: had $5 invalid traffic
    Account 2: had $0.50 invalid traffic
    Account 3: had $6.50 invalid traffic
    Account 4: had $8.30 invalid traffic

    All of the accounts had made a minimum of $700. It is plain simple it is the traffic you get in your app is the reason. The Admob algorithm is broken and bugged as fuck so I would just stay away from it now until they fix it. This is unacceptable. You can't limit an account for $0.50 invalid traffic that's a joke :D.

    submitted by /u/kovachxx
    [link] [comments]

    [GDPR] How do you handle the user consent when using Crashlytics and Remote Config

    Posted: 02 May 2021 12:09 AM PDT

    I'm working on an Android application and I'm considering adding Crashlytics and the Firebase Remote Config to it. However the GDPR regulation scares me a bit. Do I need to show the consent dialog to use either of them? Do I need one or two dialogs?

    Context - the documentation mentioned that both of the SDKs collect the Installation IDs and Crashlytics obviously collects the crash reports as well ;) And this data is considered a personal data.

    If this is a personal data, does it mean that in the privacy policy I can't say this is anonymous? If this is not linked to anything else it feels it is anonymous though..

    How do you handle this in your apps that are published in Europe?

    submitted by /u/Krokodylowy
    [link] [comments]

    Is it possible to use Android Enterprise on Android Go devices?

    Posted: 01 May 2021 06:28 PM PDT

    I am planning to develop an app for tablet, I saw Alcatel 1t10(32GB rom & 2GB ram) as it is low price but its OS is Android 8.0 Go Edition.

    Thank you.

    submitted by /u/night-robin
    [link] [comments]

    Upload to MavenCentral made easy for Android Library

    Posted: 02 May 2021 05:47 AM PDT

    Boot loader

    Posted: 01 May 2021 07:00 PM PDT

    Is it possible for a android virus to delete or modify boot loader files?

    submitted by /u/Sto_rmo
    [link] [comments]

    Getting the notification's id sent via Firebase Messaging

    Posted: 02 May 2021 05:20 AM PDT

    Is there any way to get the notification id of the last sent notification, which was sent via Firebase Messaging? If it's possible I want to cancel a specific notification.

    submitted by /u/f1r4tc
    [link] [comments]

    Question about saving state in LazyColumn?

    Posted: 02 May 2021 04:48 AM PDT

    How to save state when we have multiple LazyColumn in single screen on navigating to different screen on click of any item from any LazyColumn?

    submitted by /u/nabeel527
    [link] [comments]

    End to end encryption in chat application

    Posted: 01 May 2021 08:33 PM PDT

    Hey ,

    How can I use end to end encryption in my chat application. Or if anyone know any resources to learn end to end encryption then please let me know.

    Thanks

    submitted by /u/Revolutionary_Trip5
    [link] [comments]

    What is/are the difference(s) between root methods?

    Posted: 02 May 2021 03:29 AM PDT

    As the title asks, what is/are the difference(s) between root methods? I know that there are several different ones, i.e. KingoRoot, superuser, etc. But what (if any) are the differences?

    submitted by /u/Livid_Layer_5893
    [link] [comments]

    Lightweight Linux distro for android app developers?

    Posted: 02 May 2021 03:16 AM PDT

    I've learned that BBQLinux is better than Ubuntu regarding android app development because of its lightness and it comes with tools needed pre-installed.
    Which Linux distro do you suggest which will require minimum resources? Why do you think it's better than others?

    I have a pc with 4GB ram installed. That's why I am trying to find the lightest os for android app dev.

    submitted by /u/7h3_D4RKN355
    [link] [comments]

    Avoiding Admob Invalid Traffic

    Posted: 01 May 2021 09:59 PM PDT

    Would implementing Appodeal with Admob for example avoid invalid traffic issues? Instead of just implementing Admob directly.

    submitted by /u/kovachxx
    [link] [comments]

    Any free way to find keywords for your app?

    Posted: 02 May 2021 12:24 AM PDT

    I just need to find a good title for my listing on the Play Store.

    I googled "Keyword tool for Play Store" and I only get over-advertised scams that want you to pay $200 per month to use their keyword search.

    Update: Why is everyone downvoting :'(

    submitted by /u/HiDiNoWro
    [link] [comments]

    What does "x+ years of Android Development Experience" in a job listing mean?

    Posted: 01 May 2021 05:45 AM PDT

    Does it mean x years of experience working as an android dev professionally or just learning android dev and making projects for x years?

    I have no work experience. I've been learning android since 2019. I've built many apps since then (CRUD apps, Covid 19 tracker, screen usage tracker, etc.). I've also built 2 apps with Jetpack Compose. I have a good understanding of DI, MVVM, and stuff like that. I didn't give attention to testing before but I'm learning it now.

    I'm starting to apply for jobs. I've seen job listings that say:

    • x+ years of experience
    • x+ years of working experience
    • x+ years of Android Development experience

    I guess I don't qualify for the work experience listing but can I apply to the other two listings?

    submitted by /u/fukkschool
    [link] [comments]

    How Would You Refactor the AsyncTask Implementations in This Java Class Using java.util.concurrent?

    Posted: 01 May 2021 09:56 PM PDT

    So I remember looking at this tutorial about MVVM. I remember this as being a really good intro to that design architecture, but it's repository class is still written with AsyncTask and now that it is really that deprecated, I think it is bound for a rewrite, so I'll start by asking: How should we rewrite the AsyncTask implementations below using java.util.concurrent?

    package com.codinginflow.architectureexample; import android.app.Application; import android.arch.lifecycle.LiveData; import android.os.AsyncTask; import java.util.List; public class NoteRepository { private NoteDao noteDao; private LiveData<List<Note>> allNotes; public NoteRepository(Application application) { NoteDatabase database = NoteDatabase.getInstance(application); noteDao = database.noteDao(); allNotes = noteDao.getAllNotes(); } public void insert(Note note) { new InsertNoteAsyncTask(noteDao).execute(note); } public void update(Note note) { new UpdateNoteAsyncTask(noteDao).execute(note); } public void delete(Note note) { new DeleteNoteAsyncTask(noteDao).execute(note); } public void deleteAllNotes() { new DeleteAllNotesAsyncTask(noteDao).execute(); } public LiveData<List<Note>> getAllNotes() { return allNotes; } private static class InsertNoteAsyncTask extends AsyncTask<Note, Void, Void> { private NoteDao noteDao; private InsertNoteAsyncTask(NoteDao noteDao) { this.noteDao = noteDao; } @Override protected Void doInBackground(Note... notes) { noteDao.insert(notes[0]); return null; } } private static class UpdateNoteAsyncTask extends AsyncTask<Note, Void, Void> { private NoteDao noteDao; private UpdateNoteAsyncTask(NoteDao noteDao) { this.noteDao = noteDao; } @Override protected Void doInBackground(Note... notes) { noteDao.update(notes[0]); return null; } } private static class DeleteNoteAsyncTask extends AsyncTask<Note, Void, Void> { private NoteDao noteDao; private DeleteNoteAsyncTask(NoteDao noteDao) { this.noteDao = noteDao; } @Override protected Void doInBackground(Note... notes) { noteDao.delete(notes[0]); return null; } } private static class DeleteAllNotesAsyncTask extends AsyncTask<Void, Void, Void> { private NoteDao noteDao; private DeleteAllNotesAsyncTask(NoteDao noteDao) { this.noteDao = noteDao; } @Override protected Void doInBackground(Void... voids) { noteDao.deleteAllNotes(); return null; } } } 
    submitted by /u/dg_713
    [link] [comments]

    What is the logic behind updateQuestion regarding the animations in Trivia App?

    Posted: 01 May 2021 05:45 PM PDT

    I'm creating a Trivia App on Android Studio. For each statement, the user has to select true or false. Based on the input, if the answer they selected is correct, the statement text will fade in green whereas if the user selected the wrong answer, the statement text will shake red. This is my code so far:

    binding.buttonNext.setOnClickListener(view -> {

    currentQuestionIndex = (currentQuestionIndex + 1) % questionList.size();

    updateQuestion();

    });

    binding.buttonTrue.setOnClickListener(view -> {

    checkAnswer(true);

    updateQuestion();

    });

    }

    private void checkAnswer(boolean userChoseCorrect) {

    boolean answer = questionList.get(currentQuestionIndex).isAnswerTrue();

    int snackMessageId = 0;

    if (userChoseCorrect == answer) {

    snackMessageId = R.string.correct_answer;

    fadeAnimation();

    } else {

    snackMessageId = R.string.incorrect;

    shakeAnimation();

    }

    Snackbar.make(binding.cardView, snackMessageId, Snackbar.LENGTH_SHORT)

    .show();

    }

    private void fadeAnimation() {

    AlphaAnimation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);

    alphaAnimation.setDuration(300);

    alphaAnimation.setRepeatCount(1);

    alphaAnimation.setRepeatMode(Animation.REVERSE);

    binding.cardView.setAnimation(alphaAnimation);

    alphaAnimation.setAnimationListener(new Animation.AnimationListener() {

    u/Override

    public void onAnimationStart(Animation animation) {

    binding.questionTextview.setTextColor(Color.GREEN);

    }

    u/Override

    public void onAnimationEnd(Animation animation) {

    binding.questionTextview.setTextColor(Color.WHITE);

    }

    u/Override

    public void onAnimationRepeat(Animation animation) {

    }

    });

    }

    private void updateQuestion() {

    String question = questionList.get(currentQuestionIndex).getAnswer();

    binding.questionTextview.setText(question);

    updateCounter((ArrayList<Question>) questionList);

    }

    The code here is working perfectly fine. However, before I called `updateQuestion()`(by accident as a test) in the `onClick` methods of buttonTrue and buttonFalse, the animation was only occurring after I clicked the next button. **Why is updateQuestion() method call necessary to call the animations? Why can't I just call checkAnswer() which will call the animation methods?**

    Thanks!

    submitted by /u/chesspawn100
    [link] [comments]

    Playstore Optimization Tool

    Posted: 01 May 2021 09:04 PM PDT

    Playstore Optimization Tool

    Playstore Optimization Tool: We struggled a lot to develop this web app. Hope you guys will appreciate this. This web app allows you to do keyword research for Playstore and rank fast.

    Please don't ban me, I am not spamming.

    Note: Suggestions are highly motivated, 'cause the web app is still in beta.

    This is the Playstore optimization tool

    ASO keyword and research tool

    submitted by /u/bishwasbhn
    [link] [comments]

    Apple M1 vs Intel — The ULTIMATE Comparison

    Posted: 01 May 2021 05:17 PM PDT

    Library for Resource Binding?

    Posted: 01 May 2021 04:33 PM PDT

    Is ButterKnife the best option for getting clean, simple resource binding like this?

    @BindString(R.string.login_error) String loginErrorMessage;

    submitted by /u/honnetatamae
    [link] [comments]

    How to Promote Your App (Apple iOS and Google Play Android) (Mostly Beginner Level Content)

    Posted: 01 May 2021 04:09 PM PDT

    Is copying apk strings from another app into mine a copyright violation?

    Posted: 01 May 2021 01:41 PM PDT

    New changes to the play store marketing... limit on le gth of app title and more

    Posted: 01 May 2021 09:25 AM PDT

    No comments:

    Post a Comment