• Breaking News

    [Android][timeline][#f39c12]

    Thursday, July 4, 2019

    It's really not a question of learning Java or Kotlin, it's more a question of learning Java or learning Java and Kotlin. Android Dev

    Developing Android Apps

    It's really not a question of learning Java or Kotlin, it's more a question of learning Java or learning Java and Kotlin. Android Dev


    It's really not a question of learning Java or Kotlin, it's more a question of learning Java or learning Java and Kotlin.

    Posted: 04 Jul 2019 10:22 AM PDT

    That's how it seems to me. I also wonder if Kotlin will forever be tied to Java. I realize it compiles to JavaScript and natively, but it sometimes seems restrained by the requirement it compile down to Java bytecode.

    Thoughts?

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

    Kotlin 1.3.41 Release

    Posted: 04 Jul 2019 03:35 AM PDT

    Huawei device killing my foreground service, even with dontkillmyapp.com's solution

    Posted: 04 Jul 2019 12:41 AM PDT

    Hi,

    I'm developing an app which is basically a location tracking software. When you start it, it saves locations and sending them to a server.

    The code is working for like 5 years now without any modification, without any errors.

    It is implemented with a simple foreground service.

    In the recent months I was getting user reported errors about the service stops randomly on Huawei devices. First I thought it is some kind of rare/new crash on newer androids but there was no error logs at all in Fabric.

    I tried it in a new Huawei device and for my greatest surprise, this phenomenon does really exists. Huawei devices (with EMUI) does really kills the foreground services after a couple of minutes.

    This is really really bad for my app, first of all, the users want to run this tracking app for long hours, and secondly, the recent months made Huawei be a popular choice amongs Android users. Like 10% of my user base has a Huawei device.

    I'm aware of https://dontkillmyapp.com/ It is a great website for getting information about this issue.

    I was tried their solution which is basically adding a wakelock with a specific tag to my service, so the Huawei's EMUI won't kill it.

    I've tried this in the following way, but my Huawei test device still kills my foreground service after some minutes.

    Code inside my Service:

    I basically aquires a wakelock in the service's onCreate callback.

    private void acquireLock() {

    if (wakeLock == null) {

    PowerManager mgr = (PowerManager) getSystemService(Context.POWER_SERVICE);

    if (mgr != null) {

    if (Build.MANUFACTURER.toLowerCase().equals("huawei")) {

    lockTag = "LocationManagerService";

    }

    wakeLock = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, lockTag);

    Log.i("MY_TAG", "tag:" + lockTag);}}

    if (wakeLock != null && !wakeLock.isHeld()) {

    wakeLock.acquire();//also tried with: wakeLock.acquire(1000*60*60*72); 3 days wakelock just in case.

    Log.i("MY_TAG", "wakeLock acquired!");}}

    @Overridepublic void onCreate() {

    acquireLock();

    }

    Please help if you can,

    Adam

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

    Philips Hue adaptive icon

    Posted: 04 Jul 2019 10:02 AM PDT

    A fusion between WorkManager and AlarmManager

    Posted: 04 Jul 2019 07:58 AM PDT

    Android Paging Library with Databinding

    Posted: 04 Jul 2019 01:49 PM PDT

    I struggled for several days implementing the Android paging library with databinding. I am not able to implement it with public existing sources. Is it possible to use Paging Library with Databinding and Binding Adapter ?

    My project on Github: https://github.com/DoomMortal/paging

    Could anyone give me a hint what I do wrong ? Any help will be appreciated.

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

    Google Unveiled its New Android Developer Policies: 5 major Updates rolled out

    Posted: 04 Jul 2019 03:01 AM PDT

    Let's take a close look at the updates made to Google's Android developer's policies in 2019:

    1. Privacy policies improved in Android Q

    -> Jam-packed with dozens of new features and functionalities, Android Q gets a valuable privacy update where the users will have more transparency and control over the personal data.

    1. There are no bots in the app review process

    -> After listening to developer's complaints, Google acknowledged two things: the time it takes in providing answers to the developers regarding their app comply with privacy policies or not, and cumbersome appeal process for making decisions on appeals is plagued with longer durations; the generic responses during communication gives the developers bad impression that decisions are automated with no human involvement alongside it's hard to reach out a person who could help in providing details about privacy policy.

    1. New developer's account will be evaluated more

    -> User's data safety is the prime concern for Google, but some developers repetitively violate the Privacy Policies due to which their accounts are suspended. Again, these developers trick the system by creating new accounts to publish unsafe apps.

    1. Restrictions on access to certain permissions

    -> Following Project Strobe, Google made an important announcement for a couple of Android applications that can ask the permissions to the users to collect, use and take the benefit of the phone and SMS data. Some of the apps made an attempt to avail the user's data through permissions that are actually not required.

    1. Permission restriction leads to consternation

    -> The Google initiative for strengthening the privacy protection for users has brought sizeable work of developers. The enforcement of new SMS and Call Log policies are the one that has raised the developer's frustration for the decision made as the valuable functionalities will be removed and the unclear, obtuse, and hard to precisely complete the permission declaration form for different use cases multiplied the dismay.

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

    WTF Android

    Posted: 04 Jul 2019 03:13 PM PDT

    Hi! Today I've watched "Declarative UI Patterns" and Romain Guy mentioned about how odd Spinner is. Long time ago this view was really spinning but today we would call it drop down menu. I was wondering about other SDK classes and behavours which are weird. Like in javascript you can find many examples of nonintuitive behaviors and bugs. Could you find something simmilar in Android? For me such WTF moment was when I was trying to request website with https on machine where were two domains attached to the same ip address. It came out that Apache HttpClient didnt support SNI extention from TSL. Solution was to change sites order in nginx configuraton.

    tl; dr what are Android WTF moments you have encountered?

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

    I wanna make an app about smartphones, but I can get mobiles thumbnails (just the standerd photo of the phone) from GSMArena or something and still add Admob to the app.

    Posted: 04 Jul 2019 03:05 PM PDT

    Amateur games

    Posted: 04 Jul 2019 09:24 AM PDT

    Hi, i enjoy playing amateur games made by starting developers and giving them feedback. Do you know any subreddit or site where new developers post their games? :)

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

    Android Enterprise discussion

    Posted: 04 Jul 2019 11:43 AM PDT

    Hello All,

    Is there a community forum or sub in Reddit where I can address questions about Android Enterprise ?

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

    5 things not to worry about when applying for developer jobs

    Posted: 04 Jul 2019 10:59 AM PDT

    Generating variable-size icons & assets instantly without software

    Posted: 04 Jul 2019 10:39 AM PDT

    How to ensure customer's purchase is visible across multiple devices?

    Posted: 04 Jul 2019 10:24 AM PDT

    Hi, I was wondering, have you ever encountered the following case?

    The customer purchase one-time in-app purchase, and he has multiple devices (same Google account)

    However, the purchase record is not awarded by the 2nd device, although we have tried our best effort, to clear the cache using the following way - https://stackoverflow.com/questions/56594713/refund-customer-in-app-purchase-but-billingclient-still-indicate-user-has-purcha

    Even restarting device doesn't help. If user click on purchase, server will prompt error, states that the item has already been purchased. But, the weird thing is, BillingClient.queryPurchases is not aware of such purchase.

    If you have encountered such case before, may I know how do you solve it?

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

    Android Studio dependencies suggestions

    Posted: 04 Jul 2019 01:23 AM PDT

    Hi, anyone knows if it's possible in Android Studio suggestions in Project Structure to show only update suggestions for final version there without alpha/beta versions?

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

    Continue with Java or move to kotlin?

    Posted: 04 Jul 2019 08:34 AM PDT

    Hey guys how are you i have 2 question on Android development, i took the AND from Udacity intermediate level and I finished it even though i learned alot i think im still missing alot what should i do should I do look for more courses or what ? Should I start learning kotlin or or stick with java if so can you give me good courses and video that can help me and thank you in advance

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

    The React Navigator�� Weekly for aspiring React Native pros: “React Native 0.60, understand the React Native bridge, securing RN apps & more”

    Posted: 04 Jul 2019 02:30 PM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel