• Breaking News

    Tuesday, September 28, 2021

    Android Dev - Weekly Questions Thread - September 28, 2021

    Android Dev - Weekly Questions Thread - September 28, 2021


    Weekly Questions Thread - September 28, 2021

    Posted: 28 Sep 2021 06:00 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    I developed an Android App and now want to go Multi Platform - What's the smartest way to do it? ��‍♀️ (Flutter? Kotlin Cross Platform? Or something else?)

    Posted: 28 Sep 2021 12:50 AM PDT

    Hey there fellow internet people!

    I have developed an app for Android with Kotlin and now I want to make the app multi-platform (including iOS).
    Problem is: I don't know how.
    My solution: I'll just ask people on reddit. After all people on reddit are smart and if they aren't smart they are many.💁‍♀️

    So... Developing multi platform. What's the best way to do it?

    Flutter or Kotlin Cross Platform? Does anybody know what google is planning regarding to Flutter and Kotlin Cross Platform support? I am completely new to Dart/Flutter. I don't have a Mac for iOS development either. Any tips?

    Advice and anecdotal remarks of any kind are welcome. Thank you very much in advance.

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

    Including 3rd party libs in a public SDK

    Posted: 28 Sep 2021 02:48 AM PDT

    I am developing an Android SDK which my clients will integrate into their apps in order to leverage my Saas product. The SDK allows customers to easily interact with my product via a few custom screens.

    One feature I would like to implement on my SDK is crash reporting, using something like Sentry. What I'm worried about is that if I include the Sentry dependency into my app, and my customers also leverage Sentry in their apps, that there will be dependency conflicts.

    I feel I have the same problem with any dependency I include in my SDK project.

    Is there any way of leveraging gradle to avoid this problem, or do I have to think about rolling my own logging, crash reporting etc... so that I avoid including any common 3rd party libs?

    Thanks for your help.

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

    java.lang.RuntimeException: Canvas: trying to draw too large(122680608bytes) bitmap.

    Posted: 28 Sep 2021 03:12 AM PDT

    This exception is coming when I am running my app in the Android 8.1 version so what could be the main reason behind this exception?

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

    The Kotlin serialization library v1.3.0 is now available allowing serializing and deserializing Java IO stream! You can now read and write JSON directly to network streams or files. ��

    Posted: 27 Sep 2021 09:26 AM PDT

    How to protect app assets from getting stolen ?

    Posted: 27 Sep 2021 07:43 PM PDT

    How do you protect your app assets from getting stolen ?

    Recently I saw some developers decompiling apks and getting the assets used .

    Any workaround to protect ?

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

    Which language is the best option for online booking app?

    Posted: 28 Sep 2021 08:07 AM PDT

    For an online hotel booking app(also banquet halls and other facilities), what is the best option for app development:

    Kotlin? Java? Flutter? Or Something else..

    Android is priority. iOS is a plus point. Doesn't matter native or hybrid.

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

    Which language is the best option for online booking app?

    Posted: 28 Sep 2021 08:07 AM PDT

    For an online hotel booking app(also banquet halls and other facilities), what is the best option for app development:

    Kotlin? Java? Flutter? Or Something else..

    Android is priority. iOS is a plus point. Doesn't matter native or hybrid.

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

    Google Play Content Rating

    Posted: 28 Sep 2021 06:41 AM PDT

    I've made a game that uses some things from Spotify's API - album/song names, album covers, track previews. The user can pick which playlists to make the games from.

    I'm getting ready to release and going through the content rating questionnaire I'm unsure whether to say my game contains nudity (some album covers do), profanity (some songs, album names, song names do), or other things like drug references (which some songs do and could hypothetically be heard in song previews).

    The official Spotify app itself is rated T for teen but if I'm completely honest in the questionnaire I get an 18+ everywhere. Wondering what to do / answer to get it a teen rating?

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

    What are some of the things to keep in mind before changing developers for my app?

    Posted: 28 Sep 2021 06:41 AM PDT

    First off, I am just the owner of the app. I don't have much ideas about the technical details of app development.

    My app was developed by a company. Now, I am planning to work with a team of freelancers instead of the conpany for the future upgrades/updates of the app.

    I have already taken the source code. Do i need to take anything else from the company? What are some of the things that i should keep in my mind before making the shift?

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

    Storage Model | Android 101

    Posted: 27 Sep 2021 07:13 PM PDT

    Is it possible to develop an open-source app while still have subscription based business model within in it?

    Posted: 27 Sep 2021 02:25 PM PDT

    How to remove subscription and make my app free?

    Posted: 28 Sep 2021 01:48 AM PDT

    Sorry if I sound naive.

    I am the owner of an android app built using ionic but I am not a developer. I had sought the help of a freelancer to build the app.

    The app currently uses Google sign-in and Google in app subscription. every first time usser will have to sign in using their google id and for accessing a portion of the content in the app, the user needs to give their card details to start a free trial which will be followed by a monthly subscription.

    Now, I am planning to make the app absolutely free. ie, no more subscription or card details required. All the content will be available to any user who signed up.

    Here is my question: can I do this from play console? Would disabling the subscription plan in play console do the trick or would I have to get in touch with the freelancer again to make it happen?

    Please guide. Thanks in advance.

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

    Question about changing phone resolution using ADB

    Posted: 28 Sep 2021 01:24 AM PDT

    Hello folks.

    I have a phone that has a native resolution of 2400 x 1080 (20:9).

    What would happen if I use ADB to change resolution to the tv standard 1920 x 1080 (16:9) ?

    I believe my phone would simply have a black bar either on top or bottom. Can anyone confirm this?

    I found the following info on the command I should use:


    display-size [reset | widthxheight]

    Override device display size. This command is helpful for testing your app across different screen sizes by mimicking a small screen resolution using a device with a large screen, and vice versa.

    Example: am display-size 1280x800


    Thanks in advance, android dev pals

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

    In production is it necessary do perform user input sanitization client side?

    Posted: 28 Sep 2021 12:54 AM PDT

    Or should you just let the backend team handle all of it and you just handle the error codes from the backend?

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

    A beginner at software dev overall, want to dabble in android dev. What language should I use?

    Posted: 28 Sep 2021 02:53 AM PDT

    I'm a complete beginner in software dev, I've only developed games in a bit of C#, and a good bit of Lua, but I haven't done anything in software dev.

    I thought about what my first project should be, and decided on an android app that'd help my daily life. I don't know how complex the project'd be considered, so I'm just looking for an easy language to get into, that wouldn't eat up months of my life learning, as I have some other projects in mind, too. I don't care about making the highest quality app I can make, just something I can get by with, and see if I like developing mobile apps.

    After researching a bit I got the idea that Flutter would be the most beginner friendly? Is that wrong, and should I rather not be scared of something like Java and try learning it?

    submitted by /u/Fudge-Basic
    [link] [comments]

    Best resource to learn android retrofit, Api's and Json handling.

    Posted: 27 Sep 2021 07:14 PM PDT

    Im still a beginner in android, I have gotten the basics and completed a fee projects using firebase, But i want to get into the nitty gritty stuff of handling network calls and all those.I just cant seem to find the right resources that explain it to a complete beginner.Any recommendations?? I've tried youtube but too complicated and assume you already know the concepts, also I dont wanna just blindly follow a tutorial.Any resources suggestions would be highly appreciated,books blogs, site anything of that sort.

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

    Is there a type of notification/popup that can be created using Native Apps that isn't replicable via websites?

    Posted: 27 Sep 2021 06:28 PM PDT

    I need to create a notification that's easily distinguishable from website based notifications/pop-ups. I am thinking about a permanent notification that updates based on events, but this is quite passive and requires a deliberate look-up. Is there any way?

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

    Hello friends, i have an application that seems to only install via Android Studio when i try to use the Apk i keep getting a App not Installed error

    Posted: 27 Sep 2021 11:08 AM PDT

    What could be causing this and how can I work around this?

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

    Hey Android Developers, Do you know that you can validate and debug your Android app Analytics implementation using Firebase Debug View? Learn how to do it in this video:

    Posted: 27 Sep 2021 01:59 PM PDT

    Is VOIP protocol implementation more or less uniform for all apps?

    Posted: 27 Sep 2021 11:29 AM PDT

    What I mean is that if I use one VOIP app chances are the call quality will likely be the same for another app?

    I'll start working on the phone using a company provided VOIP app but we can't even test it beforehand to check the call quality before we actually start working. If I use another VOIP app for testing you think it will more or less will be the same?

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

    Is there a way to embbed a complex flutter app thats uses flutter_storyBook, in a native Kotlin App as a module?

    Posted: 27 Sep 2021 10:48 AM PDT

    I have a very complex flutter app with story book and everything, and I'd like to reuse the code inside my native Kotlin app, but it's a lot of screens, login and everything, and it has flutter_storybook

    I've tried following the flutter docs tutorial for integrating as a module (considering just my main.dart as entry point), but I ended stuck with a black screen everytime I try to launch de FlutterActivity, is there anything I'm doing wrong????

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

    No comments:

    Post a Comment