• Breaking News

    [Android][timeline][#f39c12]

    Monday, April 1, 2019

    Weekly "who's hiring" thread! Android Dev

    Weekly "who's hiring" thread! Android Dev


    Weekly "who's hiring" thread!

    Posted: 01 Apr 2019 05:45 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Weekly Questions Thread - April 01, 2019

    Posted: 01 Apr 2019 03:57 AM PDT

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    Devs of Reddit, What is something that you learned a little too late in/about Android Development?

    Posted: 01 Apr 2019 12:12 PM PDT

    Android Studio 3.4 Release Candidate 3 available

    Posted: 01 Apr 2019 10:07 AM PDT

    Improving app performance with ART optimizing profiles in the cloud

    Posted: 01 Apr 2019 12:10 PM PDT

    Out and Includes Feedback from This Group: Top 17 Plugins for Android Studio

    Posted: 01 Apr 2019 05:17 AM PDT

    [Question] Is R8 ready to be used on production, Or I should stick with ProGuard for a while?

    Posted: 01 Apr 2019 07:08 AM PDT

    Right way to setup Java 8 targeting Kotlin app?

    Posted: 01 Apr 2019 03:13 AM PDT

    I'm about to start a new app project (MinSdk 21) and would like to setup my build to make use of Java 8 bytecode. After /u/JakeWharton's Twitter post and the responses I am still wondering what steps are necessary to allow the D8 dexer to use it's full potential.

    Currently my build.gradle looks like this:

    android { compileSdkVersion rootProject.compileSdkVersion defaultConfig { minSdkVersion rootProject.minSdkVersion } sourceSets { main.java.srcDirs += 'src/main/kotlin' } compileOptions { sourceCompatibility = '1.8' targetCompatibility = '1.8' } kotlinOptions { jvmTarget = '1.8' } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 

    Do I really have to set source-/targetCompatibility and Kotlin jvmTarget?

    Is it right to set kotlin-stdlib- to jdk8?

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

    Dependency injection in large project

    Posted: 01 Apr 2019 05:39 AM PDT

    We have project with 50 modules, it is quite big. We use Koin as dependency injection (I know it's service locator, but that's not the point here), mostly used for injecting repositories and viewholders. I recently updated it to Koin 2.0 and it got a lot faster, which is great, BUT! I can't help it to think it would be a lot faster if we use some DI like Dagger2.

    So my question is: Is it worth it to refactor it to Dagger2? How should I start? It looks so complex that I could find myself struggling where is the mistake for multiple hours on a project this size. So what do you think?

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

    Swift Optional and Kotlin Nullable— A comparison

    Posted: 01 Apr 2019 03:38 AM PDT

    Why some Jetbrains plugins can't be found in Android studio?

    Posted: 01 Apr 2019 06:03 AM PDT

    I want to use a new theme (Gray Theme specifically). I see it's compatible with Android studio on JB's page. But I can not find it in the plugin settings?

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

    Clock reset when devices run out of battery: are there any mitigation strategies?

    Posted: 01 Apr 2019 05:41 AM PDT

    When Android devices run out of battery, they lose their clock very quickly (well, at least some of them). It happens either instantly, or after just several minutes or hours. Most of the time it's not a big issue because you can get the time from the network once the device is powered again, but in some cases you can't rely on this to happen (e.g. outside of cell coverage completely or devices without any connectivity at all).

    The app I'm working on right now falls into the later problematic category.

    I guess I can't do anything about the loss of clock on battery drainage, therefore my goal is to prolong the battery life as much as possible when disconnected from charger.

    The app is on-premise and runs in kiosk mode. I thought about completely shutting the device off at some battery threshold, but looks like it's impossible to do without root. Then I thought about sending the device to sleep, but I can't figure out how to do that either. Now I'm left with lowering the brightness, disabling parts of the functionality, etc. None of this sounds very promising TBH.

    I'd be grateful to get some ideas from more experienced devs. Thanks.

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

    How to modify pagedlist item when the datasource is backed by Room Database?

    Posted: 01 Apr 2019 07:35 AM PDT

    Hi, I am trying to implement pagination in my app and I want to inject items to the pagedlist provided by Room based on some business logic and based on that recyclerview will show different types of item. But apparently you can't modify a pagedlist's size. How do you guys handle that??Any help is appreciated...

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

    SQLite Database

    Posted: 01 Apr 2019 02:48 PM PDT

    Hello everyone, I was working on an SQLite database using Room and Kotlin. I have a to-do list and I used the name of the "to-do" as the primary key. I have now changed the "to-do name" to be a regular column and tried to use "_ID" as the primary key but now the "name" gives me a "This annotation is not repeatable". I've already tried to rebuild the project but it's not working, any tips of what I might be doing wrong?

    edit: This is also a project app that I would like to put on the PlayStore. In addition to me changing the database now, let's say people have the app downloaded on their phone, how would you go about changing the database structure for users without messing up their data? New to Android and mobile in general so any information is valuable to me, thank you!

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

    A/B testing Play screenshots, part time result: [-1.7% -> +23.1%] - Should I apply?

    Posted: 01 Apr 2019 03:18 AM PDT

    A/B testing Play screenshots, part time result: [-1.7% -> +23.1%] - Should I apply?

    Hi,

    I've been running an A/B test for my app's Play store screenshots.

    The new variant gets [-1.7% -> +23.1%] more users with 90% predictability.

    But this is just a part time result, the Store still tells me "there are not enough data yet" to finish the experiment.

    Screenshot here, the blue line which is the new variant were always top of the original screenshots since about 1 month now.

    https://i.redd.it/b1o5wntkomp21.png

    However I've read in many blogs that I should never apply a new variant if a test is not yet finished,

    also if I see any negative value I shouldn't apply the variant.

    My thought is that the +23,1% so much bigger then the -1,7% that I could easily apply this, the blue line was never for a second below the standard variant.

    What do you think?

    Thanks in advance.

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

    New subreddit for Google Cast (Chromecast) development

    Posted: 01 Apr 2019 07:42 AM PDT

    SQLite to Room migration

    Posted: 01 Apr 2019 03:44 AM PDT

    Hi, I've an app which I want to migrate from SQLite to Room, one table at a time (no change in schema). I've read articles where they copy the data from SQLite Table to the Room table. This seems pretty risky as I've few tables having crucial data which if failed to copy can be bad for the app.

    Any suggestions on how to proceed with the migration other than this? I've just tried keeping the table names and DB names same and incremented Room DB version to +1 of SQlite and have also provided a migration function with empty body (since there isn't any change). App builds but while querying from DB, it says "Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number"

    Any help will be super appreciated! Thanks!

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

    Android Profiler showing 0 duration for GC

    Posted: 01 Apr 2019 10:58 AM PDT

    I'm profiling my app and I want to measure how often the GB is triggering, how long it's running and how much memory is freed. I can see the garbage collections happening on the profiler but their duration is 0 and I cannot see them in logcat. Could someone help me? https://imgur.com/a/oJgBYCa

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

    Building Game made with Eclipse

    Posted: 01 Apr 2019 10:53 AM PDT

    Almost 3 years back i made a game using AndEngine and Eclipse and later i moved to android studio and after some months i totally stopped working with android and totally focused in web development.

    Now i miss the game i made, i didn't kept it in google play because of $ issue and i can't output final build using Android Studio as i dont know how to do all the things to setup eclipse project in Android studio.

    So, If any body wants to help me by generating output of that game, i can provide you source code, someone with eclipse who can setup andengine and generate final build of it?

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

    Need help creating a "Fill in the blanks" kind of UI

    Posted: 01 Apr 2019 10:35 AM PDT

    So this is basically EditTexts, Spinners inline with TextView.
    Have already considered FlowLayout but it has issues like EditText not flowing properly.

    Also looked into spans, which might work for something like a spinner, but I'm pretty clueless on how to make it work with EditText.

    Any help is appreciated.

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

    I got a warning email from admob about "LAYOUT ENCOURAGES ACCIDENTAL CLICKS - INTERSTITIAL ADS" although I DO NOT USE INTERSTITIALS. I did in the past but I removed them, also removed the ids, now only use video reward. Has this something to do with april's fool? XD

    Posted: 01 Apr 2019 12:37 PM PDT

    How do I change the box colour and also the colour of hint which appears beside box???

    Posted: 01 Apr 2019 11:47 AM PDT

    [Android library] FillingButton - replace typical onClickListener with this library.

    Posted: 01 Apr 2019 03:12 AM PDT

    Automating Android development with Bitrise, an ASMR tutorial

    Posted: 01 Apr 2019 06:34 AM PDT

    #12 RxJava - Observable fromCallable - Being Lazy

    Posted: 01 Apr 2019 06:28 AM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel