• Breaking News

    Wednesday, December 23, 2020

    Android Dev - Automate seat detection

    Android Dev - Automate seat detection


    Automate seat detection

    Posted: 23 Dec 2020 04:58 AM PST

    Hey guys, I have an Android head unit in my car and I want to detect when someone is sitting in the passenger seat, I have seat pressure built in my car but not sure what I would need to transfer the data to android.

    Not sure if it's the right subreddit or if anyone done something like that here, but would love your help!

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

    Play Store Update Review asks for Neutral Age Screen after adding MoPub Mediation

    Posted: 23 Dec 2020 07:54 AM PST

    Was using AdMob in my app, but since it's constantly giving problems I switched to MoPub Mediation.

    MoPub requires(?) us to show a consent dialog to verify whether the user is over 16 or not (I guess it's to show certain ads).

    Everything was working (although app size increased by +4Mb :S ) but, after second update, Play Store review sent a REJECTION saying I should include a Neutral Age Screen (probably caused by MoPub).

    QUESTIONS

    • Is the MoPub consent dialog mandatory? Don't see other apps doing it.

    • Should I include said Neutral Age Screen? I've never seen it in other apps (maybe some games).

    • Should I switch to IronSource Mediation, for example?

    • Is +4Mb size increase normal for just mediation?

    Thanks

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

    What happened to Google Play Instant?

    Posted: 22 Dec 2020 11:06 AM PST

    From what I can tell, the upgrade web links feature no longer works, and previously available Instant Apps such as Citymapper and Vimeo now just open as a webpage :(

    Seems that the only way it's available now is through games on the Play Store that have the feature enabled.

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

    How do you do app translations as an indie developer?

    Posted: 22 Dec 2020 11:40 PM PST

    I'd love to hear from the sub about how you handle app localization. It's hard enough making money, I don't have the time or money to get translators to translate all of my app strings.

    Best Commercial Solution

    Localazy is the cheapest option I've found and actually sounds like a decent solution. They have this cool feature where they share translations so if you have a string that's the same as someone else on their platform, the translation is automatically carried over.

    However, I still don't want to pay. My app isn't nearly profitable enough for me to be spending more money on it.

    My Personal Solution

    I built a python script for automatically translating all of my apps' strings with google translate. I figured a mediocre translation from google translate is still better than nothing. So for the past 2 days I've been writing this script, brushing up on my python skills, and finally having a working prototype.

    I've been running this thing for the past 4 hours and I'm still only like 23 languages deep for just one app. I still have 2 large apps to go 😂

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

    How to keep track of "early adopters" for future freemium update?

    Posted: 22 Dec 2020 07:52 PM PST

    Hi Folks, I'm working on an app that will be free and I don't have any immediate plans to make it paid. However I want to make sure I leave open the possibility of making it freemium in case I want to change course to that in the far future.

    The catch though is if I did make my app freemium in the future, I wouldn't want any users who downloaded it while it was free to pay for premium. I would want a way to tell if someone was an "early adopter" so upon a potential freemium update they would have premium for free.

    Is there a good way to do this? I know I could do something like an email sign up, but I don't need an email for anything in the app now so it would seem odd asking for an email when there's no use now.

    I was thinking I could do something like putting a time stamp into shared prefs when the user first downloads the app. Or perhaps I could look at the version number they are upgrading from if that's possible?

    Does anyone have experience doing this sort of stuff?

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

    [Help] Need help with testing MVVM with LiveData

    Posted: 23 Dec 2020 07:32 AM PST

    Hello everyone, I just finished the demo of my project and I want to add some testing to it.

    Well, my project is based in: Koin + MVVM (with LiveData) + Retrofit + Room

    I'm trying to start with the ViewModel which has injected a Repository (With Dao and an Api injection), I have searched a lot of projects, with Mockito-Kotlin and Junit4 but I do not know exactly where to start.

    If someone knows any tip or article, repo, tutorial that can recommend I would appreciate it

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

    Top 20 Mobile App Development Trends to Look for in 2021

    Posted: 23 Dec 2020 06:12 AM PST

    We all are swamped by the power of the mobile world, isn't it? Mobile apps are a valuable technological innovation that has changed how we work, shop, and communicate. Over the years, mobile apps have evolved, with each year introducing new trends and changes. Here are the top 20 mobile app development trends that will dominate in 2021.

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

    Anyone join the Google Play pass program?

    Posted: 22 Dec 2020 05:30 PM PST

    Curious especially if your app/game got mostly monetized via ads, is it even worth joining the program? The users with the play pass would not see any ads, and you would only get from them a cut of their subscription, which is only $5/month and includes hundreds of other apps/games.

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

    Is Google Play Console help chat using bots?

    Posted: 22 Dec 2020 01:43 PM PST

    I had some questions about an app update that has been stuck in review. The responses I was getting were cold and unhelpful, copy + paste type responses. So I asked if the person I was speaking to was a real human. They said that was out of their scope. Are they using bots for the chat support?

    Screenshot of convo: https://i.imgur.com/2d3qjMG.jpg

    P.S. I tried to go back to the help options to see if there is a call me option, and now it says "Chat closed" and email is the only option. Nice. I need to start making iOS apps.

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

    What to implement my Idea into Android App but How ?

    Posted: 23 Dec 2020 02:22 AM PST

    I Want to Make A Time Table Alert App for my University . Everyday Our University Sents Us Email Of Timetable and Also Upload on the Timetable on Its Webiste now i want to do is to create an App which fetchs the timetable from the Webiste and Show Specific Data on the App E.g User will First Choose his Semester and Than the App will Show will him only the Time table of his Semester and The App will Also Notify User About every Class Before an Hour Ago .. Now the Problem is I dont Know much about How to implement this or is this even possible..I have Thought this idea about My FYP project ..Your Help will be Appreciated ..Thanks

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

    Blockchain with android

    Posted: 22 Dec 2020 07:11 PM PST

    Wondering if anyone does any blockchain / decentralised apps development and what are the steps and sources to learn to do so? I'm really into crypto currencies and blockchain and want to hear your opinion and ideas of how you could use blockchain in an app

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

    The slowness in android studio that I mentioned in the previous post Mac mini m1 8gb

    Posted: 23 Dec 2020 01:12 AM PST

    Android Navigation Component focus management on TV Devices

    Posted: 22 Dec 2020 03:58 PM PST

    I'm using the Android Navigation Component to make an Android TV app. I'm using Android Data Binding with ViewModels, everything stock, etc. Everything works pretty well except for dealing with focus, which is essential for TV apps (non-touchscreen). The issue is that when we go back from a fragment added onto the stack, we want to have the previously focused View to be focused, rather than the default view. Because the view gets re-created every time you navigate back to a Fragment, by default this doesn't work properly. Would anyone happen to know the best way to handle this?

    Here are a few ideas that I've tried:

    1. Save a data representation of the focused item inside the ViewModel, and restore focus when binding the ViewModel state. This does work, but it requires focus listeners everywhere. It also requires a data representation of the focused view (view ID probably would work in most cases, but not in some like rows in RecyclerViews).
    2. Save the view itself inside the fragment and don't recreate the view on Fragment recreation. This also works in some circumstances, but it requires persisting the view which as I understand it is against best practices (and obviously memory intensive). Weird things also happen sometimes with nested fragments, etc.
    3. Save the id of the focused item when navigating away from the fragment, and restore focus on that item when the fragment is restored. This works pretty well, but doesn't work at all on RecyclerViews and sometimes has timing issues with View restoration. Another downside is it also functions outside the Data Binding/ViewModel paradigm.

    Right now, I'm using a combination of 3 and 1 - with 3 for most views and 1 for RecyclerView state. Does anyone know best practices/a better way to do this? Thanks!

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

    Why are my CameraX preview and capture sizes different?

    Posted: 22 Dec 2020 11:34 AM PST

    I'm calling setTargetResolution and setTargetRotation on both the preview and the capture, but what I see is not consistent. My target resolution is 1080x810. I want it so when the device is in portrait mode, you see a horizontal view finder and when the device is in landscape, you see a horizontal view finder. The landscape portion appears to work, but the portrait one has issues.

    On my tablet where I am testing, the capture is the correct aspect ratio but a higher resolution than my target. That's fine with me. But the preview is more vertical than horizontal and has a different aspect ratio. Obviously this is a problem because I want the user to see exactly what they will be capturing, not something that gets cut off by the capture.

    I tried using the Android phone emulator. In landscape it was fine, but in portrait it looked like the preview was again in a vertical orientation, despite me setting the target rotation to be the device orientation and setting the target resolution to 1080x810. And then the captured image was rotated sideways as well, which I do not want.

    I've spent hours searching the web on this but have not succeeded so far. There's some stuff that looks relevant but only for previous versions of CameraX. Any ideas?

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

    Bootstrap project for CI/CD localization of Android apps

    Posted: 22 Dec 2020 10:41 AM PST

    For classifying images, which InputImage is better? Image file URI or Image Bitmap?

    Posted: 22 Dec 2020 10:29 AM PST

    I'm using ML Kit to label images with a custom model on Android. Which InputImage is better to pass into the model that can provide more accurate results? Image bitmap or image file URI?

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

    No comments:

    Post a Comment