• Breaking News

    Sunday, May 3, 2020

    Android Dev - Paid app refunded thrice??? I thought you could only refund once.

    Android Dev - Paid app refunded thrice??? I thought you could only refund once.


    Paid app refunded thrice??? I thought you could only refund once.

    Posted: 03 May 2020 05:10 AM PDT

    Android distribution dashboards are updated!

    Posted: 03 May 2020 04:48 AM PDT

    Today we celebrate 1 year since we release the first version of our app and this is the active devices stats evolution (organic, ph and google ads)

    Posted: 03 May 2020 04:17 AM PDT

    Why is Kotlin better than java?

    Posted: 03 May 2020 06:50 AM PDT

    Play console weird stats - Part N

    Posted: 03 May 2020 03:18 AM PDT

    So I have seen many weird play console posts here but I found something bizarre with one of my apps today. In one of my app, Total number of installs (Lifetime) is 167k and Total number of uninstalls(Lifetime) 168k. Also, Active devices (Lifetime) is 43k. Numbers don't quite add up.

    Installs
    Uninstalls
    Devices

    Has anybody faced/seen this in any of your apps before? was just curious if I'm the only one.

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

    Google AdMob duplicate account issues.

    Posted: 03 May 2020 01:36 AM PDT

    I am getting duplicate account issue even though I haven't created any other account. My adsense account is still in the process of getting setup, payments page in admob shows only one user (me). I'm not understanding which account are they referring to and I still haven't even linked my app from admob. PS - Using separate email ID for admob account now cz I had got same error on my developer account i used on play store, hence cancelled it and created a new one.

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

    A question about XML code.

    Posted: 03 May 2020 07:49 AM PDT

    <fragment android:id="@+id/nav\_host\_fragment" android:name="androidx.navigation.fragment.NavHostFragment" android:layout\_width="0dp" android:layout\_height="0dp" app:defaultNavHost="true" app:layout\_constraintBottom\_toBottomOf="parent" app:layout\_constraintLeft\_toLeftOf="parent" app:layout\_constraintRight\_toRightOf="parent" app:layout\_constraintTop\_toTopOf="parent" app:navGraph="@navigation/nav\_graph" />

    So I know that using @+id will create a resource file inside R.java but after I ran the code above, I couldn't find any file named "nav_host_fragment". Any reason why?

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

    I'm trying to get install apks and run them, something in the os is blocking.

    Posted: 02 May 2020 09:41 PM PDT

    [Android/Kotlin] Flutter Plugin to get access to Packagemanager

    Posted: 03 May 2020 07:21 AM PDT

    Following this guide: https://stackoverflow.com/questions/2695746/how-to-get-a-list-of-installed-android-applications-and-pick-one-to-run Somehow the `getPackageManager` is unresolved. Can someone explain to me, why?

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

    Trash Documentation

    Posted: 03 May 2020 07:17 AM PDT

    The official android developer documentation is garbage, you work though the code examples only to find that they don't work because they are incomplete, Garbage. Does anyone have a better source?

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

    Do Google allow private blockchains in Android apps?

    Posted: 03 May 2020 07:04 AM PDT

    Do Google allow private blockchains in Android apps?

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

    LiveData not updating

    Posted: 03 May 2020 07:00 AM PDT

    I'm playing around with location tracking and getting stuck at getting livedata to update when I'm inserting new locations into my database.

    I'm firing off location tracking through the click of a button here

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/ui/LocationUpdateFragment.kt#L55

    My view model calls the repository and gets a runId back. I store the runId in a MutableLiveData property. The idea is that I update the id when I stop and start a new run.

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/viewmodels/LocationUpdateViewModel.kt#L40

    In my repository I create a new run using my runDao to get a unique id.

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/data/LocationRepository.kt#L56

    That id is passed on to my LocationManger which attaches it to the intent used to invoke my LocationUpdatesBroadcastReceiver so it can store the locations in my database under the proper runId

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/LocationUpdatesBroadcastReceiver.kt#L43

    All of the above works just fine. My database is populated with with correct data. But when I try to observe it fails.

    In my LocationDao I select all locations based on a runId

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/data/db/LocationDao.kt#L13

    I call that method from my LocationRepository

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/data/LocationRepository.kt#L33

    In my viewmodel I create a property called locations which I want to observe in my fragment

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/viewmodels/LocationUpdateViewModel.kt#L28

    But in my fragment I only get 1 entity back. I was under the impression that inserting a new row into my database would trigger a refetch of the data.

    https://github.com/tonsV2/run-tracker/blob/master/app/src/main/java/dk/fitfit/runtracker/ui/LocationUpdateFragment.kt#L39

    Any clue about what I'm doing wrong?

    Thanks for reading this far :-)

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

    Deep Dive into Activity Results API — No More onActivityResult()

    Posted: 02 May 2020 05:35 PM PDT

    Multiple Publisher accounts on Play Store.

    Posted: 03 May 2020 03:40 AM PDT

    I have an account where I publish an app. I cannot change the name of app and publisher account because I only want to associate that account with apps related to a single product.

    So, I want to create another publisher account ofcourse with another email id for some other ideas that I have but my doubts:

    - Will using the same PC for developing and publishing apps for separate accounts a good idea.

    - If one of the publisher account gets suspended, can it affect other account's presence/apps?

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

    Can someone explain to me these stats?

    Posted: 03 May 2020 02:39 AM PDT

    Can someone explain to me these stats?

    I was just exploring the Android Vitals and realized that my app warm startup time is 21% more than the median. So I went into further details and came across this graph.

    https://preview.redd.it/ct3qmqgvriw41.png?width=1516&format=png&auto=webp&s=f38d7de4cf533b0974c14507121e99e69148a219

    The Y-axis shows sessions (which I don't know what Google is calling a session) and on the X-axis it shows startup time. Which is given in milliseconds.

    Now the problem is, if I hover over any bar, it shows me the time span in milliseconds that my app took to start but what are those sessions? Is it telling me that 4136 of the total sessions took 750-875 milliseconds to start? If so then total sessions of how many days? There is no option/anything like that.

    Can someone untangle this, please?

    Thanks

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

    How to create a listener for the boolean variable?

    Posted: 03 May 2020 01:22 AM PDT

    How to create a listener for the boolean variable?

    I want the video to stop when the screen is scrolled up. I use addOnScrollListener for this.

    public boolean scrolldurum; rv.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) { // mScrollState = scrollState; if(newState == RecyclerView.SCROLL_STATE_IDLE ) { Toast.makeText(getActivity(),"scrol stop",Toast.LENGTH_SHORT).show(); scrolldurum = false; Log.e("scrolldurumburcu", String.valueOf(scrolldurum)); } if(newState == RecyclerView.SCROLL_STATE_DRAGGING ) { Toast.makeText(getActivity(),"scrol START",Toast.LENGTH_SHORT).show(); scrolldurum = true; Log.e("scrolldurumburcu", String.valueOf(scrolldurum)); } super.onScrollStateChanged(recyclerView, newState); } }); 

    My boolean variable is true when the screen scrolls, and false when it stops. But the video stop code works only in onBindViewHolder.

    @Override public void onBindViewHolder(final KelimelerAdapterx.CardTasarimTutucu holder, int position) { final Kelimeler kelime = kelimelerListe.get(position); holder.textViewIngilizce.setText(kelime.getAkis()); holder.textViewTurkce.setText(kelime.getLikebtn()); if (scrolldurum = true){ Log.e("xaxaxaxax", String.valueOf(scrolldurum)); holder.videoView.pause(); } if (scrolldurum = false){ Log.e("xaxaxaxax", String.valueOf(scrolldurum)); } holder.videoView.setErrorTracker(new SimpleVideoView.VideoPlaybackErrorTracker() { @Override public void onPlaybackError(Exception e) { e.printStackTrace(); // Snackbar.make(holder.videoView, "Uh oh, error playing!", Snackbar.LENGTH_INDEFINITE).show(); holder.videoView.start("https://goldgym.pro/imga/"+holder.textViewTurkce.getText().toString()); holder. videoView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if ( holder.videoView.isPlaying()) { holder.videoView.pause(); } else{ holder.videoView.play(); } } }); } }); holder.videoView.start("https://goldgym.pro/imga/"+holder.textViewTurkce.getText().toString()); holder. videoView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if ( holder.videoView.isPlaying()) { Log.e("scrolldurumburcussss", String.valueOf(scrolldurum)); holder.videoView.pause(); } else { holder.videoView.play(); } } }); } 

    My boolean variable needs a listener. How can I do that. if you want to review my full code. https://gist.github.com/prensmiskin/161741f6e497a9d624258bedbddfd9d8

    https://i.redd.it/rfwwgba4fiw41.gif

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

    Hello all, I am wonder if any of you could tell me what this going on here : I called someone with my android phone and when I hung up these very strange sounds started playing from my phone. I closed all of my apps and the sounds continued until I rebooted the phone. Any idea what could cause this?

    Posted: 03 May 2020 05:01 AM PDT

    LiveData vs MutableLiveData

    Posted: 02 May 2020 10:26 PM PDT

    This may seem like a stupid question but i'm trying to learn MVVM pattern and something is confusing me: In ViewModel class, we put an attribute for our model. For example, Person. The type will be LiveData<Person>.

    When we add the getter, the returned type will be MutableLiveData<Person>. Which means that it can be changed once we get it, unlike the attribute itself. Can we add the setter to change the attribute? If so, what's the point of making it LiveData and not MutableLiveData?

    The confusion is, why we have to use both and not MutableLiveData only?

    Thanks

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

    GuilhE/KeyboardStateEvents - LiveData notification when keyboard opens or closes, plus some handy extension functions

    Posted: 02 May 2020 04:20 PM PDT

    Unlock bootloader for Huawei Y9

    Posted: 02 May 2020 10:15 PM PDT

    Ive tried everything i could find from other people on the internet and im running out of ideas. I'm not paying for 60$ an unlock key and i know its possible. At the very least id like to roll back to emui 8 so its easier to root.

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

    Why Shopify can use Paypal and Stripe for their subscription plans in Android app but not using in app purchase?

    Posted: 03 May 2020 01:53 AM PDT

    I have a question about the Google Play store in app purchase terms and condition here that I cant understand.Hope someone experience here can clear my doubts.

    The situation:

    I have an existing website that already offer subscription service which using Stripe. So now I will build an Android and iOS version of the app. So here come to the problem to the same subscription service in the Android app.

    The problem:

    1. For subscription I been told that we must use Google in app purchase for the payment and it will cost me 30% for the fees.
    2. But if I pay the 30% fees,and charges the price same with the one I offer on website,I will be impossible to make any profit from the new subscription come from Android app.
    3. For addition,if someone subscribe the service from Android app(which will paid 30%),the same account can access the subscription benefit via the web version and iOS version. So this is not solely depend on the Android app. Therefore this make the 30% extra painful for me.
    4. Therefore I want to use my own payment processor like Stripe to process the billing of the subscription plan in the Android app. But I not sure about the Google in app purchase T&C.

    My findings:

    The existing app the closest to my business model will be Shopify. So let me use Shopify as the example here.

    Why I think Shopify is almost same with my business model:

    1. Shopify offer 3 subscription plan from their own website using their own payment processor.
    2. The subscription plan is not a physical goods.
    3. When you subscribe 1 of the plans,you can use the same service in their web,iOS and android app.
    4. You can subscribe the service from their website,iOS app and Android app.

    My doubts is about the point 3 above. Cause they offer the subscription plan in their Android app and can be paid using their own payment processor and even using Paypal. They didn't using Google in app purchase for the subscription , they straight away offer the plan inside the app, and direct made payment inside this app. This is exactly what I want.

    My question:

    What different between Shopify and other android app that offer subscription that make Shopify can offer subscription plan without using Google in app purchase?

    Hope someone experience with this can tell me about this issue.Cause I read the policy, but I just cant understand this.

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

    Tests in the multi-module app

    Posted: 02 May 2020 02:53 PM PDT

    Hi Redditors.

    I'm curious where do you keep tests, especially instrumented test in multi-module architected apps?

    Do you create a separate module for tests or keep them in the `app` module altogether. I'm practising how tests might represent in multi-module apps, in a single module app, everything looks straightforward.

    For instance, if you have Test Suite which includes all major instrumented tests to test against the different flow, where do you keep those tests? As I mentioned in an `app` or in separate modules under their source code and invoke specific tests for an individual module? if that's so, how do you create whole test suite? I need Dagger in tests so I need some kind of initial TestComponent to have as well.

    Thanks in advance!

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

    No comments:

    Post a Comment