• Breaking News

    Thursday, November 28, 2019

    Android Dev - Google Just Terminated My Google Play Publisher Account In One Hour After 10 Years Of Loyal Service | Android pub

    Android Dev - Google Just Terminated My Google Play Publisher Account In One Hour After 10 Years Of Loyal Service | Android pub


    Google Just Terminated My Google Play Publisher Account In One Hour After 10 Years Of Loyal Service | Android pub

    Posted: 27 Nov 2019 08:29 PM PST

    Google Play is unbelievable, first 2 apps are the same app (reskin), 3, 6 and 7 are also reskins, and #2 is the owner of #4

    Posted: 28 Nov 2019 07:29 AM PST

    Okay, I'm out! How best to close things down?

    Posted: 28 Nov 2019 01:53 AM PST

    I received three emails at midnight last night about app suspensions, with the dreaded words "Additional suspensions of any nature may result in the termination of your developer account, and investigation and possible termination of related Google accounts."

    All my personal stuff runs through Google, so I can't allow this to happen. Time to close it all down, at least until this platform is safe to use again.

    I've unpublished all my other apps. In my console I now have three suspended, six unpublished and one draft. With nothing Published, am I safe from account termination? Or do I need to actually delete everything? I can't immediately see a way to close my developer account entirely - is there a way to do that?

    If I need to shut everything down, it'll probably be fifteen hours or so before I can do that, because I'm currently at work. Do you think that's risky?

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

    DAGGER 2 Tutorial Part 1 Key Insights, Essential Perspective

    Posted: 28 Nov 2019 06:27 AM PST

    Android Dev books? Learning resources that are specifically books

    Posted: 28 Nov 2019 04:26 AM PST

    Hello all,

    Apologies if this has been a thread in the past, but if it was maybe the answer has changed now due to constant android ecosystem updates and changes etc...

    But I was wondering if you all had any really decent, comprehensive book suggestions for learning android development? from 0 to hero...

    Hopefully this book is relatively recent and is mostly Kotlin oriented but actually I guess that doesn't matter too much. But hopefully covers things that are vital to learn in regards to android development now, like the new best practices, current best libraries to learn and the current best architecture patterns? Just to name a few off the top of my head? I guess im trying to say the book should be as up to date as possible...

    Hope this makes sense, would love to hear all and any suggestions as I need to get a good full way of really learning and understanding this stuff...

    Thanks all!

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

    How to create a flippable activity?

    Posted: 28 Nov 2019 02:46 AM PST

    Please take a look at this demo:

    https://www.youtube.com/watch?v=zNRPjS53m5w

    The listview is flippable. If you swipe it, it will be folder exactly on the middle.

    I want to achieve that effect, but on the activity level. Well pretty much like Flipboard,

    Is there any open source library for this purpose?

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

    Facebook Account Kit blocking users

    Posted: 28 Nov 2019 12:58 AM PST

    Facebook Account Kit stopped working (including WhatsApp).

    All our users are getting messages from Facebook that they are blocked.

    Is this happening to anyone else? We've been preparing for Dec. 9 not the end of November!

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

    One of the most annoying things in Android Studio!

    Posted: 27 Nov 2019 10:25 AM PST

    Navigation component question

    Posted: 28 Nov 2019 06:52 AM PST

    I'd like my fragment that opens from NavigationView (NavView has NavigationController as listener), to make fragment Single Top || to pop fragments before him?

    I'm trying to achieve this below, over nav graph

    R.id.thoughtsFragment -> {
    navController.popBackStack()
    navController.navigate(R.id.thoughtsFragment)
    }

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

    DAGGER 2 Tutorial Part 2 Component, Module and Essential Applications

    Posted: 28 Nov 2019 06:38 AM PST

    Hello there! I am new to Android programming and just applied for a job and the company that called me for interview said that they mostly work in Cordova. I have just learned basics with Java. How much Cordova is recommended in this time? I haven't much heard anyone working in Cordova these days?

    Posted: 28 Nov 2019 02:19 AM PST

    Any advice

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

    Can't get through Google API Billing

    Posted: 28 Nov 2019 06:03 AM PST

    Hello there! I am having an issue with the billing part of Google Directions API , it says "your card doesn't support automatic recurring payments" , I have tried disabling the 3-D security but i am still facing the same problem, any saviours?

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

    Can I hide something to win in my app on Google Play?

    Posted: 27 Nov 2019 07:00 PM PST

    I want to hide a reward somewhere in my app for the first user who will solve it. Is something like this allowed on Google Play?

    I know this could attract more users that would be interested not in the app but only for the reward and that's why I'm not sure if this is OK.

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

    Any way to prioritize a specific flavor over the other on the IDE

    Posted: 28 Nov 2019 01:38 AM PST

    We have 2 flavors of the same app. Every now and then (when I start the IDE), the IDE chooses one over the other , and since I don't notice it, I accidentally build&run the wrong one.

    I thought it was because of the order of the flavors on the build file, or even the name that we chose, but after checking both of those, I think it's about the package name, which is something I can't change.

    Is there any way to tell the IDE to prefer one flavor over the other?

    It's really annoying...

    submitted by /u/AD-LB
    [link] [comments]

    getting object id instead of object

    Posted: 28 Nov 2019 05:04 AM PST

    Add Custom Theme to app

    Posted: 28 Nov 2019 04:03 AM PST

    How am I able to add new themes to my app now that Starting with version 3.3, Theme Editor is no longer included with Android Studio. Do you guys have any tutorials on this?

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

    AOSP prebuilt apps

    Posted: 28 Nov 2019 03:24 AM PST

    Hello everyone:

    I have a client that needs an application that will interact with HAL service. But the client, want this application as prebuilt application.

    Is this possible? How to pre-compile the application with impl libraries created by hidl? I'm trying to search any online information in this subject and I can't find anything, without being create inside the AOSP code.

    Thanks all for your support

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

    Should ViewModel functions trust the parameter objects?

    Posted: 28 Nov 2019 01:31 AM PST

    Hi, im toying about with an idea, if each layer or boundary between state holders should check the call parameters.

    What it applies to what we do daily is for example ViewHolder -> Fragment -> ViewModel communication.

    ViewModel owns its State, and emits it to the UI, which renders it, but also provides clicks back to the ViewModel

    Should ViewModel function have a Item parameter, based on which some logic is executed, or just a id, based on which the Item is looked up in its state and then logic based on that Item executed?

    TLDR

    ``` class ViewModel { private var messages

    fun messageClicked1(message) { if message.hasParentMessage navigator.goToA else navigator.goToB }

    fun messageClicked2(messageId) { val message = messages.find { it.id == messageId } ?: return if message.hasParentMessage navigator.goToA else navigator.goToB } } ```

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

    What are your limits at your work?

    Posted: 27 Nov 2019 03:19 PM PST

    I am at a point in my job where I ve been working 80+ hours a week to finish a project and I think I am reaching my limit. Because of my economical situation I cannot leave this job without first securing another one. But I am pushing myself way to hard and I dont I will last for too much longer.

    Has this or something similar happen to you? If yes how did you handle it?

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

    Anemic Repositories, MVI and RxJava-induced design damage, and how AAC ViewModel is silently breaking your app

    Posted: 27 Nov 2019 10:38 AM PST

    Is there any way to set android:allowBackup to false for debug, and true for release?

    Posted: 28 Nov 2019 12:14 AM PST

    It's just that sometimes it could behave in a weird way while developing, as things change...

    Searching the Internet, I've noticed that others also found it annoying (like here).

    If this is possible, I'd like to ask if it's possible to do it based on where I develop. On my IDE, I actually prefer it to stay "true", but for some of my colleagues, they would want it to be "false".

    submitted by /u/AD-LB
    [link] [comments]

    Any Android developer has any interest in developing apps for the lg second screen? Maybe controllers, keyboards, etc?

    Posted: 27 Nov 2019 11:15 PM PST

    I have some Kotlin code and I cannot assign a value to LiveData variable while using launch() scope but can assign value to LiveData using runBlocking(). Also tried using suspend function and postValue() but I am still getting the same result.

    Posted: 27 Nov 2019 11:09 PM PST

    I have a LiveData variable that I want to assign a value to after receiving a response from a HTTP request. I assign this value inside the launch {} scope. However, when I test the code to see that the value has actually been assigned, the test fails stating that the value is null. I have tried another option which is to use runBlocking {} scope instead of launch {} scope and my test case passes. The library used for networking is Retrofit

    Below is the code that uses launch() and makes the test case fail.

    private var _state = MutableLiveData<State>()

    val state: LiveData<State>

    get() = _state

    private var job = Job()

    private val uiScope = CoroutineScope(job + Dispatchers.Main)

    init {

    executeRequest(....)

    }

    // Test cases fails with this function

    private fun executeRequest(params) {

    uiScope.launch {

    val deferred = repository.getApi()

    .requestAsync(params)

    try {

    val response = deferred.await()

    _state.value = StateSuccess(response)

    } catch (e: Exception) {

    _state.value = StateError("Failure: $e.message")

    }

    }

    }

    Below is the code that uses runBlocking {} and makes the test case pass.

    private var _state = MutableLiveData<State>()

    val state: LiveData<State>

    get() = _state

    private var job = Job()

    private val uiScope = CoroutineScope(job + Dispatchers.Main)

    init {

    executeRequest(....)

    }

    // Test cases passes with this function

    private fun executeRequest(params) {

    runBlocking {

    val deferred = repository.getApi()

    .requestAsync(params)

    try {

    val response = deferred.await()

    _state.value = StateSuccess(response)

    } catch (e: Exception) {

    _state.value = StateError("Failure: $e.message")

    }

    }

    }

    Why is the launch() not assigning the value to the LiveData variable?

    I have tried other options such as the code below

    private fun executeRequest(params) {

    uiScope.launch {

    withContext(Dispatcher.IO){

    val deferred = repository.getApi()

    .requestAsync(params)

    try {

    val response = deferred.await()

    _state.postValue(RESPONSE)

    } catch (e: Exception) {

    _state.postValue(StateError("Failure: $e.message"))

    }

    }

    }

    }

    Here is the test case

    And here is the test case

    val viewModel = MyViewModel(fakeClientRepository)

    val observer = Observer<State> {}

    try {

    viewModel.state.observeForever(observer)

    assert(viewModel.state.value == StateSuccess("success"))

    } finally {

    viewModel.state.removeObserver(observer)

    }

    And making execute() a suspend function but I am still getting the same result. I'm a beginner at both Kotlin and Android so I am totally lost as to why this isn't working.

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

    MagicTip - simple as fuck

    Posted: 27 Nov 2019 10:30 PM PST

    No comments:

    Post a Comment