• Breaking News

    Saturday, March 14, 2020

    Android Dev - App Feedback Thread - March 14, 2020

    Android Dev - App Feedback Thread - March 14, 2020


    App Feedback Thread - March 14, 2020

    Posted: 14 Mar 2020 05:28 AM PDT

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make top level comment
    • must make effort to respond to questions and feedback from commenters
    • may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

    - Da Mods

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

    Update firebase queries without changing RecyclerView adapter using FirebaseUI - Android

    Posted: 13 Mar 2020 11:19 PM PDT

    How do you set up two CountUp timers in one class?

    Posted: 14 Mar 2020 04:20 AM PDT

    Hi, I'm trying to set up 2 CountUp Timers in my service class, but switching between the two (Pausing one and starting the other and vise versa) keeps throwing the timer off, and adding minutes worth in seconds.

    Is there a simple way to implement a CountUp timer to have the two be independent of each other?

    Here's the code for reference:

    private Handler customHandler = new Handler(); private Runnable updateTimerThread = new Runnable() { public void run() { timeInMilliseconds = SystemClock.elapsedRealtime() - startTime; updatedTime = timeSwapBuff + timeInMilliseconds; secs = (int) (updatedTime / 1000); mins = secs / 60; secs = secs % 60; milliseconds = (int) (updatedTime % 1000); //Log.d(TAG, "Secs: " + secs + " Min: " + mins); customHandler.postDelayed(this, 0); } }; 

    public void startTimer(){ if(firsttime){ startTime = SystemClock.uptimeMillis(); customHandler.postDelayed(updateTimerThread, 0); firsttime = false; } } 

    public void pauseTimer(){ timeSwapBuff += timeInMilliseconds; customHandler.removeCallbacks(updateTimerThread); firsttime = true; } 

    I made 2 of each to get the two timers, but switching between them is cause count problems.

    Thank you for your help.

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

    Connect two devices via the internet

    Posted: 14 Mar 2020 05:54 AM PDT

    I want to do this for a project: One android phone is at my home and connected to the internet. I want to remotely send a command to the phone, for example take a picture and send it back. Since this is only for a small project I want the cheapest option (preferably free). The devices should still be able to use doze. What would I need for that? Sorry if this is the wrong sub, I'd be glad to be directed to a better suited one.

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

    How to handle equal movement on all screen sizes

    Posted: 14 Mar 2020 06:16 AM PDT

    So I have a game where many things moves.

    The normal way that I would do this is to assign a speed to a object and change it's position with the speed every frame.

    Then comes the the devices that cannot keep a constant time frame, so I add Delta and multiply the speed based on fps, so now it moves the same distance over time no matter the fps.

    Now then Android exists on a infinite number of devices with different resolutions, screen sizes etc. I have not really had to handle this problem before. How to handle this without making the game too hard or too easy on some devices.

    Say that I have a object moving from the far left edge of the screen into the middle, and another object should come from the top and hit middle after some time has passed.

    On my phone it would work nice since it is timed on a device where I know the approx time of left object and then I spawn the top object when it seems right.

    But on much bigger screens the top object might arrive before the left object, or at the same time etc.

    You get the problem, so how could I solve this in a nice way?

    cheers

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

    Where is best to read dev chat on Fintech, IoT and AI?

    Posted: 13 Mar 2020 06:26 PM PDT

    As per title really! Taking this work from home period to start learning more about android (Thanks Covid). Wondered if anyone could share their favourite place to get involved in discussion around Fintech, IoT and AI on the platform?

    I'm already a lurker on here, but looking to diversify my reading!

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

    Composable way to listen for onActivityResult.

    Posted: 13 Mar 2020 12:00 PM PDT

    Uploading an update before the previous one is approved?

    Posted: 14 Mar 2020 07:50 AM PDT

    we have a deadline and are still working on the app, i was wondering if its a good idea to keep posting updates everyday as they can sometimes take upto 6-7 days and they will keep approving all my updates. But if i upload before the previous one is approved will the previous update make it to play store?

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

    Proper way to get my GPS coordinates using MVVM pattern?

    Posted: 13 Mar 2020 12:49 PM PDT

    Hi, I'm trying to develop a map app that should be capable of getting coordinates from an API as well as displaying my own location on an OSM MapView. Right now I'm using FusedLocationProvider to acomplish that however I'm having problems understanding where should I check periodically for my location in order to keep with the MVVM pattern.

    I understand that I shouldn't reference the my view on my viewmodel because that can lead to leaks, same with my coordinates repository and since FusedLocationProvider needs a context to get the coordinates I can't use it on my viewmodel or repository but leaving it in my view seems wrong.

    What would be the correct way to do this?

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

    HELP - APDU VISA MSD!

    Posted: 14 Mar 2020 04:35 AM PDT

    Hello, could someone help me update the payment protocol of an NFC application that is using a discontinued protocol?

    When making the transaction, an error occurs at the POS terminal: Communication error with the card.

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

    gridlayout issue with clipping

    Posted: 13 Mar 2020 05:26 PM PDT

    I'm populating a gridlayout with some usernames. When the username strings are too long, some of them go past the gridlayout's boundary and get clipped. Is there a way so that the gridlayout (or alternative layout view) automatically pushes strings to the next row if they exceed the boundary?

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

    Writing to file storage

    Posted: 13 Mar 2020 04:55 PM PDT

    ```

    private fun getStorageDirectory(): File { return if (isExternalStorageWritable()) { context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS) } else { context.filesDir } }

    private fun getUsableSpace(): Long { return getStorageDirectory()?.usableSpace ?: 0L }

    ```

    I want to write files to external storage and when i look at the usablespace for context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS) it says that it's only 515.74MB.

    Is this the typical usable space size of a directory? What if you needed more storage space to write to, how would you handle that scenario?

    Update

    When testing on an emulator the usableSpace for different storage directories are as follows

    DEBUG ~~ [context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS).usableSpace 515739648] 515.74MB DEBUG ~~ [context.getExternalFilesDir(null).usableSpace 515739648] 515.74MB DEBUG ~~ [context.filesDir.usableSpace 515739648] 515.74MB DEBUG ~~ [context.externalCacheDir.usableSpace 515735552] 515.74MB DEBUG ~~ [context.cacheDir.usableSpace 515735552] 515.74MB

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

    OxygenOS Open Beta 10 for OnePlus 7 Pro brings Feb patch

    Posted: 14 Mar 2020 05:20 AM PDT

    Emulator 30.0.4 Canary

    Posted: 13 Mar 2020 10:13 AM PDT

    my admob account get disabled and i have some questions

    Posted: 13 Mar 2020 02:16 PM PDT

    am new game developer and i had new admob account with just few bucks profit in it ,
    it get disabled and i cant find out why i have asked them in the admob help site but i had no answer since more then two days
    https://support.google.com/admob/thread/33041285?hl=en
    i already requested appeal and they responded in less then 8 hours and they rejected it so as i understand from what they told me that i cant use admob anymore for ever and there is no point if i send more appeal requests
    but i have few questions i wish if you could help me because i already asked in the help site but they don't answer
    1- what if i made new google developer account with new apps and new admob account all from new computer are they still going to disable it ?
    2- is there is any hope to restore my account if i send other appeal request ? or they will ignore it
    3- is there is any paid for or free service i can use to help me find out the problem and restore my account ? because they say if your account earn more then 25 dollers week they will provide you with "contact us" button where you can talk to human in google to help you solve the problem so is there anything like this i can use to help me ?

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

    Setting up GitHub Project and Workflow

    Posted: 14 Mar 2020 04:10 AM PDT

    Was Google right to suspend our app and can we successfully appeal?

    Posted: 13 Mar 2020 02:36 PM PDT

    My friend and I made a simple app about the coronavirus, which shows realtime data about the amount of infected people and deaths per country, information about prevention and symptoms. It had no business model, meaning we didn't make any money off of it, so also no ads.

    This morning, Google let us know that our app was suspended for the following:

    About the Sensitive Events policy

    We don't allow apps that lack reasonable sensitivity towards or capitalize on a natural disaster, atrocity, conflict, death, or other tragic event.

    We have appealed, but is there any chance that they'll put our app live again? We put a lot of work into this and just want to inform people about the virus, I find it disappointing that they suspended it.

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

    Clash of Clans API needs specific IP (Problem)

    Posted: 13 Mar 2020 11:02 AM PDT

    Hello,

    I wanted to develop an app that uses the Clash of Clans API. In order to get an API key i have to specify an IP Adress but that does not work because every Smartphone has got a different IP address.

    So I think i need to build an intermediary service between the Smartphones and the API.

    How can I realise this and what would be the best options. I need it to be as simple as possible and as low cost as possible. Firebase?

    Thanks

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

    Is Ios market more profitable than the android one?

    Posted: 13 Mar 2020 10:51 AM PDT

    Hi.Just saw a post on medium and a guy who developed a app in flutter first released it on android and made a little revenue and when he released it on ios the revenue went up more than double of the android.What do you guys think about this?

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

    No comments:

    Post a Comment