• Breaking News

    [Android][timeline][#f39c12]

    Sunday, July 29, 2018

    I've spent hours trying to micro-optimise and debug a small performance issue on an unreleased app, only to find the issue completely disappear after using a final signed APK. Oops. Android Dev

    I've spent hours trying to micro-optimise and debug a small performance issue on an unreleased app, only to find the issue completely disappear after using a final signed APK. Oops. Android Dev


    I've spent hours trying to micro-optimise and debug a small performance issue on an unreleased app, only to find the issue completely disappear after using a final signed APK. Oops.

    Posted: 29 Jul 2018 04:26 AM PDT

    On a cold load of this app, the main Recyclerview would always stutter during the first moments of the first scroll, but there'd be pretty much no lag after that. I couldn't quite work out why - I followed all the best practice and performance related fixes for RecyclerViews, I'm using a simple ConstraintLayout for the rows, and spent quite a while removing even the smallest processing from the onBindViewHolder() method, but nothing seemed to fix the issue, the noticeable frame drops stayed.

    Anyway, I saw one little comment on a StackOverflow post saying that debug apks aren't optimised for performance and might not be a good indicator of actual performance, so I checked with a prod APK and what do you know! It works perfectly smoothly after every single load - no frames dropped on first scroll.

    Lesson is, if you're debugging a weird performance issue, grab a final signed APK and test with that! You might save yourself a lot of trouble. I know I wish I realised earlier!

    Edit: and some official evidence!

    https://developer.android.com/topic/performance/vitals/render

    Run a release (or at least non-debuggable) version of your app. The ART runtime disables several important optimizations in order to support debugging features, so make sure you're looking at something similar to what a user will see.

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

    How are these incredibly beautiful eye-candy like Android apps made? How do you theme an android app to look that good?

    Posted: 29 Jul 2018 08:20 AM PDT

    Like Deezer and Shazam.

    Is there like an ultimate guide to Android app theming?

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

    How do you perform periodic update for home widget, in Android 8.0 Oreo?

    Posted: 29 Jul 2018 12:07 PM PDT

    All the while, I'm using AlarmManager (with 30 mins interval) to perform periodic update for my home widget.

    Recently, some user of my app, from Android 8.0 Oreo, complained that the home widget no longer work.

    However, I'm not able to reproduce the problem at my side, even though I'm using Android 8.0 Oreo. So, this makes debugging a little harder.

    I was wondering, what mechanism you use, to perform periodic update for home widget, in Android 8.0 Oreo? Some unlucky guy has the same problem as I do - https://stackoverflow.com/questions/49383379/how-to-update-a-widget-in-oreo-alarmmanager-stops-after-some-hours-days

    My plan is to use WorkManager's periodic worker, seem to be more reliable. However, seem I'm not able to test it out as the reported problem doesn't happen in my device., I'm not sure how good the fix will be.

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

    Why final fields are a compilation overhead?

    Posted: 29 Jul 2018 10:17 AM PDT

    I was trying to separate my modules and while searching for some error removal in R class, I came across this:

    In a regular Android project, constants in the resource R class are > declared like this: public static final int main=0x7f030004;

    However, as of ADT 14, in a library project, they will be declared >like this: public static int main=0x7f030004;

    Before ADT 14, all fields were final, so as a result, all libraries had >to have all their resources and associated Java code recompiled >along with the main project whenever they were used

    Can anyone eli5 this? I know this ain't a thing to be eli5ed, but I'm still curious about this.

    Thanks

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

    We know the recent apps code has been moved to the launcher. Is the navigation bar also part of the launcher now as well?

    Posted: 29 Jul 2018 11:14 AM PDT

    On the OnePlus 6, enabling the gesture navigation that comes with P makes it so you cannot use a custom launcher, and attempting to do so causes the stock OnePlus launcher to crash.

    Could this be because the code for the navbar is now part of the launcher, just like the recent apps?

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

    DroidJam India 2018 talks

    Posted: 29 Jul 2018 04:45 AM PDT

    Unusual Revenue Figures

    Posted: 29 Jul 2018 04:32 PM PDT

    Hey guys,
    I'm a bit concerned - Typically my apps make $1-2 a day with 10-30 clicks.

    For the past couple of days my revenue figures have spiked earning way above $2 with around 100-200 daily ad clicks according to admob. I've had no increase in downloads to justify the jump in ad clicks. And while I'm happy to be making more money I'm a tad concerned that ad clicks may be fraudulent. I've heard many horror stories of developers accounts getting suspended for this kind of thing. Is there anything that I can pro-actively do to check the origin of these clicks to make sure they're not coming from a single device?

    I've had a look around my firebase console, but the figures don't match up with what admob is reporting.

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

    ranking systems using a database

    Posted: 29 Jul 2018 09:55 AM PDT

    So i made a app its completly finished but i want one more feature.

    I want to implement some kind of ranking. and i thought about using an external db for this.

    I triend using MYSQL with just one table(columms: name, id, wongames) but i have some troubles with the JDBC connector. anybody got some ideas on the best way to do this? if possible free because i dont wanna run adds so i cant make money and i'm still a student.

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

    Does appstore account get suspended like google play ?

    Posted: 29 Jul 2018 03:36 PM PDT

    Hello, I recently got my google play account suspended for no reason, i tried to contact the support but i get no response, so i'm fed up with them. I'm willing to pass to appstore but i'm afraid if it's the same of google play, is there anyone with experience on it ?

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

    Android resources for java developer

    Posted: 29 Jul 2018 04:45 AM PDT

    Hello :D

    I want to learn android development, but the resources I saw so far start from .. idk the very beginning?

    I have experience with markup languages (XML and HTML), I also know java and have made many things with it. I also have coding experience with other languages and I know how to deal with databases. I know about APIs and HTTP.

    Basically, I want to learn ANDROID development. Not java, not OOP concepts, not how to program and nope no algorithms or data structure

    Do you have any resources for ANDROID development that ASSUME the consumers know java? I prefer written resources but video ones are okay too. Having many real-world examples as a huge plus too.

    I am willing to pay as long as it is not > 25$ as I am a broke poor student :(

    Thank you :3

    submitted by /u/Maji-_-
    [link] [comments]

    Android Machine Learning

    Posted: 29 Jul 2018 11:20 AM PDT

    I am have created an android with few text-fields but I want to connect the response from the users to my ML model built using python on jupyter. The aim is to get a prediction thrown back to the user from the python jupyter. How do I connect the android app to the jupyter notebook.Is it possible?

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

    Can people figure out your Email Address through an app on the Play Store?

    Posted: 29 Jul 2018 01:12 PM PDT

    So I am thinking of publishing an App on the Google Player store, but I do not want my personal email address to become public, so was wondering if I had to set up a new google account with a new email address to solve this issue?

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

    FirebaseMessaging: Error while parsing timestamp in GCM event - Invalid int: "null"

    Posted: 28 Jul 2018 10:52 PM PDT

    Ive successfully implemented push notifications in my app. I receive my notificatios but do not hear my custom sound. I get this wierd error saying `FirebaseMessaging: Error while parsing timestamp in GCM event java.lang.NumberFormatException: Invalid int: "null"` . I cant debug since the app is in the background. How should I go on about debuggin the process?

    Edit:

    For anybody who has this problem in the future. The problem may lie within your JSON object your sending to your device. Just follow this format:

     'to' => $to, "data" => array( "message"=>$message, "title"=>'hello', "timestamp"=>date('Y-m-d H:i:s'), "image"=>'' ) 
    submitted by /u/foxdye96
    [link] [comments]

    Does Google purposely make it as hard as possible to get Admob payouts? (Waiting 4-6 weeks in the mail for a verification pin AND having to wait until you reach min $100 AND only being able to withdraw monthly!)

    Posted: 28 Jul 2018 10:45 PM PDT

    Would you recommend building custom buttons and views with xml across the entire app?

    Posted: 29 Jul 2018 10:44 AM PDT

    Hey! I want to create some custom buttons for my app instead of the default look and feel and I was wondering if it's possible to everything with xml? Buttons may change with click events and views might change with drag events.

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

    Streaming audio with Metadata

    Posted: 29 Jul 2018 03:57 AM PDT

    I'm a pretty amateur programmer, and have been looking at porting a windows program I made for a few years to either Linux or Android. They both have their advantages and I don't think I will have too much problem learning the development language for either one.

    My question however is this. My application requires me to stream audio, with Metadata to an icecast server and I was wondering how I would accomplish this on Android? Or if it's something thats just too complex for a new programmer to even attempt on the platform.

    I have been cheating a little bit by using edcast on windows and feeding the Metadata to it by a text file, but I am guessing I would need to have it all integrated in android.

    Thanks

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

    Best ad networks to advertise your app?

    Posted: 28 Jul 2018 05:39 PM PDT

    I've used google adwords for a year and have gotten some pretty good CPI with decent retention rates, but i've been wondering if there are better networks to promote your app.

    Whats a better place to promote and advertise your app with money other then google adwords/admob? I've tried appbrain out of curiousty and it was pretty bad retention wise, lost around 70% of the paid installs within 2 days lol.

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

    MaterialButton class

    Posted: 29 Jul 2018 01:39 AM PDT

    Hi guys, I am using an MaterialButton class in my app and I can't change background of button in Java code, I am using a setBacgroundColor(int) method and as a parametr I am giving Colorado from colors.xml and it doesn't work. Have someone silimiar issue, or I am doing something wrong

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

    Is it possible to make our own Android Auto using Android Things?

    Posted: 28 Jul 2018 11:42 PM PDT

    No, i am not talking about OpenAuto.

    I mean, google just released Android Things, can it be used to make our own Android Auto out of box? Or we need to code everything?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel