• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, December 17, 2019

    Android Studio 3.6 Release Candidate 1 available Android Dev

    Android Studio 3.6 Release Candidate 1 available Android Dev


    Android Studio 3.6 Release Candidate 1 available

    Posted: 17 Dec 2019 10:37 AM PST

    MotionLayout: A new way to create animations on Android

    Posted: 17 Dec 2019 06:33 AM PST

    Do you mentally drained after work and Lack of motivation to go workout

    Posted: 17 Dec 2019 12:44 PM PST

    As Developers sometimes fitness feels not very congruent with our lifestyle, work. I have recently decided to help developers with their fitness and start my consulting company and I'd like to learn more about their problems. One of the issues that people report me again and again is the lack of motivation. They tell me that this is due to being sedentary and working long hours (sometimes coupled with commute.) Looking at the screen for hours definitely effects mental energy and it is often common for me to find myself feeling drained, without energy to workout or to cook healthy etc.

    What do you guys think about this issue, are you facing the same challenge when it comes to fitness that is lack of motivation ? Knowing that you should do something about it but lacking motivation. Do you feel that you are wiped out after having worked for hours? Or do you have some other issues you are dealing with, please go ahead and share, I'd like your feedback.

    PS: I said developers because I'm a developer myself and I can relate to them better as I have the same lifestyle but any other profession is welcome to contribute. Thank you for reading/replying!

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

    Important of mediation and why everyone should implement it

    Posted: 16 Dec 2019 11:34 PM PST

    Important of mediation and why everyone should implement it

    EDIT: I know I messed up the title.

    Just saw a post on how Admob is banning people because they think "Your account possesses risk of generating invalid traffic".

    Well, here's my take on that, Don't put all your eggs in one basket.

    Number 1 thing in anything, always have a backup plan. And that's what mediation offers you in your app business.

    Lot of people don't know what mediation is, so I'll try explaining what it is:

    1. You have to create your account on all of the ad networks (Admob, FAN, etc) that you want to show ads from in your app.
    2. Then there is one platform, like MoPub, which is responsible for providing you with tools necessary for mediating other ad networks (Facebook Audience Network, Admob, AdColony etc).
    3. There are certain steps that you need to follow in order to connect MoPub with other ad networks to pull ads (and for automated optimization). Look at the screenshot from MoPub below

    Ad Networks supported by MoPub

    1. You just select what network you want to add, and follow the steps (in my case, I've added Facebook and Admob).

    2. After setting up the above part, you need to add "Adapters" for these networks in your app, along with MoPub SDK. They have "Mediation Integration tool", where you select which networks you've added in your MoPub console, and they'll give you something like this:

    Mediation Integration tool

    1. You add the above dependencies in your Android app.

    2. Now, you just initialize the MoPub as shown in their documentation, change your ad code, and you're good to go!

    What I've written above isn't supposed to be a full fledged guide on mediation, there's a few more steps that you need to take in order to set up everything, but this just gives you general idea of how things are.

    • Benefits of mediation
    1. Whenever you fall prey to Google's shitty bots, there's still other ad networks that keep filling your ad units so your revenue doesn't come to halt as it would if you depended on Admob and if it got blocked.
    2. You get more fill rate, and with that, more revenue.
    3. Only the ad with best CPM for that particular impression is shown, and with that, more revenue.
    4. You get more control over ad networks, and can enable/disable any ad networks at will.
    5. Then there's automated optimization with which the ad network which gives you best overall eCPM is given priority.
    6. As the planchatangas comment here says:

    one key feature is that you can create segments by country with different waterfalls. That way you can use different ad networks per country or prioritize them based on performance in that country.

    There's a lot more things that I don't want to write here since you get the point, it's beneficial for you.

    DON'T MAKE MISTAKE OF USING ADMOB MEDIATION! I ALREADY USED THEIR MEDIATION, AND TRUST ME, YOU'LL REGRET USING IT BECAUSE IT'S NOT EFFECTIVE. THEIR AUTOMATED OPTIMIZATION DOESN'T WORK, IT'LL ALWAYS PRIORITIZE ADMOB OVER OTHER AD NETWORKS EVEN IF OTHER NETWORKS ARE PROVIDING YOU WITH BETTER ECPM! THERE'S NO OPTION TO REMOVE ADMOB FROM MEDIATION CHAIN IF IT'S PROVIDING YOU WITH BAD ECPM, WHICH DEFEATS THE PURPOSE OF HAVING MEDIATION IN THE FIRST PLACE!

    Drop me a DM if you still face any problems with mediation, I'll help you out (IF I GET TIME).

    Another EDIT: People don't seem to get the idea of mediation. So, you have to link YOUR Admob/Facebook account to MoPub through Step 3 that I mentioned above. Mediation platforms act as a mediator/middleman who manage the ads that are shown to users. Ads are fetched from YOUR Admob and FAN and AdColony etc accounts, through MoPub, and then, the ad which has the best price for that impression is shown to users by Mopub, and money for that impression goes to the ad network whose ad was shown. So, 1 request is made by user, 3 ad networks filled it, but Facebook provided best eCPM for that impression, so facebooks ad was shown, so the money for that impression/click goes to your Facebook account.

    Another edit: Thanks to the anonymous person who gave me Santa Nice award. :D I'll maybe write the full detailed article about adding MoPub mediation in your app. Maybe YT tutorial or something since it's a lot easier.

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

    Kotlin vs Java

    Posted: 17 Dec 2019 03:32 AM PST

    Room �� Flow

    Posted: 17 Dec 2019 09:29 AM PST

    Reading file from androidTest assets not working

    Posted: 17 Dec 2019 11:53 AM PST

    Hi,

    I have a UI test that reads a csv file from androidTest assets folder, I used below Java code to read the file but something changed and now it can't read the file. Anybody has seen this behavior? Thanks!

    AssetManager assetManager = getContext().getAssets(); InputStream is = assetManager.open(csvFile); BufferedReader br = new BufferedReader(new InputStreamReader(is, Charset.forName("UTF-8"))); 
    submitted by /u/AndroidGuy01
    [link] [comments]

    Is anyone here using Jetpack's Navigation component in production?

    Posted: 17 Dec 2019 11:35 AM PST

    I've started integrating it in a pet project of mine and it's a been a bit of the pain.

    The default FragmentNavigator uses replace, so I built my own to use show/hide and to avoid the FragmentManager's backstack, since I want my Fragment's View to be alive when going back.

    I'm using remove when popping the backstack and I found this bug: https://issuetracker.google.com/issues/146359827

    With replace, each time the user switches tabs, the whole view is recreated and state is lost forever unless you persist it to disk.

    How are you guys handling bottom navigation? Are you using replace each the time the user switches tabs, or are you also using show/hide to keep the view state?

    I really like how Navigation can be defined via XML, the safe args plugin and the Library's API, but this "issue" makes me wonder how everyone is using it in production.

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

    I Want To Create Utility App For IOS, Android And Web, Where Do I Start?

    Posted: 17 Dec 2019 03:57 PM PST

    So far I have limited basic knowledge in C# and Unity, BUT I am willing to learn...I just need to know WHAT to learn.

    Here is the deal: I want to create a utility app that would be accessible via iOS (iPhones, iPads), Android devices and web.

    I could use Unity in theory, but super fast functioning and minimal size are absolutely crucial, so Unity will bloat my app and it will be unusable.

    So what would be the most universal language to learn, or at least where I could start to develop the utility app for both iOS and Android in parallel? Afterwards, I could try to figure out web.

    I'm ok with buying tutorials if needed.

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

    Organic VS External Traffic

    Posted: 17 Dec 2019 03:46 PM PST

    Hey devs,

    So I share my app in a lot of groupes on facebook that have people who are genuinely interested in it.

    But I am a bit curious is it better to provide a direct link to the app's Google Play Store page or just give them the name and the icon and let them find it by searching ?

    I am talking from the side of which is better in terms of getting picked by the algorithm, get suggested to more people, get a higher ranking ... etc.

    I couldn't find a fulfilling answer on Google so I wanted to hear from your experiences .

    Thank you all

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

    How to choose between Firebase and CometChat Pro

    Posted: 17 Dec 2019 11:22 AM PST

    Turn on Wireless hotspot automatically when connected to a certain WiFi network. (Will wifi tethering app require a rooted devices for G Pixel)

    Posted: 17 Dec 2019 11:11 AM PST

     I've got a winter recess from University and I'm hoping to fix a problem I've created for myself because I can only connect a certain amnt of devices to a WiFi connection. I want to be able to push a notification or automatically turn on my wireless hotspot when I connect to a network so a few of my devices connect to my phone when I'm near them. My phone allows wifi tethering, so it's great to not have to worry about large data fees and allowed me to create some niche entertainment setups. I'm a CS major who knows fair amount of Java and I've worked with Android Studio in the past so I think I can figure out a decent chunk of problems. I'm struggling to find one thing. Will this app require root access? I might have to figure this out as I go, but I do no the carriers usually don't allow Wi-Fi/hotspot tethering. Since the Google Pixel 3 allows this I'm hoping I won't have to build for rooted devices. 

    Either way, please let me know what you think and I'd love any advice! It should be simple enough, but will certainly take a chunk of googling.

    Tasker was my first thought, but it doesn't work...I think.

    tl;dr: Looking for advice on making an app to, at least, push a notification when the device detects a Wi-Fi network. Activating it will turn on the wireless hotspot.

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

    Avoid memory leaks when using Disposables in RxJava2!

    Posted: 17 Dec 2019 12:37 AM PST

    Index issue, Admob bans, Developer Account Bans,Apps crashing more for no reason, What other issues are you experiencing? Links to posts inside!!

    Posted: 16 Dec 2019 09:35 PM PST

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

    Total Downloads badge not updated in play store

    Posted: 17 Dec 2019 11:31 AM PST

    Yesterday or before yesterday my app passed the 50k downloads mark, but the badge still isn't updated in the play store. Does someone know how long it takes? Currently its stuck at 10k.

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

    I'd figure you guys would know, this app sometimes randomly opens, do I have a virus or something?

    Posted: 17 Dec 2019 02:37 PM PST

    Room - Flow

    Posted: 17 Dec 2019 10:43 AM PST

    Jetpack Navigation issue with Nested Graphs. How to restore the last position of the nested graph rather than starting point?

    Posted: 17 Dec 2019 09:50 AM PST

    So I am using Jetpack Navigation with a Bottom Menu for navigation between various fragments for the same activity. The whole app is one activity, each fragment is different information about a currently playing midi file.

    My Navigation graph starts with a nested graph that is used to present a list hierarchy (think something like adding albums, and selecting the albums you've added, then selecting the song. |Add Album | -> |Select Album | -> |Select Song|

    That graph is nested in the graph that uses the bottom menu like so:

    |Nested Content Selection Graph| -> |List of Song Sections| -> |Player View| -> |Track Mixer| -> |Settings|

    The NavigationUI is instantiated using NavigationUI.setupWithNavController(menu, navController)

    The problem is that I can't see a clear way to make sure that when the user hits the tab for content selection it goes back to the place in the nested graph hierarchy that they left off. I am assuming that this is due to my own inexperience with this as I don't normally do android development as much as C++, C, and Objective-C.

    Things I have tried:

    Adding a Destination Changed Listener - There seems to be no simple way to determine where you came from, and it seems that if I change the destination again in here, it will just trigger the listener. (This could work, but seems like not the best approach)

    I found a stack overflow post about making the needed menu items as "secondary" but this didn't change the behavior like it suggested.

    Overall, I am concerned about efficiency because already the navigation seems surprisingly slow so I am looking for a proper, efficient solution.

    Thanks.

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

    Separate apps for users / managers

    Posted: 17 Dec 2019 09:50 AM PST

    Hi guys, new to Android programming here, so sorry if this seems like an obvious question.

    I'm planning on making an application that should show different options depending on the type of the user.

    So a normal user will have limited access such as their pages and the normal program, while a manager would have access to database generated reports for example.

    The plan was to make a separate application for the managers so they can maximize usage without the risk of a non-manager gaining access.

    Any opinions or tips would be greatly appreciated

    Thanks

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

    2 interesting things about the Snapdragon 865 and Snapdragon 765. Why all flagship with these chips would support 5G and what's Android Identity Credential API?

    Posted: 17 Dec 2019 09:29 AM PST

    Android Intern Salary

    Posted: 17 Dec 2019 08:30 AM PST

    What's the typical salary like an Android intern? What's your desired salary?

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

    Setting up Koin for Android UI testing

    Posted: 17 Dec 2019 02:57 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel