• Breaking News

    Thursday, November 5, 2020

    Android Dev - Jetpack Compose for Desktop: Milestone 1 Released

    Android Dev - Jetpack Compose for Desktop: Milestone 1 Released


    Jetpack Compose for Desktop: Milestone 1 Released

    Posted: 05 Nov 2020 02:23 AM PST

    androidsrc.dev - Find Android sources

    Posted: 04 Nov 2020 05:22 PM PST

    Important Key Components To Make An App Successful

    Posted: 05 Nov 2020 06:59 AM PST

    Internal testing track seems to be confusing

    Posted: 05 Nov 2020 06:40 AM PST

    Hi guys, Just started using the new console and wanted to make an internal test for my unpublished game app. I filled all the questionnaires and added images The release under internal testing says it is active. I also created a team with my email in it and added it to the release.

    I do see the opt in screen And after opting in it says welcome blabla but when clicking the link to the play store it keeps loading and nothing happens. On desktop following the same link says it is not available. Do you guys have any clue what I have to do? I am totally lost..

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

    How To Build A Successful Social Learning Platform

    Posted: 05 Nov 2020 02:40 AM PST

    No apps on emulator changing orientation

    Posted: 04 Nov 2020 10:48 PM PST

    Have no idea if it is something I've done or what? No apps on the emulator are changing orientation. Even the stock apps that are pre loaded on it? Anyone know what the problem could be?

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

    Looking to build 2D Android games by myself. How much would it cost?

    Posted: 05 Nov 2020 02:02 AM PST

    Hi,

    I'm a complete beginner in appdev, have some knowledge like HTML, CSS in webdev.

    I want to develop 2d android games like Bubble Ball, Angry Birds etc by myself as I don't have a lot of money to pay others to do it for me.

    my questions are:

    1. How much would it cost me to build, launch and make this app successful (at least making $500 a month or more?)
    2. How long would it take me to do this? Learning appdev and then making the app?

    Thanks for your answers

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

    App not functioning on Google Play internal testing

    Posted: 05 Nov 2020 01:29 AM PST

    G'day Android Devs!

    I'm a relatively new Android developer (but experienced with web and iOS). I'm getting ready to release my first app on the play store, but I'm having trouble with testing the app. The app fetches data from a server, stores locally and displays on the device.

    The 'internal testing' version of the app on the play store is unresponsive and shows an endless progress bar spinner, but building and installing via Android Studio, it works fine, no changes anywhere else. I've tried with multiple devices and users, all have the same result. As I don't have a debugger attached for the Internal Test build on the Play store, and the fact that it works fine in the development environment, it's difficult to know where to start debugging an issue like this.

    As I'm new to Android development, the cause of the issue is likely something basic that I've overlooked.

    If anyone could point me in the right direction of where I could start looking that would be awesome.

    Much Appreciated 🤙

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

    Birthday Picker some people struggeling

    Posted: 05 Nov 2020 04:43 AM PST

    Hello,

    most of our apps have some kind of birthday selection. I use the android default Picker. On Huawei phone there are 3 dropdowns, but most of the phones have the standard anroid calendar.

    It is very beautiful and easy to use, but sometimes the people use it the wrong way and get frustrated. Instead of tap on the year, they just swipe through the months. It is not my problem, but we have over 5k reviews and about 20-50 are negative because of this incorrect usage.

    I know, it is not a lot, but have you seen any other good example of an easier to enter birthday field. We are having now 3 entry fields and a link to the picker, to get everyone happy, but it doesn't look so good.

    submitted by /u/byte7-ruhr
    [link] [comments]

    MPAndroidChart: Set different colors on live LineDataSet

    Posted: 05 Nov 2020 04:36 AM PST

    Hello guys,

    Do you know if it is possible to use different colors on a live LineDataSet depending of the values?

    For example, for every values above 50, display the point in red, and for every values below 50 in green.

    I managed to do it on a static LineDataSet using setColors but I am struggling with a live one. Is it possible?

    Thank you so much,

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

    MAD Skills Navigation: Wrap-Up

    Posted: 05 Nov 2020 04:25 AM PST

    Mastering API Visibility in Kotlin - zsmb.co

    Posted: 04 Nov 2020 09:51 AM PST

    Contrivance of Human - Machine Interaction for Android Application

    Posted: 04 Nov 2020 07:43 PM PST

    Dead Redmi 4x

    Posted: 05 Nov 2020 02:42 AM PST

    How to salvage photos from dead phone not back upped in google or mi acc

    I think it's saved in the internal memory

    phone wont turn on or charge, getting a new one but is there a chance to get those photos?

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

    About Database Inspector

    Posted: 05 Nov 2020 02:14 AM PST

    Guys,what is the problem of database inspector

    It does not work with the phones having custom ROM in it

    I tried everything but Database inspector doesn't seem to work on custom rom Phones

    Can anyone tell me a solution on this?

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

    FragmentStateAdapter is bounded to do unnecessary overwork.

    Posted: 04 Nov 2020 05:25 PM PST

    A couple of days ago, I was having some trouble about which lifeCycle should I be using with the FragmentStateAdapter, in that moment, I was using the Fragment's lifeCycle, this made the view leak when the Fragment went to the backStack, for obvious reasons ofc, the observers would only unregister on the condition where The owner fragment was to be completely destroyed, the solution is simple, just use the viewLifeCycle...
    But this creates a secondary problem.
    The fragments created within the Adapter, will undoubtedly outlive the viewLifeCycle that is required for the adapter to be created.

    The android team, foresaw this, and made the viewPager acknowledge whether the Adapter was already registered, even if a new version was created, this means the createFragment method is not executed upon adapter recreation.

    With some custom lifeCycle listening (actual lifeCycle not just viewLifeCycle) one can actually create the Fragments once (that will be contained inside the adapter) and do it outside the adapter (on the owner fragment onCreate cycle), and then supply the adapter with them the first time.

    This is all good... when staying inside the same app...

    The problem:

    The story is completely different when leaving the app for another one.
    Sometimes the (what I believe are) the observers unregister (get GC'd?? (another option is my lambda function is not recognized by the viewPager upon re-entrance from another app (maybe this could be it idk)??)), and the adapter is forced to re-execute its createFragment method for whatever reason, even if the owner Fragment was never destroyed..,.. and even if the Fragments inside the ViewPager are still alive.

    Function<Lifecycle, MyFragmentPagerAdapter2A> adapterFun = lifecycle -> new MyFragmentPagerAdapter2A(
    fragmentSupplier.get().getChildFragmentManager(),
    lifecycle,
    fragments.length //static adapter of fixed length and fragments
    );

    ....

    () -> {
    Log.d(TAG, "FieldFragmentPagerAdapter2: view initialized");
    MyFragmentPagerAdapter2A ref = adapterFun.apply(fragmentSupplier.get().getViewLifecycleOwner().getLifecycle());
    ref.consumeFragments(() -> fragments);
    result.setValue( //some sort of atomic reference/observable
    () -> ref
    );
    viewPager2.get().setAdapter(result.getValue());
    }

    So even if the Fragments inside it are still alive, the createFragment method gets reimplemented.

    Now this could be fixed, by manually creating, or storing whatever is being GC'd and then re-supplying the adapter/viewPager with what is needed.... but this is impossible, because the only cycle at which the adapter can be created, is in a cycle that is shorter than the objects it contains.. (onViewCreated)

    This means that at re-entrance, ALL its Fragments are forcibly destroyed, and recreated.

    I believe the initial intention with the constructor

    public FragmentStateAdapter(@NonNull FragmentManager fragmentManager,
    u/NonNull Lifecycle lifecycle)

    is an extremely good one and an innovative one (given the state of some other components), but how the lifeCycle events get managed inside it, is another story, I believe it could be improved greatly, if instead of listening to the viewLyfeCycle, it listens to the overall Fragment LifeCycle instead, specially in this case in particular where the contents of the adapter are Fragments which will outlive the view that creates them.

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

    In music player app after 10 next click of songs (not auto next) is it allowed to show interstitial ad? player doesnt change only song change

    Posted: 04 Nov 2020 08:00 PM PST

    I have custom musics list player. i want to put interstitial ad. wanted to know if its allowed to put interstitial ad after 10 next or 15 auto next (once song ends auto next plays next song)

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

    Does Anybody Know About JExcel, I need to know how to create a table using it to get data from the table to Android App.

    Posted: 04 Nov 2020 10:58 PM PST

    Monitor packets

    Posted: 04 Nov 2020 02:14 PM PST

    Is there a way or an app to check sent and received network packets?

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

    Android Kotlin: Adding subscription nightmare (+ Billing library 3.0)

    Posted: 04 Nov 2020 12:34 PM PST

    Ok.. I have downloaded Google's Trivial Drive app which should be kinda demo app for learning how to add billing library into your app... But... They made it soooo much (in my opinion) unnecessary complex and complicated...

    They focused so much on some layouts and made dozens of micro procedures which makes it very hard to get everything connected in your head... Even just checking if fuel is empty of full tank got sooo much complex...

    And the irony of the life is that in few places they wrote: "To keep simple things simple"

    Can someone help me with the most simple code for buying 1 month subscription and buying 1 product?

    Please... Just the absolute bare minimum of code in one file... Without using my own server support for tracking sales... and if possible... to be compatible with Billing library 3.0 :)))

    In short.. I would like this code to do:

    -----------------------------------------------------------------------------------------------------------------------------

    You click button [Subscribe] and get a Google Play dialog menu to pay for sub

    You click button [Buy fuel] and get a Google Play dialog menu to pay for product

    You click button [Action button] and code checks the status of subscription (Active, Expired, Canceled, In grace period, On hold, Paused)

     // Is there a status ---> NEVER BOUGHT SUBSCRIPTION... or something like that?) 

    And there should be some event... Some trigger where you will get status what happened with requested purchase of product...

    override fun OnSomeActivityDontKnowWhichOne(action: Action, string: String)

    -----------------------------------------------------------------------------------------------------------------------------

    Ok.. Soo... Visually ...something like this:

    package example.asdf.com.billy import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Toast var CarFuel = 0 class MainActivity : AppCompatActivity() { override fun OnSomeActivityDontKnowWhichOne(action: Action, product: String) { if (action == PURCHASE_PRODUCT_OK) { if (product == "car_fuel") { CarFuel++ Toast.makeText(applicationContext, "Thank you for your purchase. You have now " + CarFuel.toString() + " unit(s) of fuel", Toast.LENGTH_SHORT).show() } } if (action == PURCHASE_PRODUCT_NOT_OK { Toast.makeText(applicationContext,"Purchase failed...", Toast.LENGTH_SHORT).show() } } override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) // Text on button: [Subscribe] val BuySub = findViewById<Button>(R.id.buttonBuyOneMonthSub) BuySub.setOnClickListener(View.OnClickListener { // When you click button [Subscribe] it should appear // Google Play dialog for paying for 1 month subscription RequestBuySubscription() }) // Text on button: [Buy fuel] val BuyProduct = findViewById<Button>(R.id.buttonBuyMyCoolProduct) BuyProduct.setOnClickListener(View.OnClickListener { // When you click button [Buy fuel] it should appear // Google Play dialog for buying a product RequestPurchaseProduct(ProductId) }) // Text on button: [Action button] val MyCoolAction = findViewById<Button>(R.id.buttonActionButton) MyCoolAction.setOnClickListener(View.OnClickListener { // check if subscription is active... // like... val Status = GetSubscriptionStatus() // Status can be Active, Expired, Canceled, In grace period, On hold, Paused // Is there a status ---> NEVER BOUGHT SUBSCRIPTION... or something like that? if (Status == EXPIRED) { Toast.makeText(applicationContext, "Subscription expired. Please click [Subscribe]", Toast.LENGTH_SHORT).show() return@OnClickListener } if (Status == ACTIVE) { Toast.makeText(applicationContext, "Thank you for being our vip user :)", Toast.LENGTH_SHORT).show() FetchSubStartTime() FetchSubExpirationTime() // It would be good to fetch date of Subscription start and subscription end // Preferably if possible to get unix times :) } }) } } 
    submitted by /u/KotlinNoob
    [link] [comments]

    Android Studio 4.1 editor performance issues

    Posted: 04 Nov 2020 10:13 AM PST

    I've been developing one of my apps since 2016, so for that purpose I've already used a couple of versions of Android Studio as well.

    With Android Studio 4.1, however, I now have some performance issues with the editor. My app's main activity has about 21,000 lines of code.

    You know that when you enter a new if-clause, for example, and you enter the first "{" bracket, then the whole following code becomes invalid and it will be marked with a red line. This happens until the whole code has been marked or until you have entered the closing bracket "}". And then all your code will be marked as "okay" again.

    Before AS 4.1, this process has taken a few seconds. With AS 4.1, however, this now takes much longer, sometimes even up to a minute, before you can work normally again.

    Has anybody of you experienced the same ? If yes, is there a way to improve the speed of the editor without deactivating most of its functionality ?

    submitted by /u/ms-app
    [link] [comments]

    Assemble debug and release version of an app at same time

    Posted: 04 Nov 2020 02:16 PM PST

    Hi !
    Is possible to create in one step debug and release version ?
    Now I have to call:
    1) gradlew clean
    2) gradlew assembleFlavorDebug
    3) gradlew clean
    4) gradlew assembleFlavorRelease

    What happen if I remove step 3 ?
    Another question, which apk signature gradlew assembleRelease task use ?

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

    No comments:

    Post a Comment