• Breaking News

    Saturday, October 31, 2020

    Android Dev - App Feedback Thread - October 31, 2020

    Android Dev - App Feedback Thread - October 31, 2020


    App Feedback Thread - October 31, 2020

    Posted: 31 Oct 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]

    Looking for a code review for a small todo-list app using Flows, Channels, DataStore, Hilt, Room, etc.

    Posted: 31 Oct 2020 04:00 AM PDT

    My focus in this small project was to get MVVM right and separate the logic between the fragment and the ViewModel properly. In the past, I've been writing a lot of logic in my fragments and I'm trying to learn how to do that better.

    I use Channels converted to Flow to emit events from my ViewModels for my fragments to listen to.

    Can someone take a look at this project and give some feedback? Any big mistakes?

    https://github.com/codinginflow/ToDoPrep

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

    "Business Aspects" of Playstore as an independent developer ?

    Posted: 31 Oct 2020 06:55 AM PDT

    I develop apps on my own and wish to upload it. But there are a couple "business related questions" that isn't commonly addressed.

    I don't want to use my real name, can I just use whatever "business" name I want ? However that gave me a couple questions.

    1. Do I get full copyright to that organization name ?
    2. Do I have to register with any legal/government entities so that no one else can claim that name ?
    3. Any taxes involved ? If my app gets monetize.
    4. Home Address. Biggest privacy concern for me

    As much as it seems like I'm just some random dude creating simple apps, I want to treat it like a business so that if by any chance something goes viral or I turn it into an actual job, I would'nt be taken advantage of. If you guys have more advice feel free to add it in.

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

    Problem after calling alert dialog.builder

    Posted: 31 Oct 2020 08:40 AM PDT

    I use an alert dialogue to display an image on the screen. It's launched from a function that runs if a button is clicked. I'm not sure that I'm closing it correctly.

    My code is here. I suspect the problem may be from inside of loadPage(). I suck at logcat but I'm almost certain at one point it told me I had 12 screens or views. Also, it frequently tells me I have to call releaseView() or something after it crashes. Sometimes though, all it tells me is : E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1

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

    NDK question #2, Kotlin or Java?

    Posted: 31 Oct 2020 08:39 AM PDT

    Thanks folks for the tips on the first NDK question, question #2:

    For various reasons (that probably aren't worth getting into here unless you into audio coding) I have significant domain logic code in C/C++. I understand now that using this in the NDK still requires making and understanding outer layers and OS interactions in standard Android and Java or Kotlin. Question: If this outer layer is being kept to a thin adapter layer around an inner engine in C++, does it make much difference whether I use Java or Kotlin? Any comments on the tradeoff for a use case like this would be great. I'll be mucking about with audio playback and timers/schedulers in addition to standard buttons and stuff. Kotlin looks nice, but maybe this layer will be so small it won't matter....

    thanks!

    submitted by /u/tremendous-machine
    [link] [comments]

    AndroidBites | Java ☕️ Maps �� on the Kotlin.

    Posted: 31 Oct 2020 12:15 AM PDT

    How do I show a toast just below the Toolbar

    Posted: 30 Oct 2020 02:42 PM PDT

    I need to show a toast just below the toolbar. It is a standard activity with no frills

    override fun onCreateView(savedInstance: Bundle?) {

    super.onCreateView(savedBundle)

    setContentView(R.layout.my_layout)

    val toast = Toast(this).apply {

    setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL, 0, 0)setDuration(Toast.LENGTH_LONG)

    show(R.string.success_string)

    }

    . . . . . . . Other code in the function . . . .

    }

    Activity definition in the manifest

    <activity android:name=".activities.InputActivity" />

    I have setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL, 0, 0). I know that I can set the y offset but I don't know how the y offset should be calculated. The most relevant article on SO is from 2013. Any suggestions would be gratefully appreciated.

    https://stackoverflow.com/questions/18420445/how-to-show-custom-toast-below-actionbar

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

    How to fix app:DexBuilderDebug build failed error?

    Posted: 31 Oct 2020 04:24 AM PDT

    This is my second time building an app with android studio. I'm trying to build a currency conversion app that calls an API to do the conversion. However, when I run the app, I get the dexBuilderDebug error. I'm only getting this error after creating the interface and class for retrofit.

    I have my code and errors posted on stackoverflow . Has anyone ran into the same error before? How did you fix it? I can't even understand what is causing the error

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

    New android dev, what do I need to know to do C/C++?

    Posted: 30 Oct 2020 09:11 PM PDT

    Hi, I'm totally new to Android dev. I'm hoping someone can give me a brief roadmap on what I'm going to need to know to work effectively with Android Studio and C++ so I can start reading the right articles and so on. For example, do I need to know "normal" Java android-development for the NDK to make sense? Are there decent resources for learning C++ oriented Android dev that aren't out of date? Are all NDK apps hybrids where at some point I'm dealing with the JNI?

    I'm mucking about with JUCE but I'm a big believer in understanding what your framework is doing and not developing more married to the framework than need be, so I feel I should be educating myself outside of just JUCE oriented resources.

    EDIT to post, because people are (understably!) saying C++, WFT?? :-)

    I'm doing real time music and audio dsp, so C++ is the only game in town and I have significant amounts of code in C/C++/embedded Scheme for the apps on other platforms that I want to be able to re-use on android. I guess I should have clarified that, haha.

    Thanks!

    submitted by /u/tremendous-machine
    [link] [comments]

    Personal or business gmail address for developer account

    Posted: 30 Oct 2020 08:44 PM PDT

    I plan on releasing a paid app to the play store soon. I don't really expect it to make me much more than beer money, so I'm not incorporating as an LLC or anything.

    I will be getting a separate gmail account though for the developer account. When I sign up for a new gmail address should it be a personal one since I'm just doing business as a sole proprietor (US based) or a business gmail account since I am selling something, which is a business transaction for the little it'll be worth?

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

    Is there a known problem with chrome, and samsung galaxy phones having broken grayscale/black levels?

    Posted: 30 Oct 2020 03:45 PM PDT

    Chrome seems to make almost every video that should have either black become light gray, or a value that should be 100% white becomes grey instead.

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

    Mobile Developers Cafe Weekly Issue #12 ���� is out

    Posted: 30 Oct 2020 09:55 PM PDT

    FirebaseCrashlytics not logging non-fatal errors (Android)

    Posted: 30 Oct 2020 12:20 PM PDT

    I am starting to migrate to FirebaseCrashlytics (finally) . Fatal crashes are reported fine. I am trying to log non-fatals. I've permitted logging in manifest file. Restarted the app after logging but I am not able to see anything in the console.

    private void logNonFatal() {

    FirebaseCrashlytics.getInstance().setCustomKey(ACTIVITY, true); // Key activity name

    for (String content: logList) // set all keys in the loglist

    FirebaseCrashlytics.getInstance().setCustomKey(content, true);

    FirebaseCrashlytics.getInstance().log(ACTIVITY_STARTUP + " error!"); // finally call log to register non-fatal error

    }

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

    Testing on real phone question

    Posted: 30 Oct 2020 10:59 AM PDT

    Hi folks, I'm new to Android dev so hope this isn't too stupid a question. I'm not clear from the articles I read on testing on a real device whether the methods listed leave the app on the phone such that it can be used out in the field, unplugged from android studio, and running in the background. It's for a cognition experiment for uni class, so I do not want to publish this to the public, but I do need to use it in a realistic way. (which means running in the background and then doing an interaction with the user once an hour). If this is not possible with a native app I suppose I should build it as a web app or something. thanks!

    submitted by /u/tremendous-machine
    [link] [comments]

    So umm,... FragmentStateAdapter asks us to pass lifeCycle, and not only does it fail to unregister all ViewPagers/observers attached to it on the State.DESTROYED, but it also does not unregister the only thing it is meant to at least unregister which is the lifeCycleEventObserver its just created???

    Posted: 30 Oct 2020 06:22 PM PDT

    Is this for real??What TH I'm I missing here??At least the code to unregister the main LifeCycle we just passed "seems to be there" but the leak is still persisting...

    Are we still supposed to manually detach it from the RecyclerView....

    I don't know what to think about this...

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

    Admob question: Is big gap between ad requests and impressions affects revenue negatively?

    Posted: 30 Oct 2020 02:01 PM PDT

    Hi guys, i use admob to show interstitial ads in my app. I pre request it and when user does some steps i show it. Sometimes user doesn't get to that step and ad gets requested but doesn't get impression. So by having low cpm i started to thing about that maybe that can be a problem.

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

    LiveData in Jetpack Compose?

    Posted: 30 Oct 2020 09:57 AM PDT

    I've been reading up on the guides Android has provided for Compose and want to make sure I understand this clearly. Is it the case that LiveData/MutableLiveData is being replaced with State/MutableState in Compose? If not, when would you use one over the other and vice versa? Thanks ahead of time!

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

    No comments:

    Post a Comment