• Breaking News

    Tuesday, December 29, 2020

    Android Dev - Weekly Questions Thread - December 29, 2020

    Android Dev - Weekly Questions Thread - December 29, 2020


    Weekly Questions Thread - December 29, 2020

    Posted: 29 Dec 2020 06:00 AM PST

    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]

    What do you love and hate about Android development?

    Posted: 28 Dec 2020 01:41 PM PST

    I've recently started dabbling with Android in a pretty serious way and it's also my first experience with mobile development in general. Since it's the end of the year, name at least one thing that makes you really happy about the current state of the ecosystem and at least one that you despise deeply, including your motivations.

    What I like:

    • Kotlin: despite being already very familiar with Java and despite Java possibly offering higher performance and/or faster compile time (that's what I heard), I've always preferred to use concise languages and Kotlin with all its syntactic sugar and modern features just feels right;

    • Android Studio: nothing to really say about it, I just had already fallen in love with JetBrains' style of IDEs and on a decent SSD even the startup time isn't so bad. I think together with Kotlin it makes the experience very beginner-friendly.

    What I don't like:

    • Working with the camera: my current project heavily revolves around using a custom camera for object recognition and since CameraX is still too young or doesn't cover my needs I'm stuck in the quicksand while juggling between Camera2 and third party libraries. Definitely not fun at all;

    • missing documentation and poorly explained new features: one of the main issues of Camera2 is the complete absence of user guides on the Android website, so you're left with just the list of classes and the official examples on GitHub that you have to explore and understand on your own. Also I've had quite a hard time figuring out how to recreate all the different fullscreen modes in Android 11 because the user guides haven't been updated yet and getting a proper grasp of WindowInsets wasn't exactly a breeze given the scarcity of related blog posts.

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

    Suggest strong SSL pinning

    Posted: 29 Dec 2020 03:46 AM PST

    I can see the SSL pinning of any android application is tampered by reserve engineering or by using any rooted android deivce. How do i make sure the android application can never be tampered . Is there any strong SSL pinning which can be implimented so none of the hackers who try to bypass the ssl pinnig dont work ?

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

    How to prevent fragment recreation in navigation component?

    Posted: 29 Dec 2020 09:07 AM PST

    I'm new to android development, so please be as in depth as possible(even if it's external reference), there are probably a lot of things I'm not familiar with yet.

    I have recycler view with animal classes (let's call it fragment A). On item click, the user gets redirected to fragment B, that's another recycler view, each element is card with animals of that class and some info.

    The problem - if user scrolls in fragment B, goes back to fragment A(this one keeps its position properly) with back button, and then clicks again on the same animal class, the fragment B will be recreated and position of recycler view is reset.

    So how do I keep fragment B in backstack ?

    Btw I'm using kotlin, so if possible don't explain/give references in java.

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

    Attach Debugger to App started using am -D?

    Posted: 29 Dec 2020 08:47 AM PST

    Hi, I want to debug an installed app (nothing I have written) which crashes on startup. I managed to start the app using am -D via adb, so that it waits for debugger to attach. I can then attach gdbserver to the pid and connect to that via gdbclient and catch the signal. However, it is only missing now to actually start the execution of the app by attaching some debugger (which will not be used, but just so the execution is started). Any hints on how to achieve this? Thanks!

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

    Android studio alternative for Linux

    Posted: 29 Dec 2020 08:34 AM PST

    I am trying to find an alternative for android studio because it has been slowing my laptop down a lot, also is there a way i can write the code in some other IDE and run the code on an external emulator, i am trying to find something very similar to Android studio since it have the emulator feature. Pls help

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

    Install Recovery Ramdisk( twrp.img) and Install(magisk)

    Posted: 29 Dec 2020 08:06 AM PST

    So I unlocked OEM. booted into twrp and now when I want to fully install TWRP and magisk i cant, because i get some folders with long names made from characters( letters, number and symbols like +,- and even , ). So my question is what can I do?

    Here is the photo

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

    Is it possible to replace old apk with the new one in playstore console?

    Posted: 29 Dec 2020 07:35 AM PST

    I've generated a new apk using third party addon for my website. The old developer i hired is no longer responding, so is it still possible to replace old app if I have just the user ID and pass for playstore console, without loosing downloads count and positive reviews?

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

    Can you list UI skills you need to work as a dev?

    Posted: 29 Dec 2020 05:47 AM PST

    I've been learning Kotlin for the past 6 months and I'm not very interesting in UI design but I get that having to know how to work with it is something you need to know to get a job or for your own projects too.

    I guess you're gonna mention Constraintlayout but specifically, which are the basics functionalities you need to know?

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

    Is there a way to intercept SMS messages sent by apps?

    Posted: 28 Dec 2020 09:48 PM PST

    Hello everyone. I'm not sure where to turn to, but for the past couple months i keep getting charged in my bill for SMS messages abroad that i never sent. Looking at the detailed bill they get sent to random numbers in France, Morroco and other random countries. They never show up in my SMS app.

    Looking at the permissions, no app other than the default SMS app should be able to send messages. I am completely lost on how to stop this or how to even begin looking for whats sending them.

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

    How to identify/stop user from availing subscription on multiple devices

    Posted: 29 Dec 2020 05:07 AM PST

    Hey, I want to know about the Google Play IAP Library tackling the issue of multiple devices added to the same account. I own an app and want to provide a subscription but the only problem I am facing right now is what if the user logs into 10s of other devices with the same Google ID he/she purchased the product with.

    Can you please explain to me something in this regard?

    Thank You

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

    Audio stops when receiving a message or alert

    Posted: 29 Dec 2020 05:04 AM PST

    It's a known new issue with Audible according to their reviews but I'm experiencing it across the board with Spotify, YouTube premium, etc. Using a Pixel 2.

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

    Setting up the Android Project

    Posted: 29 Dec 2020 06:54 AM PST

    If i have a 4.4 rating of my game in english language then what rating will be in Spanish language?

    Posted: 29 Dec 2020 02:51 AM PST

    If i have a 4.4 rating of my game in english language then what rating will be in Spanish language? It will be same or different?

    For example below mentioned game has 4.4 rating in english language, i am wondering what will be rating in other languages?

    flying car game

    I randomly picked this game from play store.

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

    Why is there are so much boilerplate code?

    Posted: 29 Dec 2020 02:42 AM PST

    Hi, i'm a begginer to android develoment coming from web development. I started learning RecyclerView and Retrofit(for consmuning rest API's) and i'm overwhelmed by the amount of code that needs to be written for the above two functionalities. Is every simple functionalities going to need a bunch of classes and interfaces for implementing or are these two are just outliers?

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

    Running other apps inside your own app!!! How are they doing this??

    Posted: 29 Dec 2020 12:54 AM PST

    I've searched high and low and I can't seem to find any hints on how something like this is possible.

    The AR glasses NReal has an app called Nebula that runs already installed 2D apps on your phone and display it as 3D dockable screen in your virtual room.

    Here's an example

    Honestly up to this point I wasn't even aware something like this is possible, but I can't seem to find any clues on how it works.

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

    Odin fails to complete due to SHA256 failure. Please help.

    Posted: 29 Dec 2020 06:10 AM PST

    Flashing stock rom. FAIL! SHA256 is invalid. Any help would be amazing!

    I have read everything online where I must be missing something somewhere somehow.

    S10e, snapdragon, SM-G970U

    Flashing stock rom for SM-970U1

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

    Real life use cases of ordered broadcasts

    Posted: 28 Dec 2020 11:54 AM PST

    Hello!

    Does anyone know of authentic scenarios where it would be useful to use ordered broadcasts in an Android app? I have found these two examples: Android Developers Blog: Processing Ordered Broadcasts (googleblog.com) for phone call redirect apps and GitHub - kevinthecity/OrderedBroadcastExample: Demo project illustrating how to use an ordered broadcast for handling notifications differently if the app is in the foreground.

    Outside of these, do you know any other useful use cases?

    I am asking for my final year project for my computer science degree where I am exploring vulnerabilities related to Inter Component Communication, so examples that are no longer good practice are still good for me.

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

    It is time to learn kotlin!

    Posted: 29 Dec 2020 02:07 AM PST

    Hey,

    I share you my tutorial in french to learn kotlin from A to Z (create an app to publish to the store).

    You can share it to your french friends!

    https://www.youtube.com/playlist?list=PLVaasf-927w7lMfrqWoGs458q17jgPBtg&fbclid=IwAR3anxKholhWTsBtvBylQkBfdmggrnbK8KyZd_qNX25pYxIN5f09oZiHiU0

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

    What's the difference between Freezing, Disabling and Hibernating

    Posted: 28 Dec 2020 10:22 AM PST

    Hi, I wonder what's the difference between Freezing, Disabling and Hibernating android apps.

    For Freezing : Superfreezz and LuckyPatcher apps do that.

    For Hibernating : Greenify does that.

    For Disabling, It can be done via Settings.

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

    Generic question on dev apps

    Posted: 28 Dec 2020 05:25 PM PST

    Hi everyone, i'm trying to do a simple "barber app" with android studio/firebase but i don't think to be on the right road... My goal is "make an android/ios app with: A form (login/signup), a homepage with news,coupons ecc.. places by the admin/owner and an appointment feature (with notification)<--not necessary. I'm asking at all of you is it the right way? And the easily? Or i must change way to perform my app? Any hint will be helpful, thanks in advance.

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

    Guide to release an app (Google to play store)

    Posted: 28 Dec 2020 02:14 PM PST

    Anyone knows a good guide, what I need to do to release an app I have developed?

    I know I need a developer account to do so, but what else?

    There is stuff like DSGVO in my country, privacy policies and idk what else, I need to care. How do you handle stuff like that?

    Is this even necessary if I just have all my data locally on the smart phone, i.e. a local database? I also know some apps allow to sync/export/import/backup there local data to the cloud, who has to deal with those DSGVO and privacy stuff here? What if I import my data always from the cloud/an other app or service?

    When I got a new phone I also restored all my apps from my old phone using googles backup. I realized, that some apps were completly empty, while others had the same data as the apps on my old phone, so some apps seem to backup their data using googles system backup? Who has to deal with those privacy/DSGVO stuff here?

    Are there more pitfalls to release my first app?

    submitted by /u/Plastic-Welcome-4775
    [link] [comments]

    No comments:

    Post a Comment