• Breaking News

    Sunday, April 10, 2022

    Android Dev - Openness of Android, now?

    Android Dev - Openness of Android, now?


    Openness of Android, now?

    Posted: 09 Apr 2022 09:05 PM PDT

    Do you feel Google is increasingly closing down the Android app development? First, the introduction of Android App Bundle. Yeah, I'm all in for the benifits, but users can't directly install app bundle files! Also, Google is forcing us to hand over the app signing process to them! Then, if you move to any advanced functionality, like notification, and many more, you'll see Google is restricting everything and pushing Firebase everywhere. Yeah, it is free, but it means that apps are now increasingly dependent on Google. So if an app violates any of Google's thousands of vague policies, it'll risk in not only be removed from Play Store, but also be totally non-functional (if the core parts of the app doesn't work without Firebase). As an Android developer and enthusiast, it really saddens me.

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

    Where can I understand the underlying Android SDK infrastructure?

    Posted: 10 Apr 2022 09:00 AM PDT

    The android developers website provides some clarification on how the design system works, with some visuals like the view hierarchy.

    I would like more detail like how is the view rendered, which internal functions are provoked, and how the overall design system executes, I believe its a MVC model but I would like to get more detail.

    There is the documentation which defines every function/class , but I doesn't explan how they are linked.

    Any recommendations on material like books, or anything online?

    I understand if something like this is not available and is only gained over years of experience.

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

    how to get familiar with TDD?

    Posted: 10 Apr 2022 09:04 AM PDT

    Hi all, I am an experience android developer, but still want to get familiar with TDD approach

    I know how to code using BDD, but TDD for me is still hard even I did start writing tests for use case layer of clean architecture in TDD way, but it's still hard for other layers.

    I think one of the reason mainly is because I can't make sure the code i wrote in test case is 100% correct before I really implement it(so IDE could provide me syntax highlighting), so sometimes I can't tell if a test failure is because of my logic mistake, or code syntax in test case wrong.

    Is there anyone could share about how did you get familiar with it and how long did you take?

    Many Thanks!

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

    Two-way data binding in Jetpack Compose

    Posted: 10 Apr 2022 07:33 AM PDT

    Comparison of Mobile Developers Earning Capacity Across Countries

    Posted: 10 Apr 2022 08:08 AM PDT

    How much do ad mediation companies earn?

    Posted: 10 Apr 2022 11:13 AM PDT

    This is my first time adding ads to an Android game. i've been checking many related posts all day. i realized under almost every post, there were people suggesting ad mediating apps. I've checked a few of them but couldnt find "fees page" in any of their websites. They must be taking a portion from our ad revenues, right? So how much do they take?

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

    Coming back after 8 years. Anything I need to be aware of?

    Posted: 10 Apr 2022 10:43 AM PDT

    so I haven't done any Android development for almost a decade. But I have decided on updating my old apps for newer devices and it is coming along. Man did things change with Gradle. I see that the Play Store now has a review process and apps have to be approved. Guess we are in the walled garden utopia?

    So based on others experiences, what should I look out for when updating old apps and rereleasing them on the Play Store?

    Thanks!

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

    Flutter Integration issue

    Posted: 10 Apr 2022 10:19 AM PDT

    While trying to integrate flutter into an existing native application I'm facing this issue.

    https://i.ibb.co/89n3zJ8/Screenshot-2022-04-10-at-9-14-17-PM.png

    It has something to do with the build types of current project but I've also created same build types in flutter module build.gradle file but still I'm getting this issue. Please help

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

    Is it possible to write and run basic code on a modern tablet?

    Posted: 10 Apr 2022 10:19 AM PDT

    In short, my sister owns a galaxy tablet for drawing. She does not have a computer. She was wondering if it was possible to code on her tablet. She's looking into learning Java specifically, though I have no knowledge of programming so I cant help her personally. Any help or advice would be appreciated. She doesn't need anything in-depth or advanced, just the bare basics.

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

    How is it possible, for an app to retain data after uninstallation, without SAF user interaction to pick a file/ folder location?

    Posted: 10 Apr 2022 09:41 AM PDT

    All the while, I thought after targeting API 30, there is no way for an app, to retain its data after uninstallation. Unless, it implement SAF, which requires user to pick a file/ folder location explicitly - using a system UI like https://i.imgur.com/HfJjixE.png

    Or, by using android:hasFragileUserData="true" flag, which will pop up the following UI during uninstallation - https://www.xda-developers.com/android-10-manifest-flag-developers-retain-app-data-before-uninstalling/

    However, I do notice a popular app in the market, which able to cleanly retain user multiple backup data, with 0 user interaction, and not using android:hasFragileUserData="true" flag method.

    This is a video, to show how it is able to cleanly read the retained data, after re-installation (I have already did a clean uninstall, before capturing the video) - https://www.youtube.com/watch?v=UqG4n_0xmVI

    Does anyone has any idea, how I can achieve such "magic"?

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

    How do you generally mange your projects' packages?

    Posted: 10 Apr 2022 09:20 AM PDT

    I'm fairly new to Android development, and while I have exp with large-scale Java projects, I've not thought about the best way to manage Android code.

    How do you generally structure your projects in terms of directories and packages? How do you logically categorize things? Any material on this subject would be great as well.

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

    RFID / NFC Widget

    Posted: 10 Apr 2022 12:37 AM PDT

    We got an RFID tag at work to enter locked doors, access printers and so on. Is there any way to copy/clone that info and add that to a widget in my Android phone?

    Feels kinda old school to use tag so want a better solution in my Android.

    Any suggestions to solve this?

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

    I've used kotlin for about a year, then I moved on to Flutter for about two years, now my job requires that I use kotlin again, any tips or advice about how to be up-to-date with kotlin, and if there's a daily coding challenge or something like that it would be really cool.. thank you in advance

    Posted: 09 Apr 2022 06:30 PM PDT

    Best way to fadein image views in a recyclerview?

    Posted: 09 Apr 2022 10:39 PM PDT

    I have a recyclerview rendering one imageview in each view holder. I want these to fade in from 0 to 1 alpha when they show up.

    How should I implement this?

    Do I startAnimation in onbindviewholder? Is there risk the animation could happen before the image is even loaded, thus skipping the animation?

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

    my app s countdown is not working as it should be.how to fix it(code inside)

    Posted: 10 Apr 2022 10:51 AM PDT

    so im completely a begginer to app development and i just did a little google and yt search..and kind of tried to make an app atleast looking at google or yt. so i looked at one of the vid and tried to code it as an starter..so i did code...so heres how it should happen..theirs a play button in middle and the time on left and score on right..so once i pressed play it starts the countdown from 10 and the ammount i tapped on the screen during that moment will display on the score side...so in my code when i pressed start it shows up the interface fine as i coded in xml...but once i pressed the play button and start tapping as fast as i can..the time of taps i press will start to appear..but once it pressed the play button the countdown which is on 10 goes instantly to 0 instead of decreasing by one by one...so i donno what made it happen like that..pls help me ...

    heres the code; ( u/override means "@"override)

    package com.example.speedclicky;

    import android.content.Intent;
    import android.os.Bundle;

    import com.google.android.material.snackbar.Snackbar;

    import androidx.appcompat.app.AppCompatActivity;

    import android.os.CountDownTimer;
    import android.view.View;

    import androidx.navigation.NavController;
    import androidx.navigation.Navigation;
    import androidx.navigation.ui.AppBarConfiguration;
    import androidx.navigation.ui.NavigationUI;

    import com.example.speedclicky.databinding.ActivityMainBinding;

    import android.view.Menu;
    import android.view.MenuItem;
    import android.widget.Button;
    import android.widget.RelativeLayout;
    import android.widget.TextView;

    public class MainActivity extends AppCompatActivity {

    RelativeLayout field;
    TextView score, time;
    Button play;

    private CountDownTimer countDownTimer;
    private long timemilliseconds = 10000;//10 secs
    int count = 0;

    u/Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    play = findViewById(R.id.play);
    field = findViewById(R.id.field);
    score = findViewById(R.id.score);
    time = findViewById(R.id.time);

    score.setText("0");
    time.setText("10 secs");

    field.setEnabled(false);

    play.setOnClickListener(new View.OnClickListener() {
    u/Override
    public void onClick(View view) {
    play();
    }
    });

    field.setOnClickListener(new View.OnClickListener() {
    u/Override
    public void onClick(View view) {
    count++;
    score.setText(""+count);
    }
    });
    }

    public void play(){
    play.setVisibility(View.GONE);
    field.setEnabled(true);
    count = 0;
    startTime();
    }

    private void startTime(){
    countDownTimer = new CountDownTimer(timemilliseconds, 1000) {
    u/Override
    public void onTick(long l) {
    timemilliseconds = 1;
    update();
    }

    u/Override
    public void onFinish() {
    Intent intent = new Intent(MainActivity.this, ResultActivity.class);
    intent.putExtra("score",count);
    startActivity(intent);
    finish();
    }
    }.start();
    }

    private void update(){
    int seconds = (int) timemilliseconds/1000;
    time.setText(""+seconds);
    }

    }

    please help me figure out whats wrong....

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

    WearOs: Complications without borders

    Posted: 10 Apr 2022 03:17 AM PDT

    (There is no other functioning forum to post it in.)

    Main documentation about how to make watch faces under Wear OS seems to be the WatchFaceKotlin example. This example contains lines around complications. Some installed watch faces don't have borders around complications.

    I can't find any documentation about how to remove these borders.

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

    When does Google Play pay?

    Posted: 09 Apr 2022 11:29 PM PDT

    When does Google Play pay?

    It's my first time I'm earning money from Google Play. My account reached the payout threshold, but Google Play does not send out the money for some reason and I don't know why.

    I am seeing the correct bank account configured in the 'How you get paid' section and I have declared taxes.

    This payout threshold was reached earlier in March (so they could have sent the payment a month ago), but I didn't receive anything.

    Did anyone have similar issues?

    https://preview.redd.it/y88okh58ans81.png?width=1486&format=png&auto=webp&s=0f190894df2acc0ab1a79998753a4885cc805ac6

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

    Why haven't Google added API 32 (12L) sources to Android SDK yet?

    Posted: 09 Apr 2022 01:06 PM PDT

    I have 2 apps on the PlayStore. One is always reviewed and updated in a matter of hours, the other always takes a few days. Why?

    Posted: 09 Apr 2022 07:05 AM PDT

    Whenever I do a change in the store listing or a new release to production I have to wait a few days until it gets reviewed and published. If I add a bug in production I won't be able to do a hot fix either which can cause many bad reviews and performance issues for days.

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

    Automatic Semantic Versioning on your Gradle project

    Posted: 09 Apr 2022 07:25 PM PDT

    How to use the Semantic Versioning specification on your android and non-android Gradle project.

    With the Semantic Version Gradle Plugin you can automatically apply the Semantic Versioning specification to your Gradle project.

    https://blog.dipien.com/automatic-semantic-versioning-on-your-gradle-project-6343b626b27b

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

    My new Android app doesn't rank in Google Play Store, what do I do?

    Posted: 09 Apr 2022 08:59 AM PDT

    I made my first android app, from the time of this post it has been 4 days. Every time I search for the exact name of my app on the Google Play Store, my app doesn't show up in the results. The app is my first release. Am I supposed to wait a few more days? Until it ranks higher? There is not a lot of competition in my app category.

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

    Anyone knows how many app rejections till you get banned?

    Posted: 09 Apr 2022 05:51 AM PDT

    Does anyone here have the misfortune of being permanently banned from the Play Store after a (or multiple) app rejections /policy violations? How many does it take? And which policy violations are more dangerous than others? So far it's been about 5 times my apps or app updates have been rejected. Last one was because I uploaded a game with Covid-19 in the title which for some reason isn't allowed. How many lives do I got left?

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

    How do I populate a spinner with data from a csv file?

    Posted: 09 Apr 2022 07:28 PM PDT

    This is my first android studio project and am very new to java. I have a csv file and am trying to populate spinners with the different column data. How would I go about that? Sorry if their is not enough information here.

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

    [OSS] Thud. News Reader - Pulse News Revival

    Posted: 09 Apr 2022 05:56 AM PDT

    [OSS] Thud. News Reader - Pulse News Revival

    Originally posted in the weekly discussion but I was suggested to post it as a thread since it's open source.

    If it doesn't belong here, I'll take it down :)

    Hello!

    Some of you who have been around long enough might remember Pulse News by Alphonso Labs, it was one of the best news reader apps of its time and way ahead of the competition when it came to user experience with its mosaic-like UI that allowed you to quickly sort through the articles from the news sources you liked.

    I do remember it because I spent hours reading my news there and loved every second of it.

    If you were also a user, you too might remember when LinkedIn bought the app... and how it was turned into a nonsensical companion app for LinkedIn posts that nobody had asked for.

    Since that happened I have waited and tried many other news reader apps, looking for a worthy replacement that never came. Most modern news reader apps allow you to select a few (or a lot) of "interests" or "themes" or whatever and then an algorithm decides what is shown to you, usually in the most cumbersome way possible so they can sprinkle some ads in between posts and keep you scrolling as much time as they can.

    But I don't like that.

    What I want is my news, from the sources I want, and in a way that allows me to quickly see the ones I'm interested in reading, not wasting precious time scrolling or turning virtual pages looking for valuable content.

    So a few weeks ago I did a quick Google search that went something along the lines of "Pulse News what happened" or "Pulse News 2022" and all I could find was a post in r/androidapps with a couple of replies from someone asking if there was a similar app to it.

    That's when I decided I didn't have to wait for someone to come up with a better idea for a news reader. The idea was already good and there was no other company doing it and I could do it myself.

    So I made it:

    https://preview.redd.it/0lmvtre73is81.png?width=1000&format=png&auto=webp&s=2b600c3a81971eed4a8b6cc83c9ee444f89098c4

    I made this app for myself and then decided to share it in case someone else finds it useful, using what I could remember from the original app and some screenshots I found online. I refreshed the UI a little bit so it feels more in line with the current industry standards and made the whole thing open source so that nobody will be able to buy it and destroy it.

    Anyway, here it is.

    https://github.com/aerotoad/Thud

    You can find the apk file for download under the Releases section or go directly to the Play Store:

    https://play.google.com/store/apps/details?id=com.aerotoad.thud

    Any feedback/comments will be greatly appreciated.

    TL;DR: I made a news reader app inspired by the original Pulse News design and made it open source.

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

    GoogleSignIn in a second activity

    Posted: 09 Apr 2022 07:06 AM PDT

    I'm planning to support both Facebook and GoogleSignIn in my app and I was wondering.

    Is it considered good practice to set them in separate activities? I tried to do that, and everything seem to be working fine, but in order to get rid of some unwanted visuals (blank activity when choosing the google account) and to stay in the MainActivity, I had to use an invisible theme.

    Is this considered a good approach? If not, what would be a better approach?

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

    No comments:

    Post a Comment