• Breaking News

    Friday, September 4, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 04 Sep 2020 05:40 AM PDT

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Android hobbyist dev and working as a dev - advice

    Posted: 04 Sep 2020 04:13 AM PDT

    Hello,
    Hope this post is not against the rules. Just seeking some advice on a situation I have.
    So in my last couple of years I have been doing some Android development as a hobby and have released several apps to Google Play Store. One of them has done quite well, and has been a source of small income since, and I am trying to actively work on it.
    However, now at my actual job, I am being put on an Android project, which means I'll (most likely) be using Google Play using my work account.

    Having read many stories about hobbyist devs having their accounts suspended by Google, and then in turns any work they do by association can be suspended as well, I am faced with a decision.
    Should I remove all my apps that I have in Play Store, and just forget about my hobby of being a solo android dev in Play Store? Even if I remove them - does it give a decent safety that no apps I remove risk of getting any strikes in the future? Will I be OK to use my work account for Google Play console, despite having used it with my personal account?

    Thanks in advance for any advice given, really appreciate it.
    Andrew

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

    Calculator library (pure Kotlin module)

    Posted: 04 Sep 2020 04:43 AM PDT

    Many apps have number inputs, and in many cases, having a calculator function to provide the number inputs is desirable. This is my first time to publish a library, and hope you will find this helpful. Any feedback is much appreciated. To import:

    repositories { maven { url 'https://jitpack.io' } } dependencies { implementation 'com.github.jairrab:KotlinCalculator:1.0.0' } 

    To get an instance of the Calculator library, call Calculator.getInstance() and pass a listener to receive calculator updates.

    class MainActivity : AppCompatActivity(), Calculator.Listener { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val calculator = Calculator.getInstance(this) } override fun onCalculatorUpdate(key: String?, entries: List<String>, result: Double) { Log.v("CALC", "key: $key | entries: $entries | result: $result") } } 

    Calculator.getInstance() returns a Calculator interface that provides the following functions:

    calculator.clear() calculator.pressOne() calculator.pressTwo() calculator.pressThree() calculator.pressFour() calculator.pressFive() calculator.pressSix() calculator.pressSeven() calculator.pressEight() calculator.pressNine() calculator.pressZero() calculator.pressDecimal() calculator.pressPlus() calculator.pressMinus() calculator.pressMultiply() calculator.pressDivide() calculator.backSpace() calculator.pressEquals() 

    The Calculator.Listener receives updates when a calculator function is called. Here's an example of a sequence of calculator operations and it's resulting logs:

    I/CalculatorLog: Key: initializing | Entries: [] | Result: 0.0 I/CalculatorLog: Key: 1 | Entries: [1] | Result: 1.0 I/CalculatorLog: Key: 2 | Entries: [12] | Result: 12.0 I/CalculatorLog: Key: 3 | Entries: [123] | Result: 123.0 I/CalculatorLog: Key: backspace | Entries: [12] | Result: 12.0 I/CalculatorLog: Key: + | Entries: [12, +] | Result: 12.0 I/CalculatorLog: Key: 1 | Entries: [12, +, 1] | Result: 13.0 I/CalculatorLog: Key: 3 | Entries: [12, +, 13] | Result: 25.0 I/CalculatorLog: Key: * | Entries: [12, +, 13, *] | Result: 25.0 I/CalculatorLog: Key: 2 | Entries: [12, +, 13, *, 2] | Result: 38.0 

    The calculator is a pure Kotlin module library and does not have any Android dependency, thus you will need to provide a UI to call the and display the calculator functions. This makes the library lightweight and very flexible to suit your needs. See the link below for a sample UI.

    Note: The calculator library currently only supports MDAS operation. That is, it prioritizes multiplication and division over addition and subtraction as shown on the image above.

    Link: https://github.com/jairrab/KotlinCalculator/

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

    what are some free face filter library for android?

    Posted: 04 Sep 2020 06:22 AM PDT

    I have a project to build something similar to TikTok, hence I am looking for some free opensource library, by which I will be able to enable face filtering features like TikTok?

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

    Users can't redeem promotional codes anymore

    Posted: 04 Sep 2020 02:23 AM PDT

    Since August 31, users are reporting that they cannot redeem our promotional codes for our in-app purchase anymore.

    The error they see is 'Could not redeem code at this time. Please try again later'. In our tests we see the error too.

    The promo codes from that promotion worked fine before, but just in case we created a new promotion to see if the error was happening only on the old promotion. Unfortunately, the error still happens with the new promotion.

    Is anyone else experiencing this problem?

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

    Android Studio extremely slow with autocompletion, code analysis, etc.

    Posted: 03 Sep 2020 12:31 PM PDT

    I'm wondering if anyone else has observed something similar:

    in the past month or two, I observed progressively more problems with AS speed in things like:

    - opening a new file, it takes like 10-20+ seconds for the IDE to "color up" the code (from the initial gray)

    - even when a file is opened (and "colored"), oftentimes I start typing and autocompletion just doesn't work, it takes another several dozen seconds for it to finally "sync up"

    - general random actions just "freeze" for a few seconds

    however, build times are as fast as always.

    - 2018 MBP, 6 core i7, 32 GB RAM. I allocated 4GBs of RAM to AS (never been a problem before). I disabled all the external plugins.

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

    RPG Database App

    Posted: 04 Sep 2020 03:18 AM PDT

    A friend of mine is launching his own RPG series and wants an app for the content database as well as local character sheet storage. I know I need to break this down further into making a searchable database and... I don't even know where to start for the character sheets. I've taken a few classes in programming for game development but could use help figuring out where to start with this.

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

    Display on Top permission granted automatically on install from Play Store

    Posted: 04 Sep 2020 01:35 AM PDT

    Hi All.

    I need some help finding a form for Google Play Support and my Google Fu has failed me.
    The Form is to grant display over apps permission on app install from Google Play Store, very much how Truecaller is granted this permission. I'm aware that this form has existed atleast a couple months ago but I can't seem to find it anymore

    Any help will be appreciated. Thanks :)

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

    I'm new to the whole android thing and I'm trying to develop a new skill in it.

    Posted: 03 Sep 2020 11:43 PM PDT

    I'm trying to connect to a specific mac address from Bluetooth socket
    after clicking a button and perform some task after establishing the connection

    connectBtn.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
    if (!bluetoothAdapter.isEnabled()) {
    showToast("turning on bluetooth");
    Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
    startActivityForResult(enableIntent, REQUEST_ENABLE_BT);
    }else {
    showToast("Bluetooth ON Retrying connection");
    }
    establishConnection();
    System.out.println(bluetoothSocket);
    }
    });
    if(bluetoothSocket!=null&&bluetoothSocket.isConnected()) {
    try {

    OutputStream outputStream = bluetoothSocket.getOutputStream();
    outputStream.write(48);
    System.out.println("out\n");
    } catch (IOException e) {
    e.printStackTrace();
    }
    try {
    System.out.println("in\n");
    InputStream inputStream = bluetoothSocket.getInputStream();
    inputStream.skip(inputStream.available());
    byte b = (byte) inputStream.read();
    if (b == 65) {
    mediaPlayer.start();
    }
    } catch (IOException e) {
    e.printStackTrace();
    }
    }

    }
    private void establishConnection(){
    try {
    bluetoothSocket = hc05.createRfcommSocketToServiceRecord(mUUID);
    System.out.println(bluetoothSocket);
    bluetoothSocket.connect();
    showToast("!!Cane is Connected!!");
    System.out.println("!!yes connected!!"+bluetoothSocket.isConnected());
    } catch (IOException e) {
    e.printStackTrace();
    }

    }
    the rest of the code after OnClickListeners is not working The

    if(...){...} 

    block after OnClickListeners

    submitted by /u/_Megane-kun
    [link] [comments]

    Help me design a DB for my app

    Posted: 03 Sep 2020 09:22 PM PDT

    Help me design a DB for my app

    I am building my first android app. It's gonna be a workout log app, where the user can pick a date from the Calendar View to enter a workout, each workout will have a table that consists of all the exercises, number of sets for each exercise, and average_reps, average_weight, and average_rpe which should be calculated from the Sets table. Each Set of the exercise, should have its own row that stores reps, weight, and rpe.

    Please advise me if this is a good practice of building such database, and any advice on how to do this in Android & Kotlin would be appreciated.

    https://preview.redd.it/9ir7tphk42l51.png?width=1834&format=png&auto=webp&s=1440acee1bc89a7c8e77ee9522a36c249d2049c8

    submitted by /u/16bumblebee
    [link] [comments]

    Any Dev Nerds? :)

    Posted: 04 Sep 2020 04:22 AM PDT

    Hi all,

    There is a discussion in GitHub regarding a '7Eleven fuel lock' Application, which allowed users to lock in fuel prices from areas out of their local range (it spoofs gps to whatever you want).

    Suprise suprise, 7Eleven pushed an update, and now the app is unusable. If anyone can contribute to finding a way to fix our little application it would be greatly appreciated!

    Repo link: https://github.com/freyta/7Eleven-Python

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

    Almost All Apps Crashing Upon Opening

    Posted: 03 Sep 2020 10:56 PM PDT

    I have a Samsung S8+ and for the past few months I've been having an issue where almost every app I have is crashing when I open it or crashing when I try to use it. I've uninstalled and reinstalled every app but they continue to crash. What do I do to fix this problem?

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

    SimplerRecyclerView library

    Posted: 03 Sep 2020 01:02 PM PDT

    Hi, RecyclerView boilerplate code done for you, check it out https://github.com/rmielnik/SimplerRecyclerView

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

    Can we talk about Fragments again?

    Posted: 03 Sep 2020 10:47 AM PDT

    It's 2020, navigation components are here. Have fragments really improved enough use them now?

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

    Is there a way to show Instagram post captions in your app and automate the process?

    Posted: 03 Sep 2020 10:25 PM PDT

    I'm talking about a way to copy the caption of an Instagram post and show it in your app as a text body. It has to be automatic so that we only have to set it up once.

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

    I want to pay the google play developer fee, but I don't have a credit card.

    Posted: 03 Sep 2020 01:07 PM PDT

    Like the title says, I want to pay for the developer's fee, but I don't have a credit card. Where I live credit cards are not common at all, so I don't actually know how they work. But I heard they work by taking a loan from a bank and I don't want to do that, since I have enough money to pay for it, and I don't want to pay the bank interest. Is there a way to become a developer without having a credit card? My possible ways of payment are PayPal and IDeal.

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

    Is it possible to turn my WordPress blog into an app?

    Posted: 03 Sep 2020 11:52 AM PDT

    I need a minimalist app that is linked to my blog so it automatically updates whenever I post new article. Is there a tool to make that happen or do I need to hire a developer, if so how much would it cost to build this app with bare minimum features?

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

    An peaceful Invite for FlutterPro⚡A subreddit for Memes, QnA,Debugging tips,Codecase,Dart blogs,Codecase i.e Everything about Flutter!(Join it in its early days)

    Posted: 03 Sep 2020 08:53 PM PDT

    No comments:

    Post a Comment