• Breaking News

    [Android][timeline][#f39c12]

    Monday, May 30, 2022

    Weekly discussion, code review, and feedback thread - May 30, 2022 Android Dev

    Weekly discussion, code review, and feedback thread - May 30, 2022 Android Dev


    Weekly discussion, code review, and feedback thread - May 30, 2022

    Posted: 30 May 2022 05:00 AM PDT

    This weekly thread is for the following purposes but is not limited to.

    1. Simple questions that don't warrant their own thread.
    2. Code reviews.
    3. Share and seek feedback on personal projects (closed source), articles, videos, etc. Rule 3 (promoting your apps without source code) and rule no 6 (self-promotion) are not applied to this thread.

    Please check sidebar before posting for the wiki, our Discord, and 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!

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click here for old questions thread and here for discussion thread.

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

    Weekly Who's Hiring Thread - May 30, 2022

    Posted: 30 May 2022 06:00 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Android Makers 2022 videos

    Posted: 30 May 2022 09:07 AM PDT

    What are some of your favourite extension functions?

    Posted: 30 May 2022 11:31 AM PDT

    Admob revenue?

    Posted: 30 May 2022 11:51 AM PDT

    Admob revenue?

    Hey, so a few days ago I ran an ad campaign for 100 euros. These are the results. The question is if those results are good? And if yes, why have I made just below 2 euros out of all of this? To be more clear, it's a google play game where I run a few ads from the Admob network to earn money, and the earnings are just below 1,50 EUR.

    what have I done wrong? Because I see other people pay 0.20 CPC and still make a profit out of it. Meanwhile, I pay 0.02 but don't make anything back? Is it possible that I have set up the ads in the game wrong? Because as I realized, whenever I request an ad, the same exact ad is displayed more often than others.

    https://preview.redd.it/iaekcsivtn291.png?width=482&format=png&auto=webp&s=28fa267c26a415c5f352e487b55c13924a5c9b6b

    https://preview.redd.it/1y3nk9u0tn291.png?width=770&format=png&auto=webp&s=a976a9f3039b8d89450a39f9f412565c00462a66

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

    Web Developer Interested in Transitioning Into Android Development

    Posted: 30 May 2022 12:30 AM PDT

    I'm currently a solo freelance full stack web developer, but I don't dig the field much, I like developing phone apps, and choosing Android as my platform I think is the better choice.

    I have a couple of questions though.

    • Should I start with JetPack or the old XML way of developing user interfaces?
    • If I chose to go with either way, which resource does the community agree upon on being the best and most up to date?
    • Should I start with Java then move on to Kotlin? Or is it pointless and I should just start with Kotlin?
    • I know books are old school, but is there a modern book on Android Development which contains exercises as well? (Textbook style).

    I'm also open for any other tips you might give me. Thank you.

    P.S: I'm a CS graduate, so I don't need to learn the basics and fundamentals of programming, which is also evident from me being a WebDev.

    P.S.S: Even though this might not be the place for such a discussion, but I am also open on discussions concerning why I should choose Android Native over frameworks such as Flutter?

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

    compileSdkVersion VS targetSdkVersion!

    Posted: 30 May 2022 09:53 AM PDT

    Streaming videos Like Instagram reels with ExoPlayer (Media 3)

    Posted: 30 May 2022 06:21 AM PDT

    Library for media picker?

    Posted: 30 May 2022 12:09 PM PDT

    Hello, is there some examples or libraries for accessing files in media store(image and video) that works on any android version?

    Thanks friends!

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

    Which image library is the best for Android apps?

    Posted: 30 May 2022 10:29 AM PDT

    There's Glide, Picasso, Coil, and many others out there and I don't know which one to go with. Any suggestions on which one to pick? My app is built with Kotlin.

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

    Websites with free UI UX mobile designs

    Posted: 30 May 2022 05:49 AM PDT

    Hello, noob here, planning to create my first serious mobile app 🙂 Thanks!

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

    Android Lib to Send WhatsApp Messages using the WhatsApp API

    Posted: 30 May 2022 02:42 AM PDT

    Music and SFX Library for Kids Games

    Posted: 30 May 2022 07:32 AM PDT

    Hello, we are a studio which make educational mobile games for kids. In this respect, we work are always in search of the theme music and sound effects suitable for children between the ages of 2-10 specifically. For now, we search our assets on each project differently and find what we are looking for from different sources. However, we are looking for a website that we can work with in the long term and that can meet our needs quickly.

    Although there are many different websites and alternatives on the web; What could be our most useful alternative with the largest database of audio needs in the child/family category, at where we can make monthly subscription or (inexpensive) package-based purchases directly?

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

    Library for inspecting requests in WebViews

    Posted: 29 May 2022 02:34 PM PDT

    I've released my first actual open-source library: a simple client for Android WebViews, that allows inspecting and intercepting the full HTTP requests sent from WebViews. The reason why a library may be necessary is that the built-in client doesn't give access to the request body as well as some headers.

    Personally, I used it to reverse-engineer how logging in to Facebook works in a WebView, but I thought it may have many other use cases as well and I hope someone else will also find this useful.

    Here's the link: https://github.com/acsbendi/Android-Request-Inspector-WebView

    Any feedback is highly appreciated :D

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

    Is it possible to publish apk instead of bundle on google play store?

    Posted: 30 May 2022 05:40 AM PDT

    My app breaks when is installed from bundle, some texture mix, some are invisible making my game unplayable. I am doing rendering in OpenGL ES 2.0 and loading textures from res/drawable. Everything works perfectly when installing from APK and breaks when installing from bundle on the same device, sadly I can't find an option to send app as APK on play console. If it is not possible, do you have any idea why this could be happening?

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

    How many people have installed my second app?

    Posted: 30 May 2022 09:15 AM PDT

    I have two apps in the Play Store, I'd like to know how many people with App A also have App B installed. Is this possible through the Google Play Console? Thanks!

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

    In its current state, can Android finally be regarded as being a relatively secure OS, or is it still prone to hacking?

    Posted: 30 May 2022 04:47 AM PDT

    I'm thinking of working on a project that will use Android as a OS. Problem is that I'm not sure how "hack-proof" Android is as a OS.

    I've got a Google Pixel 2, and Android is pretty stable on the phone. Enough to the extent that I haven't thought about moving over to the iPhone.

    With that said however, how hack-proof and secure is Android? Would you recommend it as a OS - especially as the base version is Open Source?

    Is Android also something that you'd recommend making apps for (if you had the choice)?

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

    How can I set position of my view when zoom out on Google Maps?

    Posted: 30 May 2022 12:40 AM PDT

    How can I set position of my view when zoom out on Google Maps?

    I have a marker view on google maps. Under this marker view, I have a LinearLayout that shows the speed and angle of the marker. Like this:

    https://preview.redd.it/gmtib3k40k291.jpg?width=1697&format=pjpg&auto=webp&s=b2ee2d2d59ad1844baa20b257172d88cd91ef0fa

    This linear layout's top margin is 10dp. However, when I zoom out, the distance between the marker and the view increases:

    https://preview.redd.it/emi6hmfihk291.jpg?width=1710&format=pjpg&auto=webp&s=7b0cdc580ff79d0421e1d13ec75bafbeadc8073c

    My code:

     private void putMarkerOnPosition(int positionX, int positionY) { binding.markerView.setTranslationX((float) (positionX - (width / 2))); binding.layoutView.setTranslationX((float) (positionX - (width / 2))); float markerY = (positionY - (height * 0.25)); binding.markerView.setTranslationY(markerY); binding.layoutView.setTranslationY(markerY); binding.markerView.setMarkerSize(map.getCameraPosition().zoom, density); binding.scrollView.invalidate(); } 

    How can I set the view's position just below the marker when zoom-out? Thank you!

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

    Did Google Play turn off automated review?

    Posted: 30 May 2022 08:00 AM PDT

    For the past few years, publishing an update was like spinning the Wheel of Fortune; the update would be usually be approved within an hour or so via automation, but every once in a while you'd hit "bankrupt" and the update would go to an actual person and could take days to a week before approval.

    For the past few weeks, though, EVERY ONE of my dozen or so updates (whether to Closed Testing, Open Testing, or Production) would take a minimum of two days (even when promoting an already-approved release from one level to another, which to my mind shouldn't even need re-reviewing -- but that's a discussion for another day).

    Is it just coincidence, or is everybody experiencing this?

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

    It's possible to drop files in /Download without user interaction or granting permissions?

    Posted: 30 May 2022 12:01 AM PDT

    I saw an app (https://play.google.com/store/apps/details?id=it.nexi.yap) that is dropping files in /Download without any user interaction or the WRITE_EXTERNAL_STORAGE permission. I am wondering how it can do that?

    On every boot it's overwriting /Downloads/log_antiroot.txt (or deleting it and creating again) but without any kind of user interaction.

    But if i read the docs i see this:

    1. "Because the user is involved in selecting the files or directories that your app can access, this mechanism doesn't require any system permissions, and user control and privacy is enhanced" - but the app isn't asking anything

    2. "Using the framework involves the following steps (...) The user sees a system picker, allowing them to browse a documents provider and choose a location or document where the storage-related action takes place. - it's not happening also

    3. "Create a new file - Use the ACTION_CREATE_DOCUMENT intent action to load the system file picker and allow the user to choose a location where to write the contents of a file. This process is similar to the one used in the "save as" dialogs that other operating systems use." - not happening too

    So, I don't understand how is possible to drop or overwrite files in /Downloads without user interaction. Isn't that a security issue? A rogue app could drop malicious files or overwrite files with malicious content without the user even noticing it? For example, I took months to know which app was dropping this "log_antiroot.txt" file, because i could not imagine that an app without storage permissions could do that.

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

    wireless adb in ATV is always ON. how to make it always on in phones too?

    Posted: 29 May 2022 10:28 PM PDT

    I noticed that I can with adb connect localhost:5555 use adb shell on my own device using termux.

    But, I need to start it with adb tcpip 5555 on another computer first.

    And then I remembered that on my Android TV device (Mi Stick) the wireless adb server is always online, I guess by design since you can't really plug it into a computer to jumpstart the wireless adb server.

    So, is there a way to keep it always on like on the ATV?

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

    How can i get a random data from firebase in android

    Posted: 30 May 2022 01:59 AM PDT

    First :- What i want is when the app launches, it will pull any random quote from the list of 2000 quotes

    The first data is shown, now if the user clicks the button (random button) I want a new random data to be shown but I also want to make sure that the data is not re-displayed. For example, quote 34 has already been displayed while first launched, so now when the user clicks the button I don't want to show that quote 34 again even if it is selected as random.

    Second :- Similarly, if the user clicks the random button again and again, I don't want to display the previously shown quote again

    the firbase is strutited like this

    Quotes -> q1(q as in Quote) ,q2,q3,q4.......q2000 ->key- title , value- "The qoute"

    please can anyone help me with this

    here is my stackoverflow question

    https://stackoverflow.com/questions/72430486/how-to-get-random-data-from-google-firebase-in-android-studio

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

    I need some help. Should I stick to flutter or move to RN.

    Posted: 30 May 2022 06:34 AM PDT

    I coded a uni project in Flutter and found it easy to grasp and learn. The app was great and my experience developing it was great too. I have also used c# while I developed games using unity so I'm familiar with oop. I haven't used the flutter web but reviews say its not dependable at all. My uni has a MERN course for free which is coming soon that guarantees a 'high paying job' as the uni says...and I don't know if I should stick with flutter or move to RN. I already know Dart. I know nothing about JS but the uni course starts from basics so it shouldn't be a problem. And the flutter job market is not even close to the RN job market. What do you guys suggest? What would you do if you were me.

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

    Is Base64 the best encoder for image URLs?

    Posted: 29 May 2022 04:36 PM PDT

    Say you want to encode an image URL. Is Base64 the best option for encoding the image URL and then using the Base64 format to load your image for your app?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel