• Breaking News

    Thursday, March 11, 2021

    Android Dev - Adopting Kotlin at Prime Video for higher developer satisfaction and less code

    Android Dev - Adopting Kotlin at Prime Video for higher developer satisfaction and less code


    Adopting Kotlin at Prime Video for higher developer satisfaction and less code

    Posted: 10 Mar 2021 11:21 PM PST

    Media handling in Android is confusing

    Posted: 11 Mar 2021 08:54 AM PST

    I've been trying to Save and Load, Image and Video, but it feels too confusing with the transition at API 29, Different URIs, MediaStore and File Provider.. I've referred to Docs, I/O talk.. But couldn't yet get a clear idea about it. Can someone please explain, or suggest a good tutorial or provide a sample code.. Thanks

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

    FOSS Assistant in a Pre-Alpha Status. APK on GitHub

    Posted: 10 Mar 2021 07:53 PM PST

    If you are interested in an alternative to Google Assistant, and a platform for development using on device machine learning then you may find this of interest to you

    I posted a while back about my project the Sapphire Assistant Framework which an open source mobile assistant for Android, and I am happy to say quite a lot of progress has been made. Since a lot of people expressed interest in this project, I wanted to keep the community posted on its progress.

    The goal of the project is multifaceted. It should work, and work well, out of the box for the majority of the users who will only ever use 10% of its features. It has a stated goal of interfacing with Mycroft, and existing Google Assistant/Alexa apps, and it should allow modification on-device to the maximum extent possible. It is called the Sapphire Framework because it has tools that allows a user or developer to create a completely custom assistant utilizing the included features/APKs

    The Sapphire Framework also is intended to allow most settings and data to be edited using plain text editors, in traditional Unix fashion. This is to allow for a user to quickly change what and how data is captured, and to allow for the creation of new skill modules and data collections on the fly. This has the added benefit of simplifying data exchange with companion system running on a server or desktop.

    A sample APK has been uploaded to the repository under releases, which will allow you to see what is happening in the background (I display the android.util.log in a TextView), and after about a minute you should see the speech recognition taking place (this works without internet). I have also updated the Wiki to give better information about the design, and its feature roadmap and goal. Keep in mind, this is only meant as a development preview, and you shouldn't expect any real functionality out of it yet.

    For those interested in guiding the future of this project, wishing to get involved, or just generally curious, I've created a subreddit that I intend to use as the central point of communication with all interested members. I want to make this a useful tool to both non-technical users and developers, so I would love to work with the community to guide the future of the project. Please, ask questions and give feedback. I'll respond as best I can

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

    What is the exact reason of admob ads serving limit?

    Posted: 11 Mar 2021 04:39 AM PST

    Dear All, This is the 6th time I'm getting adserving Limit (19/06/20, 26/07/20, 20/08/20, 27/08/20, 29/08/20, 10/02/21). And every time I get the same mail, your account is currently being limited due to invalid traffic concerns, but I want to tell you one thing, I don't click on my own ads, not by friends. I can't understand the real reason why I often get the ads limit, but last time I found out that the ads request increased to around 1500 on 9th February and 10th February I got the ads limit, but the reason of increases ads request was few days ago of 10th February I Upgraded the app, as well as I added the new banner ads code and that's why the ad request was increased but I never feel it can cause of ads limit. So friends, what could be the exact reason of ads serving Limit?

    And one thing 10th February to till now means 11 march ,my ads serving is being limited..that means totally earning also stop ..right now ...I can't understand what should I do?

    Dear all, Is there any way to communicate with Google admob teams regarding to ads serving limit?

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

    Creating a library. A few questions...

    Posted: 11 Mar 2021 12:58 AM PST

    Creating a library. A few questions...

    I created two Android apps with (in my opinion) good looking UI items like RadioGroups, Spinners, EditTexts, Checkboxes, and more. They all offers functionalities like automatic border colors, autocomplete, setter and getter methods or quick buttons to put a common text in an editText field in this UI item.

    Here is an example, not perfect:

    EditText item with auto color border, quick button and info button (creates a simple dialog)

    I want to share it with the open source community. So, I have some questions, before I start.

    1. Should I create one project for all items, or for every item a library?
    2. How can I publish the library to Android Arsenal? Which category is for projects like this, if it's one project?
    3. What are common things, that you hate in context of user libraries, which I shouldn't do?

    Thank you for your help :)

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

    x86_64 with play store on GenyMotion

    Posted: 11 Mar 2021 08:02 AM PST

    I would like to run x86_64 (Android 64 bit) with play store. If there was a 64 bit build in Genymotion it could be fitted with OpenGapps. The other alternative is to migrate an Android SDK ADV emulator Pixel 4.

    Anyone know how to (1) run x86_64 in Genymotion, or (2) migrate an Android AVD to Genymotion?

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

    Repository with Flow

    Posted: 11 Mar 2021 07:57 AM PST

    Okay, I need some help on this. I want to do offline first in a repository, using coroutines and flow. Local is Room with Flow support. Remote is Retrofit.

    In my repo, I want to return one Thing for a specific date. I want to check the database, return Thing if it exists, and if it doesn't, then I want to go off to the network, retrieve said Thing, and save it in the database. Simples.

    Where I get confused is when Flow comes into it. My Room returns a Flow, and my Repository returns a Flow, and I just have no idea where to put the network call. Room returns an empty flow, so there's no `flatMapConcat` or anything to use, cause there's no items in the flow.

    suspend fun getFeaturedThingFor(date: String): Flow<Thing> = flow { val items = mutableListOf<Thing>() thingDao .getFeaturedOn(date) .filterNotNull() // room returns a single "null" for empty db .map { Timber.e("mapping, it=$it") // never called it } .collect { items.add(it) } // never called Timber.e("item size=${items.size}") // never called emitAll(items.asFlow()) // never called } 

    I'm sure I'm thoroughly misunderstanding the use of Flows. So, help please.

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

    Question about compose preview?

    Posted: 11 Mar 2021 03:19 AM PST

    Hi all,

    After updating to Arctic fox version of android studio the preview takes too much time to load and everytime it says to build the code. Any workaround?

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

    How to differentiate new users based on Location & Show relevant Content

    Posted: 11 Mar 2021 06:31 AM PST

    Hi, I work for a video content app which we have for a country. Now we are planning to launch to a new country and we want to differentiate users so that we can the video content based on their country.

    If a Users opens the for first time and register from A country then he will see contents from A country. And if another user open the app for first time from B country then he will see contents from N country.

    So how we can find it the users and show content accordingly ?

    We have register mandatory with options of OTP, GMail & FB. Most users do via gmail or FB only.

    So can you give some ideas on how we can differentiate users and show relevant content to them ?

    Few things would be via Country Code as they register, WiFi location, Geo.

    Can we also find based on the Campaign ID as majority of users come from Paid campaigns ?

    Thanks

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

    Has anyone else noticed a sudden drop in their Google Explore numbers in the last week or so?

    Posted: 11 Mar 2021 02:43 AM PST

    Our numbers just suddenly plummeted and are now staying low. Did Google change something?

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

    Making a PRO/Paid version of a free app?

    Posted: 10 Mar 2021 02:36 PM PST

    Hello!

    I had an app since 2018 which gathered some traction. It's a completely free board game.

    Since recently, I was considering making a paid version of it with some additional features (but no major changes) for the 1-10 people that would buy it.

    Seeing all the posts around about the 'Repetitive Content' policy hammer, do we have any clear vision of whether Google accepts this model or not?

    I would really like to avoid IAP since I have no experience with them and working 9 hours a day on my job, so I'd kind of prefer not to spend time to learn how to make them work 😅🤕

    Thanks!!!

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

    How much it would cost to make this simple app?

    Posted: 11 Mar 2021 05:35 AM PST

    Hello, I want an App that works like this:

    Click app > Open an image > You can scroll right and left for more images (4-5 images) > There is 1 button in the center where you click and send a message to me, the app owner with attachments and all.

    It doesn't even need to be a proper app, even just one of those where you click the app and actually access a website and see it from there.

    I am looking for the cheapest option. How much is a reasonable price for this?

    I posted a job in upwork but by experience I don't trust 99.9% of the applications.

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

    Lack CameraX vendor extensions support on pixel devices

    Posted: 10 Mar 2021 05:23 PM PST

    How does a pixel 5 not support any CameraX vendor extensions? How will other OEMs support it when Google doesn't for their own devices? This is so ridiculous. I'm trying to build a camera app but the photo quality is just so bad. Here's a list of devices that support the vendor extensions. There's no pixel device on there, I'm so disappointed and frustrated. It's 2021 for crying out loud

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

    Camera permission when to ask

    Posted: 10 Mar 2021 11:13 PM PST

    Is it needed to ask for camera permission when you going to take picture via intent from external app?

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

    Android Studio App crash when running a thread

    Posted: 10 Mar 2021 07:21 PM PST

    Hello,

    I would like to preface this with a disclaimer that I am very new to this stuff, so I apologize if I am posting this in the wrong subreddit (please let me know where I should post this instead if you know). I already made a post about this on stackoverflow, but thought I should try reddit as well in case someone has better answers. Here is a link to my stackoverflow post.

    Essentially, I want to create a music synthesizer on android studio, and I was experimenting with threads following this tutorial. I am not following the tutorial exactly, because I ideally just want to figure out how to use the AudioTrack library in streaming mode, but I cannot seem to figure it out. Attached below is my code. What I am trying to accomplish with this test is how to get the app to play continous sound when a key is pressed (and in the future, how to get it to play different sound - summation of different sine waves - when multiple keys are pressed, as I have set up 25 keys in total to cover 2 octaves). However, when I press the key (c4) for the first time, it plays the sound, and it is able to continuously play the sound. But, if I release the key, and press the key again, it crashes the app. I am not quite sure what I am doing wrong. I tried multiple things such as maually stopping the thread, or the audioTrack when the key is lifted, as well as calling the audioThread.start() function only once. If I call the audioThread.start() function only once, the app doesn't crash when I press the key a second time, or multiple times, but it doesn't play the sound after the first time either. Does it stop the thread on its own? Does it exit the "threadLoop()" on it's own if the key is released? I am very very lost and I am not even sure how to go about debugging this, as it is very much out of my comfort zone. Any guidence in the right direction would be very helpful. Thank you in advance for your help.

    package com.example.ece496_simplesynth; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import androidx.core.view.MotionEventCompat; import android.graphics.Color; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioTrack; import android.os.Build; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; public class MainActivity extends AppCompatActivity { private AudioTrack audioTrack; private int intBufferSize; private short[] shortAudioData; private boolean isActive = false; private Thread audioThread; private boolean keyPress = false; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final View c4 = (View) findViewById(R.id.c4); c4.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View view, MotionEvent motionEvent) { int action = motionEvent.getAction();//.getActionMasked(motionEvent); if (action == MotionEvent.ACTION_DOWN) { c4.setBackgroundColor(Color.parseColor("#ed1b24")); //"#81DAF5" keyPress = true; audioThread.start(); } else if (action == MotionEvent.ACTION_UP) { c4.setBackgroundColor(Color.parseColor("#FFFFFF")); keyPress = false; //audioThread.stop(); } return true; } }); audioThread = new Thread(new Runnable() { @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) @Override public void run() { threadLoop(); } }); } @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) private void threadLoop(){ int intSampleRate = AudioTrack.getNativeOutputSampleRate(AudioManager.STREAM_MUSIC); intBufferSize = AudioTrack.getMinBufferSize(intSampleRate, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT); shortAudioData = new short[intBufferSize]; audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, intSampleRate, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, intBufferSize, AudioTrack.MODE_STREAM); audioTrack.setPlaybackRate(intSampleRate); int n = 0; float x; float TS = 1.0f/intSampleRate; float freq = 440.0f; float PI = 3.14159f; float omega = 2.0f*PI*freq*TS; if(keyPress){ audioTrack.play(); } while(keyPress){ for(int i = 0; i < shortAudioData.length; ++i){ if(n == Integer.MAX_VALUE | n < 0){ n = 0; } x = (float)(Math.sin((float)(omega*n))); ++n; shortAudioData[i] = (short)(x * Short.MAX_VALUE); } audioTrack.write(shortAudioData, 0, shortAudioData.length); } audioTrack.stop(); } } 
    submitted by /u/big_avacado
    [link] [comments]

    Fake 1-star reviews by evils on my App and it doesn't violate the Google Play Policy | Just watching My App Dying!

    Posted: 10 Mar 2021 09:59 AM PST

    Fake 1-star reviews by evils on my App and it doesn't violate the Google Play Policy | Just watching My App Dying!

    Hi everybody,

    I am just a simple and solo developer, I created an app with a lot of effort and hard work called Stock Market Simulator Many users have liked my app from all over the world and organically got 200k downloads (no paid ads) and always maintain between 4.4 stars to 4.6-star rating.

    But yesterday and today something happens, and I broke. Some loser has attacked my app with almost 50 1-star fake reviews both days related to "share data with others", "not give premium feature after paying", "crashes a lot". I am feeling broke and inside feeling hopeless and so weak.

    I flagged those reviews in play console and after waiting hours Google simply said " Your request to remove this review was unsuccessful because it doesn't violate the Google Play Comment posting policy " I am so shocked, that even the one whom I can only trust is just said that.

    https://preview.redd.it/jd9frje3m8m61.png?width=1366&format=png&auto=webp&s=7a86fc12d1b5676b801f76658e0f6d2b6703401c

    On a daily average, I do not receive even 10 reviews but there was a sudden spike of 50 1-star and all reviews are so matching and all fake reviews were getting posted within a 5-10 minutes time span. Isn't it enough to detect it's fake? I really don't know what to do, I am just hoping the users who are using my app don't come to know about this.

    Lots of Fake Reviews were posted exactly at 18:30 IST

    I really don't know now what to do, my app star rating has fallen from 4.4 to 3.5. I really don't who is that evil and what is his purpose, I am really scared now of this app development, anybody can make anyone's small app down with cheap fake reviews, and looks like Google doesn't even care about it.

    https://preview.redd.it/ntn938j0m8m61.png?width=1366&format=png&auto=webp&s=17a8f2484037d5cfb0795941e414031df17c23af

    I just wanted to share this story that happened to me yesterday and today. I don't have energy left inside me, feeling half-dead.

    I know tomorrow again anytime in the evening that evil will post 50 more fake reviews and my rating will go more down. I am just watching my App dying, all the hard work effort that I put in the last 1 year seems to be useless now. I just feel the whole app ecosystem is not mature enough to tackle these except if you are giant and have more reach at the country or world level.

    But at last, I feel proud, that I created so good quality app that has been downloaded by 200k people organically with very good DAU and disturbed the evil.

    UPDATE : 11/03/2021

    My app just go another 64 fake 1-star reviews within last 10 minutes and contacted Google chat exactly at that time. They said they looking but I hardly feel they care about this, all they wanted is to end the chat as fast as they can. This is the third day I got attacked by some low-life evil, who I feel is stronger than Google algo.

    If Google doesn't remove it, I will unpublish my app and never make any app in the future for Play Store. It's full of spam.

    My App Rating now - 3.2

    submitted by /u/New-Ambition-8819
    [link] [comments]

    "In-App Purchases" in play store listing, but my app doesn't have any, nor com.android.vending.BILLING permission... any ideas why?

    Posted: 10 Mar 2021 09:49 PM PST

    I've published my first app to the app store recently but I noticed in the app store listing for my app, under "Additional Information" section, there is "Interactive Elements" with "In-App Purchases" listed... even though my app has no in app purchases and I don't have the com.android.vending.BILLING permission in the manifest. Does anyone have a solution on how to remove the "In-App Purchases" part of the listing?

    I couldn't find anything in the Play Developer Console to change this part of the listing. From searching around, I've found that this part of the listing is added automatically if the manifest has com.android.vending.BILLING permission. However, I do not have that in my manifest. Next I thought maybe one of my dependencies is adding this permission, so I downloaded the app bundle from the Play Console, then inspected it in intellij via Build->Analyze APK to look at the manifest. While there were more permissions in the resulting manifest than in my dev manifest, I still did not see com.android.vending.BILLING permission.

    I've even contacted the Play Console support, and they gave me the same info: that the "in app purchases" is shown because of the permission, so it must be in the manifest. I feel like this must be incorrect info... unless I'm looking at the wrong manifest somehow?

    I'm stumped here. Any ideas?

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

    Compose: Is possible to cascade text color to child elements?

    Posted: 10 Mar 2021 03:00 PM PST

    I'm looking at how to emulate this CSS:

    <body class="bg-gray-900 text-white"> <-- this is a COLUMN <main class="text-gray-100"> <-- this is a COLUMN Hello, my color is gray. <-- this is a TEXT </main> <footer> Hello, my color is white </footer> </body> 

    This means that I need to carry the style in cascade to the child elements. This is different from theming: I read the UI from the server and need to solve the styles at runtime.

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

    Push notification with flutter and Firebase

    Posted: 10 Mar 2021 12:16 PM PST

    I am trying to figure out how to create notification appear as a drop down menu while you are on the app . I have a notification system set up when someone messages you, you get the notification when you are not on the app but it won't get it when you are running it . Any suggestions ?

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

    Admob Payment Problem: Unable to add bank details after I removed my previous payment information

    Posted: 10 Mar 2021 06:10 PM PST

    I removed my previous wire transfer details as I wanted to add a new one, but the option to add the new bank details has disappeared. I do have the threshold payment balance.

    I have written to the Google Admob team, but no resolution since a week.

    Has anyone else faced this problem?

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

    Activity Must Not be Null while getting current View [Kotlin]

    Posted: 10 Mar 2021 09:33 AM PST

    So I am making an app using QsTile in android to capture screenshots. I created another class called ScreenshotTile.kt which extends TileService and the MainActivity.kt file remains as is just like when we create a new project.

    In the override fun Onclick() {//line of code} function in ScreenShotTile.kt file, I want to implement the following

    1. Capture Screenshot of the Current View on Screen
    2. Save it to sdcard0 (For ex: Pictures folder)
    3. Notify the user through a Notification that Screenshot is captured.

    The 2nd step isn't happening because I am unable to get the current view present on screen and I am getting the following error:

    java.lang.IllegalStateException: activity must not be null 

    I have tried doing the following:

    var rootView = Activity().decorView.rootView 

    I am refraining from a button.setOnclickListener { View.onClickListener() //Rest of the code } style of solution since it is a QsTile which will be clicked and not a button, so I want to store the view in a variable say currentView and do the remaining procedure in step 2. How can we implement it?

    Source Code: https://github.com/ribhu69/screenShotTile

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

    Is releasing on google play open beta first better than going live straight away? Tricking the algos?

    Posted: 10 Mar 2021 02:26 PM PST

    I watched this video here https://www.youtube.com/watch?v=3zBMljJid5U

    And apparently what he does is releases his games on beta, within the next 2 weeks his keywords etc get cached and gets a big bump in installs (similar to the initial release on the live store, you're listed under new games so that is one of the best times to capitalize on downloads).

    What surprised me though is that said once you roll out of the open beta program into live, you get a 2nd boast just the same as if you were to go live straight away...

    So releasing app in open beta first = bump up in installs by being featured in new games

    Then push app live = 2nd bump up in installs

    So instead of only getting your first initial bump up your getting x2!

    Is that really true? If so is that why there's so many games "open beta" with 100k downloads

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

    No comments:

    Post a Comment