• Breaking News

    Friday, March 6, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 06 Mar 2020 04:40 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    PSA: Google survey about Scoped Storage for Android 11

    Posted: 06 Mar 2020 02:47 AM PST

    Aspiring Android developer discouraged from reading about bans - would you still choose Android as a career if you did it over?

    Posted: 05 Mar 2020 10:41 PM PST

    TL;DR at the bottom.

    A bit of background about me: I'm 27 and finishing up a degree in Computer Science. Lately I've been interested in Android development and working through their official code labs and concept chapters. I love Android Studio and enjoy the Android platform with its fun phone sensors and other features to work with. I've been planning on focusing on this and pursuing a career in it.

    However, I'm discouraged after reading about Google's treatment of developers (for example, removing apps without clear instructions and support about policy violations, or even worse, an outright developer ban).

    My biggest fear is if I somehow got permanently banned from the Playstore, that would severely limit my employability as an Android developer - especially as a new one. I'm not planning on making spammy apps, but from what I've read it seems that Google can sometimes be vague and capricious in removing apps and banning developers.

    How likely is a permanent ban if you try to follow their policies? And if worst case scenario you do get banned, would that actually affect your employability as an Android developer? Or am I worrying about this too much?

    I actually have a course at school for Android and need what I've studied so far to pass it, so even if I don't pursue Android development professionally, my studying hasn't been for nought. And I've got front end experience as well as Java, so I may go one of those routes instead. Or possibly learn React Native and try to find a job doing that.

    Am I overthinking this? Would you, a professional Android developer, still choose this as a career if you were in my shoes?

    TL;DR Considering a career in Android development, but worried about being banned from the Playstore even if I try to follow policy. Biggest worry is a ban affecting my employability. Is that a legit worry?

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

    How do reach out to someone at Google Play? I tried updating the logo for the application I am developing, got rejected saying we are impersonating a brand. I didn't know there was chat support in Google Play, I tried last night and this morning and I see this. What is 12am - 12am (GMT)?

    Posted: 05 Mar 2020 12:45 PM PST

    AnimatedBottomBar

    Posted: 06 Mar 2020 08:40 AM PST

    Facebook punishes my Android game: Your app cannot be installed by new users. ��

    Posted: 06 Mar 2020 01:58 AM PST

    Hello,

    since over 2 years I run a small (150 mobile users, a bit more on desktops) word game, without any IAP or ads (I don't like ads and I haven't implemented IAP yet).

    The mobile version is published at Google Play, Huawei App Gallery, Amazon.

    Users can login through Google, HMS, Amazon Login and - Facebook login.

    Yesterday I have gotten the warning mail by Facebook: "Your app is in violation of our Platform Policies"

    Being an indy dev I live in constant Angst and thus I have immediately updated my app at Google Play (changed the Facebook icon from greyscale to blue-white) and re-entered the base64 hashes in Facebook settings. I haven't fixed anything more because actually the Facebook Login just works in my little app.

    And of course this didn't help and now my app is:

    Your app XXXXX XXXXXX has been restricted for creating a negative user experience in violation of our Platform Policies. Your app XXXXX XXXXXX has been restricted for creating a negative user experience that is in violation of our Platform Policies.

    • Your app cannot be installed by new users.

    I understand many things, been watching devs in this Reddit being banned last year by Google robots, understand that Facebook uses similar robot scripts...

    But how on Earth does Facebook want to forbid new users to install my Android app? What do they mean by the above restriction (and yes the Facebook login still works in my game).

    P.S. My game is super clean: no ads, no IAP, all-native Java, here few screenshots: https://imgur.com/a/2m2X3Pa

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

    Animated Play/Pause Button: Animated Vector Drawables tutorial

    Posted: 06 Mar 2020 03:49 AM PST

    Glide image library being reported as malware by AVG, Avast

    Posted: 05 Mar 2020 02:13 PM PST

    I spent 6 hours paring down this issue, removing one library at a time. Hopefully this information is useful for others who are hitting this issue.

    Starting today, AVG and Avast (they are the same reskinned app and have combined over hundreds of millions of downloads) started reporting my apps that use Glide (4.8.0 and 4.11.0) as malware. I reported it to AVG as a false positive already, but don't expect a quick fix from them.

    When I replaced Glide with Picasso, the apps are no longer marked as malware. I've already received about 10 bad reviews and dozens of e-mails about this issue and have not updated my app recently, which leads me to think they updated their algo very recently. I have tried disabling proguard but it makes no difference.

    Quick fix is to replace Glide with Picasso and the issue goes away. Replace:

    • Glide.with(context).load(uri).into(imageView)

    With:

    • Picasso.get().load(uri).into(imageView)

    In gradle, replace:

    • api "com.github.bumptech.glide:glide:4.8.0"

    With:

    • api 'com.squareup.picasso:picasso:2.71828'

    P.S. Since I linked this post from other places: If you're not familiar with Glide, it is a popular library/toolkit used by Android developers for showing images inside Android apps (such as images in news feeds). It does not have any tracking, malware, or advertising and the code is all open source: https://github.com/bumptech/glide

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

    Is there anyway to detect bold text font in a picture?

    Posted: 06 Mar 2020 08:44 AM PST

    I've tried using AWS's Textract to detect bold font in a picture/pdf but it doesn't have that option

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

    Where do i extract the SDK / Emulator so Android studio knows where to look ?

    Posted: 06 Mar 2020 08:34 AM PST

    Aloha Can some help me figure out where to extract my android emulater and sdk linux tools

    i tried to download the sdk and components but my connection kept timing out

    so i had to download them through wget on linux, now that i have them i need to know exactly whats folders to extract them in so that next time i run android studio it will no where to look and not try to download them again

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

    How to install command line tools

    Posted: 06 Mar 2020 08:07 AM PST

    Hey guys, I'm trying to install the latest version of the android studio commandline tools on my Ubuntu environment.

    The problem is with the directory structure needed for the installation (from what I, it's different in the latest version from the older ones).

    I always receive a warning that it wasn't able to create settings when I try to use the sdkmanager.

    Any help is appreciated!

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

    How do I use Authenticator with Coroutines?

    Posted: 06 Mar 2020 06:56 AM PST

    I am using the interceptor class to retrieve a new access token, but I think the problem that occurs is that I am using a coroutine to retrieve it and return it and it returns an empty string.

    Here is some code

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

    anoop44/3dview

    Posted: 05 Mar 2020 08:09 PM PST

    Developing your own in-app update system. Best way to avoid random app/account ban?

    Posted: 05 Mar 2020 11:20 PM PST

    I am seeing a lot of horrifying stories of developers whose apps are getting banned for frivolous reasons. An account ban automatically tarnishes your image as an android developer, and people may no longer be ready to work with you. All because you did a silly mistake or there was no mistake at all and Google bots just nuked your account due to false alarm.

    I was thinking this. Once your app does get published on Google Play, you are pretty much safe till you try to upload a next update. At that point of time, your app is scanned again, and you keep your fingers crossed that it won't be rejected/lead to a ban.

    So why not add an in-app updater? It's pretty easy actually. You put a file on GitHub/Gitlab with update definition (current version of the app and url for direct download of the update apk) compare the current version of the app with the update definition and if your current version is outdated, download the new update apk and prompt the user to install it.

    Atleast once your app gets published for the first time, you won't have to deal with unnecessary fears of getting banned in a future update. (Unless Google re-scans the app and finds it violating policies or anything similar)

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

    Pushwoosh or Braze Which one do you prefer and why?

    Posted: 06 Mar 2020 03:02 AM PST

    It would be very helpful,if you could share why one is better in your use case or if you switched to any other services please mention it and it's advantage

    Or Is the Firebase console enough ?

    Thanks in advance :)

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

    Camera onPreviewFrame() does not working on API 28

    Posted: 06 Mar 2020 02:43 AM PST

    How can I count how many times the device was shaken in a given time?

    Posted: 06 Mar 2020 01:23 AM PST

    Hi everyone !

    I'm a real beginner and I need a part of my app to count how many times the user has shaken the device before the end of a given time.

    I've found multiple tutorials explaining how to count the number of time a device was shaken, so I'm currently able to display the number of time the device was shaken, via the code bellow, but I can't stop the count at one count...

    (sorry, I don't know how to display code properly)

    public void onPlayer1BtnClicked(View currentView){ shakeDetector.setOnShakeListener(new OnShakeListener() { @Override public void onShake(int count) { Toast.makeText(getApplicationContext(), "Shaken : " + shakeDetector.getNbShake(), Toast.LENGTH_SHORT).show(); shakeDetector.setNbShakes(count); } }); Toast.makeText(getApplicationContext(), "Times up : " + shakeDetector.getNbShake(), Toast.LENGTH_SHORT).show();} 

    If you can help, thank you very much :)

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

    Reddit like image viewing effect

    Posted: 05 Mar 2020 09:20 PM PST

    So I want to know how to make reddit like effect in Android when we click a image of some post. So image gets open and we are able to zoom it and swipe up and down to dismiss it. Also I like the gradual change of opacity when swiping up amd down. Is there any library or tutorial for doing the same?

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

    Key challenges when working with friends on an Indie project

    Posted: 06 Mar 2020 12:24 AM PST

    What advice would you give to someone with an good app idea, but only has basic coding knowledge and no time to learn how to become a legit programmer?

    Posted: 05 Mar 2020 11:41 PM PST

    I've had so many ideas and I've tried to learn how to use Android studios and teach myself Java. But it makes my brain go ouch-y

    I don't want to give my idea away to someone else to become the next quadrillionaire

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

    Safer and More Transparent Access to User Location

    Posted: 05 Mar 2020 11:34 PM PST

    Code Review for a newbie

    Posted: 05 Mar 2020 11:22 PM PST

    Hello people, am a bit new to Android development (last year) and don't have any mentor. would appreciate if anybody can review code for the app am still working on. https://github.com/david-oh-git/SuperD

    It is an Android download manager using a 3rd party library Fetch2.

    need to be good at this or die of hunger.

    PS: also seeking internship/entry level position

    Respectfully.

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

    The Pitfalls of Preliminary Over-Modularization in Android Projects

    Posted: 05 Mar 2020 09:13 AM PST

    Where to continue for the android development?

    Posted: 05 Mar 2020 09:58 AM PST

    Hi.I just finished this Kotlin udacity course https://www.udacity.com/course/kotlin-bootcamp-for-programmers--ud9011

    and now I am going to finish the kotlin Koans while reading the Kotlin documentation again.Now because i want to build mobile apps for android i want to take this course https://www.udacity.com/course/developing-android-apps-with-kotlin--ud9012

    But i don't know if the course i took for kotlin and the koans will be enough to take up this course.So i want an advice from someone who took the second course and can tell me what i need to know in kotlin in order to take it or from anyother person who uses kotlin for android development.

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

    Installing multiple app flavours simultaneously on a device

    Posted: 05 Mar 2020 05:28 PM PST

    I've got an app with multiple app flavours with unique package IDs (different suffix added depending on the flavour).

    Let's say that's flavours A, B, C, D, E.

    I'd like to install all five of those flavours to an Android device simultaneously so I can give it to the "Client Relationship Manager" dude in my company who can test the apps before client meetings.

    I'd like to automate this because I have to reinstall all the flavours for every change in the codebase... How do I go about this? Android Studio can only let me install one flavour's debug version at a time.

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

    No comments:

    Post a Comment