• Breaking News

    Sunday, November 17, 2019

    Android Dev - Will play console app ever receive any updates/fixes?

    Android Dev - Will play console app ever receive any updates/fixes?


    Will play console app ever receive any updates/fixes?

    Posted: 17 Nov 2019 03:07 AM PST

    Are they gonna close this too in favour of PWAs? I heard they did this with the Google Adsense app

    Bugs I face: Sometimes takes forever to load? Restarting doesn't help, I find that opening settings through navigation drawer then going back helps. Error snackbars.

    YT studio app for YouTube creators is available on play store, and they're releasing updates every now & then. A/B testing & all. I mean, it's in active development.

    But the last little update for play console was on July 2019 after years if I remember correctly.

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

    Why does Android Studio mix up two projects with same application ID?

    Posted: 17 Nov 2019 02:29 AM PST

    So yesterday I decided to change the complete UI and wanted to completely refactor my code. So I created a new project, with the same application ID, and decided to work in there instead of changing the code in my production app.

    But then Android Studio somehow combined both the projects and their dependencies even though there was no direct relationship between the two. I checked to see if there was any gradle import that was causing both the projects to get mixed up, but there was none. So I had to literally archive the newer created project and delete it so that it would get removed from the production version.

    So how do I stop this thing? Is this supposed to be a feature? Here's the dialog/popup I see now whenever I open my production project (it compiles and runs without any problem though).

    Unsupported Modules detected

    Compilation is not supported for following modules: New UI XXX-app, New UI XXX-xxx-sdk-for-android-4.6.2, New UI XXX, New UI XXX-xxx-4.1.4, New UI XXX-xxx, New UI XXX-xxx-android-consent-1.0.5, libs-xxx, libs-xxx, xxx. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

    (New UI XXX is the project name I created, I know bad, but it was meaningful when I first created it but Android Studio mixed it up so I renamed it, and it still mixed it up)

    I am 100% sure that both the projects are not linked with each other in any way, all the dependencies were copy pasted in separate folders of each project.

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

    Don't apps for reddit break the developer policy?

    Posted: 16 Nov 2019 03:59 PM PST

    The developer policy said that no apps that have any sexual content would be allowed on play store.

    But reddit has many sub dedicated to porn, so how is this allowed on play store? Is there something I am not aware of? Or is just benifits of being a big company?

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

    Authenticate me. If you can…

    Posted: 17 Nov 2019 08:10 AM PST

    (Coding help) How do you reorganize a Layout and its elements?

    Posted: 17 Nov 2019 07:59 AM PST

    Let's suppose I have a layout called ''mainRoot'', which contains several elements: other layouts, views, etc.

    I would like to pick an element (subRoot), and bring it to the front so that it's right on the top.

    For example, if my ''mainRoot'' has 8 elements, and my subRoot is the 3rd, I would like to relocate it to the 8th position.

    I couldn't find any documentation or method that could relocate it. Also changing Z, or TranslationZ etc. is not a solution for me in this case.

    Thanks a lot in advance, here is the code:

    for(int i=0; i<mainRoot.getChildCount(); i++){
    if(mainRoot.getChildAt(i) == subRoot){
    // set subRoot to the last position in mainRoot
    }
    }

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

    Always explicitly provide serialization names for your model classes fields

    Posted: 17 Nov 2019 07:47 AM PST

    Question: ok to have global singleton for Handler of the UI thread?

    Posted: 17 Nov 2019 07:44 AM PST

    I know that for Context (using application context) is a bit risky and should be avoided when possible.

    But what about `Handler(Looper.getMainLooper())` ?

    After all, there should always be a single UI thread, no matter what, no?

    submitted by /u/AD-LB
    [link] [comments]

    MVI (Model View Intent) in Android by using RxJava2

    Posted: 17 Nov 2019 07:37 AM PST

    Rx Stream, Please Survive, on a Device Rotation

    Posted: 17 Nov 2019 07:27 AM PST

    How do I properly implement an In App Purchase in my app?

    Posted: 17 Nov 2019 06:37 AM PST

    So last night I was trying to implement a in app purchase into my app and I managed to get it working (kind of).

    I actually made a SO post about it (please check it out for all the code etc).

    But here is the gist of it, I'm using this library and I've followed the steps in the readme as well as looked at the sample app yet it stills behaves in a strange way, I can actually make a purchase, and it goes through but the actual

    onProductPurchased method never gets called, or well it does if I click the Purchase button again. And the way I understand it is that it should fire the onProductPurchased method as soon as you finish a transaction.

    Are there any other ways to implement a simple in app purchase?

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

    Way to easily scale a couple bits of text on a very simple game

    Posted: 17 Nov 2019 06:35 AM PST

    Hi guys, I've made a really simple one screen game in processing for android. I'd like to support different screen sizes obviously.

    All the games graphics and gameplay are easily dealt with as divisions of width and height as they are just simple blocks, no bitmaps anywhere.

    However when it comes to just displaying a game over message and a score, changing the text size to look sensible on any screen becomes a bit more involved.

    Looking at the developer information, the way to go about this with defining different things in the xml file seems like total overkill for the literally 4 bits of text I want to display (I can totally understand why you'd do it for a complex app with lots of screens and menus and bits of information).

    I could just get the width and height of the screen at runtime and apply a multiplier and 'tune' it for different sizes, but this seems 'hacky'.

    Does anybody have any advice?

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

    Syncing local data within a social network app

    Posted: 17 Nov 2019 05:58 AM PST

    Hi there,

    I am working on a social network app for a startup. Just like any other social network app, it has many similar activities/fragments like feed. Feed is there in main home view, there when we open a notification from notifications section or open a profile and from there, click a post. All these actions open the same view. Now if user likes a post at one place, it should reflect at the other places if the data is already loaded by the user (otherwise API call will load the latest data).

    Now I want syncing in such situations. Previous developer has implemented a database for such syncing (and yet somehow syncing isn't 100%) and to me, it seems too much of a hassle.

    Should I make the database a single source of truth and then start working?

    What is the best way to achieve this? If database is the preferred way, any tips regarding the same? Thanks :)

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

    How to make app that use python and selenium

    Posted: 17 Nov 2019 05:40 AM PST

    I want to develop an app which on request will scrape a particular webpage using python and selenium. Now I know how to develop android apps and know how to run to python scripts.

    But how to run python scripts on button click from android app that would scrape the net using selenium?

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

    Multi module project proguard/r8 configuration

    Posted: 17 Nov 2019 04:18 AM PST

    Hello guys,

    As you create modules each one of them has their own build gradle and proguard file.

    Do you apply rules to each one of them separately and also in the separate build gradle file enable minify and shrink resources or just in the app buil.gradle and proguard ?

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

    What's with the steep learning curve of Android Studio?

    Posted: 16 Nov 2019 09:39 AM PST

    Hi, I have been programming for a little while now. I'm getting into Android development, using Android Studio.

    Whenever I try to import an example project, the build fails (I think it has to do with the gradle config?).

    When I give up on that, I'll start from scratch and use a tutorial to build an app, but for some reason, the code I copy turns out to be deprecated. Even for tutorials from a year back.

    What gives? I'm spending hours troubleshooting, it's becoming frustrating. Is this supposed to be expected? Is there some reasonable explanation for this that can at least put my mind at ease?

    thank you.

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

    Unable to run emulator on Windows with features enabled.

    Posted: 16 Nov 2019 03:10 PM PST

    I dual-boot Linux and Windows. My desktop runs a Ryzen 5 1600 and with it on Linux, I can run android studio fully with no issues such as emulators. However, when I'm on Windows even with Hyper-V and Windows Hypervisor Platform enabled and Hyper-V set to automatic in services, I cannot run any virtual devices unless I run them on ARM which is super slow. Any ideas to what I may have missed or need to do?

    Edit: Android studio, SDK and etc are up to date.

    Edit2: Virtualization is enabled.

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

    How to react to 1-star rating?

    Posted: 16 Nov 2019 12:55 PM PST

    How to react to 1-star rating?

    Hi!Some time ago I published an open-source application that got more attention than I expected. Of course, along with more users, more negative reviews have arrived. Let me show you some examples.

    https://preview.redd.it/69t0nnjd04z31.png?width=490&format=png&auto=webp&s=c852e78608271c953a91b28d6db615f6a39646af

    https://preview.redd.it/dgtn5baf04z31.png?width=334&format=png&auto=webp&s=61393f74923092b5a615f5372b478e229e2e23aa

    To give you more context, application is a simple tool that lets you track your expenses (https://github.com/nominalista/expenses). The above reviews refer to features that users think are missing. Sometimes it's impossible to fulfill their requests for many different reasons, e.g. it would require too much time to develop (keep in mind it's a free and open-source app) or it just interferes with my vision.

    So my question is, what in your opinion is the best way to react for 1-star rating reviews from the user point of you? Should I explain the user that it's impossible to fulfill his/her request?

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

    What should i learn now? [Junior Dev.]

    Posted: 16 Nov 2019 10:15 AM PST

    Hi folks,

    I spent 2 year in java/kotlin and android world. I has 8 months working experience. I learned/used Dagger, Retrofit, ReactiveX, little bit coroutines also android arch. Components.

    My latest repo is here, if you want to see my skills (Also im open for suggestions about my code.) : https://github.com/furkanaskin/Weatherapp

    But now, what should i learn?

    -Unit testing -Custom components -Arrow functional programming -Better knowledge in coroutines Or what?

    I'm really excited about learning new things but i can't select any topic, please show me the true way :/

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

    Is it ok to use coroutine in the custom view?

    Posted: 16 Nov 2019 08:38 AM PST

    I would like to implement an auto-scroll ViewPager2 by myself.

    The custom view must contain a loop to trigger the scroll function.

    The old way is using Handler to send a message, call the scroll function and delay the next message.

    Now, there are nice lifecycle-aware mechanism and thread control dispatcher in Coroutine.

    But I can't find the sample using coroutine in the custom view.

    Is it ok to use Coroutine in the custom view? And can somebody provide a custom view lib using Coroutine?

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

    Updating UI (changing views visability) vs changing fragments

    Posted: 16 Nov 2019 12:11 PM PST

    Hi guys,

    Sometimes I do things and just think, "I mean, it works, but maybe it's idiotic and I should really do this another way", so I'd love your input if that's one of those instances:

    I have a camera activity for taking picture, and I want to have a preview after the picture is taken where it is possible to choose whether to discard it, add another or proceed and deliver it.

    What I did initially is having a whole seperate activity for the preview, but I wanted to get rid of the need to save the image to internal storage (and possibliy also deleting it later) because you simply can't transfer bitmap through activities\fragments.

    What I am currently doing is having all the UI in a single activity and changing the layout programatically (changing visibillity).

    Are there any obvious throwbacks that I should know about? What would be the smart way to go about with this?

    Edit: Using the CameraX API.

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

    Does budget equal success?

    Posted: 16 Nov 2019 11:26 AM PST

    We all know making an app/game can either cost from $0 to millions and with that much competition out there nowadays you have to invest in building your brand. There have been odd and one in a million success stories like Flappy Bird,Yo,iFart and so on that their development cost almost nothing and they made it big but those are rare occasions. But for the usual app developer building a nice,proper,finished product should cost at least a three digit number and working with ASO companies will easily bring your total cost really high. So if one decides to follow this route of spending a fortune on making a single game,will it end up become something profitable or will it just disappear in the abyss of all these apps out there? Is it worth taking such risk?

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

    Anyone have idea on how to resolve "Issue: Violation of Metadata policy"?

    Posted: 16 Nov 2019 10:58 AM PST

    Currently, I keep getting Issue: Violation of Metadata policy email, when I try to update my app description

    Here's the only useful information I have

    The app's full and/or short description contains improper formatting: <• Stick note to status bar,Drag and move, Make a copy
    Double tap to edit >

    But, those are my app's legit features. I have 0 clue what's went wrong.

    See my app description screenshots

    https://i.imgur.com/U9ipMAC.png

    https://i.imgur.com/nzKk3lH.png

    Anyone has any idea what's went wrong to my app's description?

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

    No comments:

    Post a Comment