• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, January 19, 2021

    Weekly Questions Thread - January 19, 2021 Android Dev

    Weekly Questions Thread - January 19, 2021 Android Dev


    Weekly Questions Thread - January 19, 2021

    Posted: 19 Jan 2021 06:00 AM PST

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    New guidelines for accessing background location in Android

    Posted: 19 Jan 2021 04:39 AM PST

    Android Studio 4.1.2 Stable released

    Posted: 19 Jan 2021 11:01 AM PST

    Release notes don't appear to be available yet... anyone know what's up?

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

    Making a food delivery app with flutter

    Posted: 19 Jan 2021 12:24 PM PST

    Prevent an app being abused by UI Automator?

    Posted: 19 Jan 2021 07:39 AM PST

    Today I got banned in AdMob for "Invalid traffic concerns", and first I thought it's just Google being Google, however I also noticed a crash in Firebase Crashlytics with the UI Automator in stacktrace.

    Coincidentally, this crash pretty much matches with the time of ban, just about 1 day or even hours before it.

    I've never used the UI Automator, so that's definitely not me. All this made me think there's some malicious bot or competition trying to "DDOS" my ads.

    So I'm wondering if anyone knows how to detect that the app is being run from the UI Automator, so I can disable ads for example? Judging by the stacktrace, I thought maybe there's some way to hook into Accessibility stuff and check the presence of androidx.test.tools* in the stacktrace or something dumb like that.

    Does anyone have any experience with this kind of situations?

    Stacktrace - https://gist.github.com/Dimezis/bd10977b9cdf0f3a90290abf91fd9745

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

    Overlaying API data on GoogleMaps as animation

    Posted: 19 Jan 2021 08:42 AM PST

    What would be the best way, or is it even possible, to present API data - say weather or air quality/pollution data - as a real time overlay on a Google Maps map view.

    I'm hoping to build a route planner that will inform the user of any air quality or weather issues on their route. I've built a few route trackers with Google Maps by itself from tutorials, just wondering how I could go about augmenting in the next stage

    Many thanks

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

    Expecting member declaration, Kotlin

    Posted: 19 Jan 2021 04:07 PM PST

     val ss = SpannableString("Android is a Software stack") val clickableSpan = object: ClickableSpan() { override fun onClick(textView:View) { startActivity(Intent(this@SignUpActivity, SignInActivity::class.java)) } override fun updateDrawState(ds: TextPaint) { super.updateDrawState(ds) ds.setUnderlineText(false) } } ss.setSpan(clickableSpan, 22, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) val textView = findViewById(R.id.hello) as TextView textView.setText(ss) textView.setMovementMethod(LinkMovementMethod.getInstance()) textView.setHighlightColor(Color.TRANSPARENT) 

    Brand new to Kotlin, why am I getting an "Expecting member declaration" on ss?

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

    Best practises when refactoring a java code into Kotlin with MVVM?

    Posted: 19 Jan 2021 03:16 PM PST

    I need some guidance on what to consider when refactoring a large and in production Android App from Java to Kotlin with MVVM

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

    How about services?

    Posted: 19 Jan 2021 11:13 AM PST

    What do you think guys about services? Do you know good tutorials? Do you use this staff at work? I understand many things in android but services are my nightmare, I don't understand how write it.

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

    What do YOU personally do to learn outside of work?

    Posted: 18 Jan 2021 11:26 PM PST

    I'm a junior dev and I'm currently doing google udacity courses to hone my android basics down.

    I'm wondering what do more experienced devs do to practice and keep their skills sharp.

    Should I really be expecting to code every day outside of work for at least an hour.. or is that overkill?

    Appreciate any advice!

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

    How to know the store listing language of a certain app on playstore?

    Posted: 19 Jan 2021 06:37 AM PST

    Hi, As you may know Playstore offers to list an app in many languages. There are 7 English language options (En-US, En-GB, En-AU, En- IN etc.).
    Is there a way to know in which of these languages a particular app of someone is listed?
    That is my main question. (side question: Is there any way to know in how many languages a particular app has store listing in, and then one may see them by entering &hl="that language code".)
    Thanks

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

    Google Fit Sample Database

    Posted: 19 Jan 2021 08:26 AM PST

    Hi!

    I am creating a new web app to read data off of Google Fit API. Is there an easy way to load the Fitness database with some sample data, just to get off the ground? Any advice on that front is appreciated.

    Thank you.

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

    AdWords + AdMob is profitable in the long run?

    Posted: 19 Jan 2021 02:16 AM PST

    I started promoting my apps with AdWords and then monetize them with AdMob, I (almost obviously) end up earning less than what I spend. Is this always gonna be this why or optimizing well the campaigns and earning more users going to be ever profitable?

    submitted by /u/godlike-dawn
    [link] [comments]

    Use FFT and iFFT on real-time input audio and output the audio

    Posted: 19 Jan 2021 05:09 AM PST

    Hi everyone,

    I'm currently working on an app in which I'd like to do some FFT on audio input, then apply iFFT on it to be able to output back the same sound. This isn't the goal of the app, but it'd act as a test to see if the latency is acceptable to later on do some frequency or amplitude changes in real time.

    So far I have a little prototype which uses the Noise FFT library. The FFT seems to work great, but I'm a bit lost on what I would need to do to output the same audio I've got in the input after applying FFT then iFFT on it.

    Does anyone has an idea on how to proceed or been there already please?

    Thanks for your help.

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

    Video doesn't work on camera

    Posted: 19 Jan 2021 09:58 AM PST

    So I have Redmi Note 7 and the camera is not broken at all.. I can take pics and even rexord on front camera but I cannot record on my back cam. I am running HavocOS 3.6 (custom rom, no google). I have tried using Stock MIUI rom on it, but no luck. Wht I have noticed though is that no sensors are working either.. My proximity, compas, etc.. (in an app like cpuz it shows NO sensors). However in the devices root directory in /sensors there is not a single thing.. I am confused since this isn't supposed to be empty. Can someone help me here?

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

    Play Console app, error reply review

    Posted: 19 Jan 2021 05:08 AM PST

    I haven't been able to respond to reviews since this morning. Does that happen to you?

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

    Topping Engine - Middleware for developing android and ios applications. One layout one code for both platforms.

    Posted: 19 Jan 2021 01:12 AM PST

    I have recently been developing a middleware library that helps you to develop mobile applications, faster and easier than before. Finally it is live at https://topping.dev . This project started in 2012 to reduce time developing applications on android and ios platforms by creating a topping layer on mobile operating systems. All you need to know is how Android layout XML works and basic Lua or Kotlin knowledge. After developing it from time to time, I decided to make it open source. The project is in beta stage but most of the functions work. With the help of the open source community, I hope it will expand and grow and become the best of its kind. Also there are WPF and Web proof of concepts at github. http://github.com/topping-dev

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

    How Are Animations Used In Apps?

    Posted: 19 Jan 2021 03:47 AM PST

    Need ninja who can conduct a meeting for Android development ?

    Posted: 19 Jan 2021 09:30 AM PST

    Hello everyone this is my first post here hope to get some positive response from you all here so let's start we are developing a android app but we all not expert so need some mentorship from an expert who can conduct a meeting & solve all our doubts easily & help us develop application to its best.

    Thanks !!

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

    I have question on Facebook Audience Network's ad placement ID

    Posted: 19 Jan 2021 07:03 AM PST

    I have total 10 apps applied for Facebook Audience Network, and 9 of them been approved by Facebook. Can I use the approved apps' placement ID on the unapproved apps?

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

    Empty emails

    Posted: 19 Jan 2021 12:46 AM PST

    I recently added two of my apps to the Playstore. I added an Info-box in the loading screen which includes my email address for support. I also added a button with a Mailto link, so you can simply click on it and the app will open your mail client and add my email address, so you can contact me quickly. In the last few days I notice that I got around 5-7 empty mails to that email-address from Gmail addresses mostly. I though about a mistake of mine while including the mailto link, but I think it will not send an empty mail, it will only open the mail client. Or did in missed something for special android devices / operating systems? Is anyone else experience this empty mail thing?

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

    Not enough impressions for mediation

    Posted: 19 Jan 2021 12:14 AM PST

    Hi,

    I have like 800-1200 impressions per day, some days I have over 1200impressions. I have tried to integrate Unity Mediation into AdMob but after 3 days I didn't get enough impressions on the unity network, I got like 3-4-10 impressions, is it because I put an eCPM of like 2$? should I put something smaller like 0.1$?

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

    Domain of API calls made from a mobile app?

    Posted: 18 Jan 2021 11:32 PM PST

    Hi All,

    I've built a webapp for our company, and have been placed in charge of the mobile apps as well. Unfortunately I have very little experience in mobile dev, but Ionic/Capacitor does make it a bit easier.

    We want to use Vimeo for video hosting, and want to restrict the videos to certain domains, eg only accessible through www.example.com. Please excuse me if this is a non-sensical question, but I want to view the same videos on mobile, and am unsure if there is a way to set a "domain" for the app to call from?

    I've checked out the Vimeo API, and there doesn't seem to really be a clear solution or workaround.

    Many thanks

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

    Hakerrank android java recuritment

    Posted: 18 Jan 2021 10:22 PM PST

    Hi, i have been applying for jobs for Android. I have heard back from few place. And they seems to send this hakerrank test. I was just wondering if any one have given these test. I just wanted to know if it would be multiple questions or single question. The test have yime limit. Is there any preparation that would help?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel