• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, April 30, 2019

    Coroutines on Android (part I): Getting the background Android Dev

    Coroutines on Android (part I): Getting the background Android Dev


    Coroutines on Android (part I): Getting the background

    Posted: 30 Apr 2019 12:26 PM PDT

    Measuring Kotlin Build Performance

    Posted: 30 Apr 2019 09:18 AM PDT

    How to combat negative review fraud

    Posted: 30 Apr 2019 05:55 AM PDT

    I have been getting daily a 1 star-ratings for over a month now. I believe most of them to be fraudulent but because they are coming in once a day from all over the world it is hard to proof.

    The reviews usually contain a single sentence with either "Fake App" or like today "worst app" and not much else

    My app converts video formats using ffmpeg and I am certain that it works. My ANRs and crash rate are minimal ( albeit not zero bc I can't trace issues when it crashed in the C code, not enough info for me to debug ) Zero issues in the Java code.

    I have 500k+ downloads and > 1250 reviews. 50% of the ratings have an app version of "Unknown" I get mostly positive ratings coming from Western countries and Europe, and negative ones mainly from Asia and South America.

    I know that not all 1 star ratings will be fake but my assumption is that a lot of them are.

    I spent a lot of time testing all different types of usages ( video and audio formats ) and I think it does what is supposed to be do the right way. I have always fixed issues when I received feedback with some concrete example.

    QUESTION: After researching I came up empty. So I ask here, what can I do to counter these fake negative reviews ?

    Or the other way around, how do I get more genuine positive reviews ?

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

    So I happened to find a paw icon on my messages when I was scrolling through my apps. What does it mean?

    Posted: 30 Apr 2019 10:51 AM PDT

    Can I avoid putting in my address for my public merchant profile?

    Posted: 30 Apr 2019 12:55 PM PDT

    To sell in-app purchases, I'm required to submit an address which is publicly visible. I've been reading around a bit and many people recommend only entering the country, or perhaps down to the city. However, if I try that, the remaining fields read "[...] is required". Would it be a bad idea to fill these fields in with dashes or "N/A"? A few people recommend putting in a false address, but that sounds like it could go wrong in numerous ways.

    In case this is something that may vary from place to place, I am in the UK. I see PO boxes aren't accepted, though considering I'm expecting few to no sales it wouldn't be worth the investment. In fact, I'm not even planning to offer microtransactions right now, but would like to have the account details set up so I can quickly implement them at a later date.

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

    LiveDataReactiveStreams: Where RxJava meets LiveData

    Posted: 30 Apr 2019 07:39 AM PDT

    Implementing the Monzo Plus card selection animation

    Posted: 30 Apr 2019 02:53 PM PDT

    admob invalid activity appeal

    Posted: 30 Apr 2019 04:20 PM PDT

    Hello, we have issue about our AdSense account. It was shutted because of the invalid activity appeal. We filled the appeal form, however it was rejected many times. Later than, we open a new account and integrate our app to this new account. But now this new account is shutted because of the same reason. We don't know why this happening and we dont think we have ruined any Google policy. So do you have any idea what we can do toe rescue our account or protect our new account? Thank you in advance...

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

    Today is the last day to update old-style Play Store icons (from tomorrow, only new-style will be accepted)

    Posted: 30 Apr 2019 11:18 AM PDT

    Being a good Google Play developer, I rushed to create and upload new style icons to the Developer Console pretty soon after it was announced & available.

    But of course, the changes to crop the images have not been rolled out. Only the upload UI is ready. So my app sat there with an ugly uncropped rectangular icon for a few days. It's clear that Google is not ready to roll this change out right now, and it's probably best to wait it out until June 24.

    So I decided to revert the icon (by re-uploading the old icon again), and noticed that today is the last day to do this. Tomorrow onwards, any icons uploaded will be automatically assumed to be the new format.

    I'm assuming this probably means they will have the cropping infrastructure in place by then, but I'm not sure. FYI in case you want to keep using the old icons until it's ready!

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

    Mini Project Review

    Posted: 30 Apr 2019 03:11 PM PDT

    I'm new and trying my best to learn all of the best practices (so overwhelming) so I made a little app that just pulls data from a Reddit post using retrofit, while doing my best to follow MVVM. Now usually when I show people here my code I get crazy useful advice that I would of never even considered, and so I figured having some pro's check out my code would be nice.

    GitHub: https://github.com/That1guy17/RedditPost

    Again I am new so if I did anything weird at all that you would do differently plz tell me <3

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

    MVVM - API communication using authentication (Retrofit2 + Jetpack)

    Posted: 30 Apr 2019 02:33 AM PDT

    Hey all,

    as per my recent post, I finally made the switch to a MVVM layout (backed by Repositories and Retrofit2 for the networking).

    However I seem to run into a problem, that keeps coming up and I can't really find a valid solution for this in the interwebs.

    My current structure is the following:

    • I have a Usermodel which is filled with information on registering with the API.
    • The API access is regulated by access tokens.
    • Whenever you need to call the API, you need to pass along a token - this is currently achieved on a global app level via an injector of retrofit2.
      • This is what I want to change, according to the Repository concept only the User repository should know about its user and the underlying acccess token.
      • However I will need said access token everywhere else in the app for calling the API and getting the data.

    My question now is: How do I go about having the User model (including the info to obtain accesstokens) available to the other repositories, which supply the my other activities with data?

    Thanks in advance to everyone here - you guys are amazing!

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

    how should I retry after exception in coroutine in Android?

    Posted: 30 Apr 2019 05:29 AM PDT

    Hello, I am really happy that I switched my long running tasks, which constantly produce results to UI thread to coroutines. It improved performance and decreased memory usage by 3 times and all memory leaks disappeared compared to AsyncTask or regular Threads in Android. The only problem remains is that, I don't know how should I restart my long running operation after exception has occurred at some time...

    I feel I did not understand exception handling in coroutines at all after reading tons of article. Let me know how can I achieve desired behaviour.

    1. I have coroutine scope in fragment(will move to VM in near future).

     lateinit var initEngineJob: Job override val coroutineContext: CoroutineContext get() = initEngineJob + Dispatchers.Main 

    1. Long running task with async/await.

    fun initWorkEngineCoroutine() { launch { while(true) { val deferred = async(Dispatchers.Default) { getResultsFromEngine() } val result = deferred.await() if (result != null) { //UI thread draw!!.showResult(result) } } } } fun getResultsFromEngine() :Result? { result = // some results from engine, which throws exception at some times return result } 

    i don't know where should I put try catch. I tried to surround deferred.await() with try catch, but I could not call same method in catch block to retry long running task. I tried SupervisorJob(), but no success either. I still could not call initWorkEngineCoroutine() again and start new coroutine...

    Help to solve this issue finally :)

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

    WebView does not properly load website

    Posted: 30 Apr 2019 11:17 AM PDT

    This is what the site looks like when I get it to load: https://imgur.com/a/jsFSZbz

    This is my code that loads the url and stuff: https://pastebin.com/6X5hHUB3

    I want this page to appear: https://www.supremenewyork.com/mobile

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

    Cross platform / Hybrid recommendations 2019

    Posted: 30 Apr 2019 08:42 AM PDT

    I'm looking to launch a cross platform (ios/android) mobile app. I have experience with Adobe Phonegap. When I was at work I did C# ASP.NET MVC web applications.

    The mobile app I have in mind will have logins, upload photo, upvote system (like reddit).

    I know a native apps would be better but I don't have the time as this is a solo app.

    I was considering React Native, Flutter, Kotlin, or Adobe Phonegap again. I think it would look better on my resume if I didn't do Phonegap again.

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

    What's the difference between terminating the app and force stopping it?

    Posted: 30 Apr 2019 06:49 AM PDT

    Hello,

    what is the difference between force stopping the app from settings and terminating it from the recent app screen? Is it the same thing?

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

    How to make the scrolling smoother inside the Android Studio Editor

    Posted: 30 Apr 2019 11:26 AM PDT

    Does anybody know if there is a way to make it scroll by line? Currently, it skips like 20 lines in the editor (for example in the "all attributes" tab) and it's really frustrating when you're looking for something. I looked everywhere in the settings and didn't find anything.

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

    NestedScrollView + RecyclerView

    Posted: 29 Apr 2019 06:38 PM PDT

    I've successfully achieved this effect using NestedScrollView + RecyclerView. I'm applying padding to the NestedScrollView + clipToPadding=false to get that layout. What's interesting here is that I'm not using any isNestedScrollEnabled = false in any of the recycle views as they are actually recycling.

    Pretty much the layout looks like this, this is inside a fragment.

    <?xml version="1.0" encoding="utf-8"?> <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/nestedScrollView" android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <TextView ....../> <androidx.recyclerview.widget.RecyclerView android:id="@+id/topAlbumsRecyclerView" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/default_item_margin" android:orientation="horizontal" app:layoutManager="androidx.recyclerview.widget.StaggeredGridLayoutManager" app:spanCount="2" tools:listitem="@layout/item_home_album_small" /> ..... </LinearLayout> </androidx.core.widget.NestedScrollView> 

    This fragment is contained here:

    <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?primaryColor"> <com.aurelhubert.ahbottomnavigation.AHBottomNavigationViewPager android:id="@+id/libraryViewPager" android:layout_width="match_parent" android:layout_height="match_parent" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <com.paolovalerdi.abbey.views.StatusBarView android:id="@+id/statusBar" android:layout_width="match_parent" android:layout_height="@dimen/status_bar_padding" /> <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" style="@style/Toolbar" android:elevation="0dp" app:contentInsetStart="0dp" tools:ignore="UnusedAttribute"/> </FrameLayout> </LinearLayout> </FrameLayout> 

    The viewpager is where the fragments are created and as you can see there's nothing fancy here. This how it looks like

    I've already researched and I know that NestedScrollView causes this but I'm curious about why this works, let's say "inside a fragment" and not when I'm using this same approach in other cases, let's say another activity (even another fragment)

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

    How can I grey out a Notification Channel?

    Posted: 30 Apr 2019 01:25 PM PDT

    What's the best way of setting up a private cloud storage for each user?

    Posted: 30 Apr 2019 01:06 PM PDT

    I'm just a beginner developer and was wondering how some apps allow users to backup some of their data on a private cloud and also share access to others?

    e.g. a note taking app where user might have some text files saved on their device but also has the option to save a backup copy in a cloud storage only they (and other authorized users) can access

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

    How can I access and use the built in keyboard click sound

    Posted: 30 Apr 2019 12:57 PM PDT

    Pretty new to android stuff.

    I am attempting to code a little app for my grandchildren, and one thing I want to be able to do is have the click sound played (poss the same one as is used when keyboard is tapped) each second as a counter is timing down.

    I have coded the countdown timer which displays correctly, but I would also like a click to be heard as each second passes.

    How do I access any of the built in Android sounds using Kotlin please?

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

    List of Apps Removed from Google Play Store

    Posted: 30 Apr 2019 08:29 AM PDT

    Android Dev Blog: Improving the update process with your feedback

    Posted: 30 Apr 2019 12:11 AM PDT

    Is a Certificate necessary.

    Posted: 30 Apr 2019 05:16 AM PDT

    I'm currently taking nanodegree for android dev in Udacity for free. But my dad insists that I pay for the course and get the certificate telling me that it's the only thing that make people believe I know android development and learning without the certificate is just a waste of time. I seriously don't have a clue what to do so I came here. Please help me out guys.

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

    Blocking threads, suspending coroutines (I did enjoy this a lot)

    Posted: 30 Apr 2019 08:18 AM PDT

    Stories of mom entrepreneurs that will inspire you

    Posted: 30 Apr 2019 11:23 AM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel