• Breaking News

    Saturday, January 18, 2020

    Android Dev - App Feedback Thread - January 18, 2020

    Android Dev - App Feedback Thread - January 18, 2020


    App Feedback Thread - January 18, 2020

    Posted: 18 Jan 2020 04:29 AM PST

    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]

    O(1) Android build time

    Posted: 17 Jan 2020 07:53 PM PST

    Why should I care about unit testing ViewModels when it will eventually be tested by Espresso tests?

    Posted: 18 Jan 2020 06:05 AM PST

    I wonder that when we write UI tests/Espresso tests then our ViewModels also gets tested in this process. So why should one consider writing unit tests? Is it only because unit tests take less time to run?

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

    Help me understand espresso tests

    Posted: 18 Jan 2020 04:21 AM PST

    I'm an Android developer with about 2 years of experience. I have recently started writing tests for our app. I started with the Unit test for the Repository layer and the ViewModel layer, which I felt was very straight forward. However, when writing the Espresso test, I realized that our community lacks documentation and samples for writing Espresso test. I am finding it difficult to understand what is Espresso tests supposed to test.

    Eg: When we write a unit test, we test the view model or repository in isolation by mocking all the dependencies. But when Writing Espresso test, am I only supposed to test the UI layer (Fragments) by mocking view models? Or do I test the UI Layer (Fragments) and View Model by mocking the Repository layer? Or do I test the app as a whole by giving different inputs and validating the UI for the output?

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

    Error on AMD Ryzen CPU on Android Studio when trying to power on x86 virtual device

    Posted: 18 Jan 2020 08:27 AM PST

    Error on AMD Ryzen CPU on Android Studio when trying to power on x86 virtual device

    So, I was trying to run an x86 AVD but it said "Intel HAXM is required to run this AVD. HAXM is not installed. Install Intel HAXM for better emulation performance" and it wouldn't boot. Any information would be great! Thank you!

    This is the message I get while running the installer directly (i have WHVP or whatever enabled and hyper-v disabled, SVM mode and iommu are also enabled)

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

    My thoughts about Google Play and policy support team after my App was suspended without any warnings

    Posted: 17 Jan 2020 09:43 AM PST

    Popup Window shows in different positions

    Posted: 18 Jan 2020 08:12 AM PST

    Popup Window shows in different positions

    Hello, I want the window to appear above the action bar.

    window.showAtLocation(changeTextSize, Gravity.BOTTOM, 0, bottomNavigationView.height.toInt())

    Action bar is 216 pixels height on my phone with 480 DPI and 252 pixels on the virtual phone.

    https://preview.redd.it/s202w3c6akb41.png?width=846&format=png&auto=webp&s=f6d350c8a39df7704c0bc3be8f918819ddf929e5

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

    How do i animate BottomNavigationView Menu Item Icon with ObjectAnimator

    Posted: 18 Jan 2020 05:59 AM PST

    I am using android support designs BottomNavigationView for bottom tab navigation.

    <android.support.design.widget.BottomNavigationView android:id="@+id/main_nav" android:layout_width="match_parent" android:layout_height="56dp" app:labelVisibilityMode="unlabeled" app:itemIconSize="40dp" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_alignParentBottom="true" app:itemBackground="@color/blue_active" app:menu="@menu/nav_items"> </android.support.design.widget.BottomNavigationView> 

    What i am trying to do is:

    Programmatically animate tab(menu) icon with ObjectAnimator when it is pressed

    This is the menu:

    <menu xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/nav_home" android:icon="@drawable/ic_home" android:title="@string/nav_home" /> <item android:id="@+id/nav_games" android:icon="@drawable/games" android:title="@string/nav_games" /> <item android:id="@+id/nav_profile" android:icon="@drawable/profile" android:title="@string/nav_profile" /> </menu> 

    Code:

    mMainNav.setOnNavigationItemSelectedListener { item -> when (item.itemId) { R.id.nav_home -> { //item.icon is drawable var myAnimation = ObjectAnimator.ofFloat(item.icon,"rotation",0f,360f) myAnimation.duration = 500 myAnimation.start() //nothing happens setFragment(HomeFragment) true } 

    With this nothing happens no animation.

    What is wrong ? Should i use another way to animate or am i just applying it wrong ?

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

    [Indie game dev] Dev/marketing a game is so much harder then tool app

    Posted: 18 Jan 2020 05:23 AM PST

    [Indie game dev] Dev/marketing a game is so much harder then tool app

    Hi dev community,

    I create apps since Android 1.4 (HTC G1 was so cool back then :) ) and even had one success (it earned, with almost no marketing, around 15K$).

    Now, for the first time, together with my friend, I've created a mobile game (https://play.google.com/store/apps/details?id=com.grandegarbanzos.scratchme)... and I have no idea how to let people know it exists :/.

    We spend a week positioning it under a search term "scratch quiz" in Google Play (it is now at first position) but as it turns our nobody uses this search term (what in hindsight it's that surprising...).

    We plan to buy some mobile ads even if we're not convinced it brings "real" users to the game.

    Do you have any advises for us? Regardless if it is about game marketing or the game itself, any word of advice (positive or negative) will be much appreciated.

    Cheers!

    p.s. Please accept my apologies if this is not a right place for such questions.

    Scratch Quiz (https://play.google.com/store/search?q=scratch+quiz)

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

    Best practice for multiple screens app

    Posted: 18 Jan 2020 03:15 AM PST

    Hello guys,

    I'm developing an app to collect data from my job's vehicles refuel. The responsable for refuel the vehicles will input how much liters he refueled, the car ID, driver's name and some other information. The problem is: the app need to show only one input window per time, that contains an EditText for input, a "next" and a "previous" button, to navigate between the screens.

    How is the best way to handle it? Create a new activity for each layout or change the layouts when the "next" and "previous" buttons are clicked?

    Thanks in advance!

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

    Android Position with different screen sizes and DPI

    Posted: 18 Jan 2020 03:02 AM PST

    Android Position with different screen sizes and DPI

    Hello, I'm trying to creae popup windows for Android using Kotlin, but it appears in diferent position on phones with different DPI. My phone is 480 DPI, virtual phone is 560 DPI.

    val dm = DisplayMetrics()getWindowManager().getDefaultDisplay().getMetrics(dm)

    var screenAdjust:Float = (dm.densityDpi / 160f)

    var x:Int = (116f * screenAdjust).toInt()debugText.text=x.toString()window.showAtLocation(changeTextSize, Gravity.CENTER_HORIZONTAL or Gravity.BOTTOM, 0, x)

    If both coordinates are the same it also works wrong.

    https://preview.redd.it/ga32mlm1rib41.png?width=846&format=png&auto=webp&s=c559b9c613ec87a0f535722923f968253ab9f454

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

    Example of Apps that had scoped storage overhaul?

    Posted: 17 Jan 2020 08:34 PM PST

    Any users seen some of the apps they use overhauled due to scoped storage yet? Just curious what they did before/after if you could share please

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

    Control Ads in android app.

    Posted: 18 Jan 2020 01:54 AM PST

    Hello, is there any way to check which ADS are showing on My app ( from different publishers )?, i have not developed the app one guy helped me and i paid him so i'm not sure that he added only my ads on the app, i think that there is a little diference at the Interstitial ads. Thanks you

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

    Is there any Indian's here? Which is the best bank to open account to purchase developer account. tried Syndicate and Federal bank, applied for an instant account in Axis 2 weeks ago still not activated, what to do?

    Posted: 18 Jan 2020 12:41 AM PST

    Need advice for an app I want to develop. Can anyone help?

    Posted: 17 Jan 2020 09:47 PM PST

    I have a new concept on a dating app I wanted to develop. I am designing the looks of the app, most of the visuals and some sounds. I plan to put it up on Kickstarter but before I do I was hoping I could ask a few questions from an app developer so I don't make any mistakes. If anyone is able to offer help I'd appreciate it. Thanks in advance!

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

    Your Google Publisher Account has been disabled

    Posted: 17 Jan 2020 09:21 PM PST

    Recently, I got an email about suspension of admob account. They found one violation as follows
    Violation Found:

    "Enables dishonest behavior:"

    https://support.google.com/adspolicy/answer/6016086?hl=en

    However, my apps are related to sports. So there is no violation mentioned above.

    I applied for this suspension. But no reply yet.

    In this case, which ads network i should choose instead of Admob?

    Is there any chance to get back admob account after getting disable email?

    Can i use different admob ads id to my existing apps?

    Please share your ideas or suggestions.

    Thanks

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

    IronSource or MoPub as pure mediation

    Posted: 17 Jan 2020 08:26 PM PST

    Hi,

    Can I use IronSource just to mediate other ad networks such as Adcolony and Unity Ads?

    Cos I heard IronSource's own network payout is not very prompt. However, I do like their dashboard UI and easy SDK integration.

    I tried Mopub but the implementation can be really messy, even their demo app is a mess.

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

    iOS companion app for wear os

    Posted: 17 Jan 2020 07:30 PM PST

    As the title suggests, is there a way of developing an iOS companion app that is able to talk with a wear OS watch app?

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

    I just made my first MVVM app - Sun Calculator. Can I get a code review?

    Posted: 17 Jan 2020 10:57 AM PST

    https://github.com/gavingt/SunCalculator

    The app displays the sunrise/sunset times for any city/date you choose. It fetches the time zone from Google TimeZone API (in order to display the times correctly in local time), and then it fetches the sun data from https://sunrise-sunset.org/api.

    I'm sure I've made some mistakes along the way. There's no repository because I'm not storing anything. Hence, I'm doing the Retrofit calls directly from my SharedViewModel. The Fragments are perhaps doing more than they need to in some places. And I feel like I'm missing something with my implementation of Binding Adapters.

    Thanks!

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

    What's the best way to build an APK from source on a Chromebook?

    Posted: 17 Jan 2020 10:47 AM PST

    I've developed for Android on Android devices, before, using AIDE (Android IDE), but I'm not sure if that's really viable on a Chromebook (and it's not really made for stuff like this, anyway), and I've used Android Studio (and its predecessors) on Linux and OSX , but I've never tried to compile an APK from source on a Chromebook in ChromeOS. I have a version of Linux also installed on this Chromebook but there really isn't much RAM on it, and I have a hard enough time running most things on the Linux chroot already as is, so that doesn't seem like the correct approach.

    Is compiling using the android compiler the proper approach? It seems like it wouldn't be. But I want to run the APK on Chrome using the Android emulation anyway, and all I have at my disposal is this Chromebook (I'm honestly not a fan of Chromebooks in part for reasons like how cumbersome it is to do even the smallest development tasks without a lot of emulation).

    Thanks ahead of time for the response(s).

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

    “��Beginner’s Guide to Bottom Navigation with Android Jetpack — Part 2”

    Posted: 17 Jan 2020 09:10 AM PST

    Emulator 29.3.6 Canary

    Posted: 17 Jan 2020 10:05 AM PST

    No comments:

    Post a Comment