• Breaking News

    Friday, February 28, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 28 Feb 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]

    JakeWharton/wormhole

    Posted: 27 Feb 2020 08:42 PM PST

    Transform into a different view or activity using morphing animations.

    Posted: 28 Feb 2020 08:10 AM PST

    [APP SUSPENSION] Meme Generator Free - Violation of Violence policy, No example, No warning, Editors' choice app, 4.7 average rating, +30mil downloads

    Posted: 27 Feb 2020 10:34 AM PST

    [RESOLVED][UPDATE]: The suspension appeal was successful and Meme Generator Free is back up on the market after a review. No additional explanation was given, but we assume it was just a really bad error.
    We might have overreacted, but as we've seen very similar horror stories from other developers, we felt like this had to be shared. An app Suspension is a very drastic and disproportionate measure for an error or misunderstanding. We hope this part of Google Play will be improved in the future.
    We're also thankful that Google Play's team took care of this issue in less than 8 hours after suspension. We hope similar future situations can be avoided by a friendly email.
    A huge Thank you to the entire Android Developer community, your support means a lot to us!

    Hi!

    Some might know our app Meme Generator Free which was suspended about one hour ago without warning and without any example of violation. The message only says: Issue: "Violation of Violence policy - We don't allow apps that depict or facilitate gratuitous violence or other dangerous activities." We don't know if it's a meme, sticker, an example or anything else. We did not receive any other explanation so we do not know how to make our app compliant if it ever gets reinstated.

    Our app was an Editors' choice app, released in September 2011, had +30 million downloads, and an average user rating of 4.7. We are all shocked by this swift suspension, and by the lack of any examples or further suggestions on how to make our app compliant. We read a lot of similar posts in this subreddit and were honestly scared it would eventually happen to us as well. We are a company that employs 5 people, Meme Generator is our main app and we love co-creating the Android app space. We'd be very disappointed and sad to shut down our company because of an error.

    We have sent an appeal, but we since we read similar horror stories on this subreddit, we're doubtful we're resolve anything trough a regular appeal. At this moment I'd be happy to speak to someone at Google's app review team so that person can tell us how to make our app compliant. We can only achieve this with some public support from our users and fellow developers. We will also share this post on Twitter and tag GooglePlayDev.

    If anyone has any recommendation on what else to do, we'd be very thankful.

    ZomboDroid Team

    EDIT: This happened an hour after pushing an update to our Beta testing group. What is also interesting is that the PRO version went through the review process and got accepted, but the Free one gets suspended. They are the same apps, one Free and the other paid.

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

    I just received an offer to post fake positive reviews for my app; where should I report it?

    Posted: 28 Feb 2020 08:09 AM PST

    Text of the email I received:

    I will provide u many good reviews with 5 star rating and download app in low price plz msg me my whatsapp no. … bcz I have above 400 members review makers whatsapp group plz call me or share your whatsapp no. I will msg you.. .. !!

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

    Make Android Studio debugger more powerful with custom Data Views

    Posted: 28 Feb 2020 04:21 AM PST

    A video lesson about a little known but very powerful feature of Android Studio (and Intellij) debugger: custom data views:

    https://caster.io/lessons/make-android-studio-debugger-more-powerful-with-custom-data-views

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

    Make an overlay View

    Posted: 28 Feb 2020 07:53 AM PST

    So, Imagine a simple activity with a fragment container (matchparent) with GoogleMaps that extends from SupportMapsFragment, I want to make that when the activity goes to background the fragments overlay the user can navigate with any problem on the android UI. It will be similar to go from Full Screen Window to a Mid Screen Window or something like that... I am looking the window alerts but I don't know if I can put a fragment inside of it.

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

    What has happened with apk sizes and zip alignment since Android Studio 3.6?

    Posted: 28 Feb 2020 06:11 AM PST

    Since I updated to Android Studio 3.6 two things has happened to my release APK:

    - It has grown from 60mb to 102mb

    - zipalign.exe does not successfully alignment to 4 which means I cannot upload the APK

    - My app uses native libraries, and using verbose output from zipalign it seems the .so files are the files which isn't successfully zipaligned.

    However, when I inspect the APK from Android Studio, it says that the downloaded size is still 60mb.

    It seems something in the release management has changed, but I cannot find any info on what has changed.

    1. Does anyone know what has changed?
    2. Should I perform some action?

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

    Jake Wharton on Twitter

    Posted: 27 Feb 2020 11:43 AM PST

    Make sure you add mediation to your apps, THEY can flip the switch on your account!

    Posted: 28 Feb 2020 04:35 AM PST

    Make sure you add mediation to your apps, THEY can flip the switch on your account!

    Mediation saved me when they flipped the switch on my account which made my CPC drop to $0.05-$0.06 from $0.2-$0.3 (almost 60% app users are from USA).

    12th October is the exact date some bot flipped the switch on my account, no suspension, no warnings, invalid activity cuts never went above 5%, fill rate always 90%+ but revenue dropped like crazy (They still give me 95%+ fill rate so ads aren't limited) .

    Those numbers are tiny, so you should probably zoom.

    Here are my before and after pics.

    Sept 2019

    October 2019

    Immediately after this happened, I switched off Admob through MoPub, and gave complete traffic to FAN. Do you know FAN provides real human support and that they reply to you within 5-6 hours of you sending them an email? And just in case you're wondering, the revenue never picked up on Admob and there's nobody I can email/contact.

    Use mediation, stay safe.

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

    Fake 1 star reviews

    Posted: 28 Feb 2020 07:07 AM PST

    Someone is giving my app fake 1 star reviews and they are from the same phone and on the same day.

    is there some way I can report it to Google so that Google can remove them?

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

    How to assure data download when app gets update in appstore

    Posted: 28 Feb 2020 06:46 AM PST

    My question is, I have to update an app that's on the appstore when they download the update will all the data also be downloaded automatically or not, my app is a calendar with events and a recyclerView with the events and the update is to update the calendar range from last year to this year (2019/01/01 - 2020/01/30) => (2020/01/01 - 2021/01/30) but doing this also means I need to download the calendar events again.

    My download function is in the MainActivity.java and it downloads a json from online.

    I have a property class where I set a property called firstTime where it checks if this is true then it downloads the data, but if it's false then it doesn't so if this person already has the app then this property would be sent to false and the download won't happen.

    I have this method which is very relevant, currently even if I uninstall the app off my phone and run it again in androidStudio and it installs it again, System.out.println(properties.getFirstTime()); returns false

    private void checkStatus_Download() { System.out.println(properties.getFirstTime()); if (properties.getFirstTime()) { if (Connectivity.hasConnectivity(this, true)) { downloadJSON(); System.out.println("did download"); properties.setFirstTime(false); } else { System.out.println("not online"); setRecyclerView(); } } else { System.out.println("first time false"); } } 

    Is there a way to force this download when the person updates the app?

    This is the section of code that changes in this update, the widget in this case is this dependency

    widget.state().edit() .setMinimumDate(CalendarDay.from(2020, 1, 1)) .setMaximumDate(CalendarDay.from(2021, 1, 31)) .commit(); 
    submitted by /u/msslgomez
    [link] [comments]

    Using onPreviewFrame To run ML models

    Posted: 28 Feb 2020 05:58 AM PST

    So i'm using the legacy Camera API (as far as I can tell) to get previewFrame call backs to then run a few machine learning models I have. I have confirmed that the machine learning models work when given a bitmap decoded when I take a picture via the onPictureTaken callback. Right now in the samples below, I am just simply testing on ML Kit's barcode scanner as a base case, but my custom models seemed to work fine with the onPictureTaken callback as well.

    From what i've gathered, using onPreviewFrame isn't necessarily the best way to do this, but for the sake of having a quick sample play-around (and learning experience) I decided to just go this route. Based on everything i've tried from others having solutions online, I can't seem to get anything to work properly. The below code returns null:

    @Override public void onPreviewFrame(byte[] data, Camera camera) { // Log.d("onPreviewFrame bytes.length", String.valueOf(bytes.length)); // final Bitmap bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); // Log.d("onPreviewFrame bmp.getHeight()", String.valueOf(bmp.getHeight())); Camera.Parameters parameters = camera.getParameters(); int width = parameters.getPreviewSize().width; int height = parameters.getPreviewSize().height; Log.d("onPreviewFrame - width", String.valueOf(width)); Log.d("onPreviewFrame - height", String.valueOf(height)); Log.d("onPreviewFrame - parameters.getPreviewFormat()", String.valueOf(parameters.getPreviewFormat())); YuvImage yuv = new YuvImage(data, parameters.getPreviewFormat(), width, height, null); ByteArrayOutputStream out = new ByteArrayOutputStream(); yuv.compressToJpeg(new Rect(0, 0, width, height), 100, out); // // byte[] bytes = out.toByteArray(); // final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); byte[] bytes = yuv.getYuvData(); final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); extractBarcode(FirebaseVisionImage.fromBitmap(bitmap), bitmap); } 

    Here's something else I tried:

    @Override public void onPreviewFrame(byte[] data, Camera camera) { // Log.d("onPreviewFrame bytes.length", String.valueOf(bytes.length)); // final Bitmap bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); // Log.d("onPreviewFrame bmp.getHeight()", String.valueOf(bmp.getHeight())); Camera.Parameters parameters = camera.getParameters(); int width = parameters.getPreviewSize().width; int height = parameters.getPreviewSize().height; Log.d("onPreviewFrame - width", String.valueOf(width)); Log.d("onPreviewFrame - height", String.valueOf(height)); YuvImage yuv = new YuvImage(data, parameters.getPreviewFormat(), width, height, null); ByteArrayOutputStream out = new ByteArrayOutputStream(); yuv.compressToJpeg(new Rect(0, 0, width, height), 100, out); byte[] bytes = out.toByteArray(); final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); extractBarcode(FirebaseVisionImage.fromBitmap(bitmap), bitmap); } 

    Unfortunately I got this error:

    ML Kit has detected that you seem to pass camera frames to the detector as a Bitmap object. This is inefficient. Please use YUV_420_888 format for camera2 API or NV21 format for (legacy) camera API and directly pass down the byte array to ML Kit.

    with parameters.getPreviewFormat() returning 17 which is NV21. I also tried simply by changing that to ImageFormat.YUV_420_888 but that resulted in the below illegal argument exception:

    only support ImageFormat.NV21 and ImageFormat.YUY2 for now

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

    Need Help With Flutter Doctor and Android SDK

    Posted: 28 Feb 2020 05:52 AM PST

    I ALREADY GOOGLED A THOUSAND TIMES + Im in a complete feedback loop between This subreddit and androiddev reddit , so FORGIVE ME .

    Im having the hardest time of my life trying to run flutter doctor , everytime i run i get a new issue with android . here is my latest issue when i run flutter doctor .

    [✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)

    [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)

    ✗ Android SDK file not found:

    /home/rootz/android-sdk/build-tools/28.0.3/aapt.

    [!] Android Studio (not installed)

    after searching online i still have no idea how to fix this issue.

    i can only run it from the cli since im using Vscode and not android studio ,( the packages can never download for me from android studio)

    how can i fix this issue so i can start developing my app ?

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

    Google updates Android Studio: IDE like multi-display support and a split-view designer

    Posted: 28 Feb 2020 05:08 AM PST

    Where can I find these icon pack? If not how can I find similar icon pack. I need them for my e-commerce category selection

    Posted: 28 Feb 2020 12:39 AM PST

    Can I use Firebase with a project I don`t own?

    Posted: 28 Feb 2020 12:36 AM PST

    The APi is hackernews,they recommend using a Firebase Android Client app. Was this possible to do a few years back or am I blind?

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

    Localized privacy policy link on Store Page ?

    Posted: 28 Feb 2020 04:15 AM PST

    Unless I missed something in the dev console, I did not find a way to specify a different link for the privacy policy for each country. Is that possible or are you supposed to handle all languages in that unique link ?

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

    Android Studio 4.1 Canary 1 available

    Posted: 27 Feb 2020 10:26 AM PST

    Can scrap/junk android phones be turned into cloud computing resource?

    Posted: 27 Feb 2020 09:03 PM PST

    Diagnosis tools for graphical applications ?

    Posted: 28 Feb 2020 02:32 AM PST

    Hi all !

    Currently, I'm working on the development of an heavy graphical application for Android and iOS. So, we're looking to optimise ours app though several ways. To test efficiently ours hypothesis, we need debugging tools to establish diagnosis.

    Mainly, we're working on the optimisation of shaders to allow our app to run on low-end Android devices :D

    Btw, we found GAPID (Graphic API Debugger) for this purpose, but maybe you have other suggestions ?

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

    Vector Assets - Android Conference Talk

    Posted: 27 Feb 2020 10:06 AM PST

    Use view binding to replace findViewById

    Posted: 28 Feb 2020 12:43 AM PST

    Anime Streaming App.

    Posted: 28 Feb 2020 12:36 AM PST

    Swipe to Dismiss in Flutter App & SnackBar implementation

    Posted: 28 Feb 2020 12:26 AM PST

    No comments:

    Post a Comment