• Breaking News

    [Android][timeline][#f39c12]

    Friday, December 27, 2019

    Weekly "anything goes" thread! Android Dev

    Weekly "anything goes" thread! Android Dev


    Weekly "anything goes" thread!

    Posted: 27 Dec 2019 04:40 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    I have created a tutorial series for Notes Taking App from Scratch using Realm DB.

    Posted: 27 Dec 2019 05:07 AM PST

    Best approach for app that runs infrequently on an external trigger?

    Posted: 27 Dec 2019 12:47 PM PST

    I'm working on an app that:

    1. Depends on an Alexa skill that triggers an action in the app to run
    2. Needs to respond extremely quickly to this trigger
    3. Will not run frequently

    I have been able to set up FCM notifications to run using "Data" instead of "Notification" but when the app has been killed due to background execution limits, the trigger no longer runs. This makes sense given the desire to reduce resource consumption. However, it completely kills my app because it requires activation from the Alexa skill.What are my options for getting the trigger to continue?

    It doesn't run periodically so WorkManager and JobScheduler don't follow Google's guidelines.

    Foreground services don't either, as there is no constant task being performed. Additionally, older versions of Android couldn't stop the constant notification from displaying. Someone correct me if I'm wrong.

    Bound services don't run indefinitely and can't serve waiting for notifications. I don't think this is what I am looking for.

    These are the options I have considered:

    1. I could trigger the app based off an incoming text message, but I feel that abuses the system. SMS messages are also unreliable in their delivery time.
    2. Background services could theoretically work, but being put into the idle state would stop the trigger.
    3. Foreground service, but have the notification hidden and send data notifications to the user.

    The issue I am facing is that my app doesn't run frequently, but when it does it needs to be triggered externally and run ASAP. A minute delay is not acceptable.

    Any ideas?

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

    I followed this tutorial for a navbar, but the IDE gives an error for a line of code. How can I get around this?

    Posted: 27 Dec 2019 03:36 PM PST

    The line of code:

    actionBar.setDefaultDisplayHomeAsUpEnabled(true);

    IDE error:

    setDefaultDisplayHomeAsUpEnabled() can only be called within the same library group (groupId=androidx.appcompat)

    The tutorial in case anyone wants to look at it: https://guides.codepath.com/android/fragment-navigation-drawer#download-nav-drawer-item-icons.

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

    Is there a way to have the Android Emulator remember its size and position on the screen?

    Posted: 27 Dec 2019 02:39 AM PST

    My emulator always opens on my vertical monitor in a huge size and it's driving me nuts

    Edit: I'm using Windows

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

    How does an actionbar work in the newer versions of android and the notched devices?

    Posted: 27 Dec 2019 04:12 AM PST

    I am having an issue with the android studio where I can't see actionbar in the preview no matter what theme I choose, I can't even edit the action bar. Any solutions?

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

    Animated drawables resources?

    Posted: 27 Dec 2019 04:07 AM PST

    I've been learning https://shapeshifter.design/ for a couple of days now, however, it's not as easy as it looks to achieve great animations.

    I was thinking, if there is a website with already premade animated drawables for android developers? (excluding Lottie)

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

    �� Android Components Architecture in a Modular Word

    Posted: 27 Dec 2019 12:49 AM PST

    Startup app on Android 7 Tablet?

    Posted: 27 Dec 2019 12:55 PM PST

    We've been working on an app for a while and recently ran into the issue that we cant get it to sun on startup withought manual imput from a user. The app must work on a Advance 4757 tablet and android 7 but the dev team has not been able to find out how to make it work via programming.

    I wanted to know if anyone could help me giving them suggestions on what could be donde or if its actually impossible to have custom apps autorun on startup.

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

    Android support libraries minimum supported API

    Posted: 27 Dec 2019 12:07 PM PST

    Hello,

    According to my understanding each Android API version releases support libraries in order lower versions might use current API version features. But not all API's might use them.

    I suppose that support library version 26.0.0 was created when API version 26 was released. I know that support library 26.0.0 might be used by Android of minimum API 14.

    But what about others versions of support libraries? What minimum API versions might use them?

    For example, what is minimum Android API version that can use support library 23.0.0 ?

    Where I can find whole list?

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

    Google play review

    Posted: 27 Dec 2019 12:04 PM PST

    Hi! Today I noticed that someone gave a review on my game and said that I gave 5 stars because I was promised a reward. However I did not ask anyone to give such a review nor in my game neither personally. Would anyone give me suggestion about what should I do? Should I flag this review as a spam or should I reply to him/her that I did not offer any reward?

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

    How to use Retrofit with Headers

    Posted: 27 Dec 2019 11:50 AM PST

    Hi everyone.

    I've been dealing with this since morning. But I couldn't figure it out. I need to use Rapidapi. It has a key.

    Api : https://rapidapi.com/omgvamp/api/hearthstone

    I made a project with normal API. But I could not use this API.

    Please help me

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

    Production relaese

    Posted: 27 Dec 2019 10:13 AM PST

    Hello all,

    how long after production release will I see the app in the store? THX

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

    Admob CTR

    Posted: 27 Dec 2019 08:57 AM PST

    Is CTR too high these days?

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

    SharedPref or Static for registration process?

    Posted: 27 Dec 2019 05:48 AM PST

    I'm kind of new to this game,

    Image 4 step registration page, instead of passing data between fragments i'm using sharedpref and at the last step i finally register user to the database .

    but what if i use a static class instead? cuz shared data persists if user quits during registration progress and may cause problem or alter the data with a root access during the registration.

    also when saving to the firebase database i can save as object not one by one.

    what are your thought? thanks

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

    A lightweight tooltip popup for Android.

    Posted: 27 Dec 2019 02:01 AM PST

    Request free analytics tool

    Posted: 27 Dec 2019 05:28 AM PST

    Is their any free analytics tool for android that like firebase and fabric but has an app in the store so I can view my analysis in the go? Fabric used to have one but is no longer available

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

    Very specific file modification issue

    Posted: 27 Dec 2019 01:11 AM PST

    Hello, I'm new to android development but not new to programming and I want to mass modify every file of an entire folder on my Galaxy S9.

    I have one folder full of photos/videos that I messed up the "date modified" by moving it around which I didn't know would reset the date modified of every single photo/video which in turn messed up the date on Google Photos. However, every photo has the correct date in the name of the photo/video. So I want to essentially just make an app that takes in a folder, goes through each file and changes the date modified to the correct date by extracting it from the name of the file.

    How would I go about doing this? What parts of the API should I look at? How do I take a folder as input and get each file in code?

    (doing this manually is nearly impossible because it has roughly 14,000 photos)

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

    API 29 does not support com.android.support ?

    Posted: 27 Dec 2019 08:39 AM PST

    Hello,

    Trying to understand how to use application settings using preferences using tutorial. I'm using API 29 and looks like I can't use PreferenceFragmentCompat from 'com.android.support:preference-v7:26.1.0' package. Android Studio complains regarding this dependency:

    Version 28 (intended for Android Pie and below) is the last version of the legacy support library...

    Does it means I can't use anything from 'com.android.support:*'? Since PreferenceFragmentCompat is depricated what I should use instead of it?

    I know I can use older SDK, but this is not option.

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

    Tracking app installs

    Posted: 27 Dec 2019 03:18 AM PST

    Hi,

    I would like to track clicks to install an app on google play store on a 3rd party site. Whats the best way to do this, where I can view the gathered data from clicks?

    I found this link: https://android-developers.googleblog.com/2019/11/still-using-installbroadcast-switch-to.html and I am bit confused about the flow.

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

    I go the Financial Aid from Udacity for the Android Nanodegree program. Do you think it is worth spending 1000$?

    Posted: 26 Dec 2019 11:18 PM PST

    I am like a mediocre android developer or even less. I applied for financial aid at udacity and got selected for it. Do you think it is worth it? I mean there is plenty of stuff available online for free. Please guide me with your experience.

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

    In other platforms like iOS, Desktop, how to read and write database version number, from SQLite file written by Android Room?

    Posted: 26 Dec 2019 06:53 PM PST

    Currently, we have an Android app, which is using Android Room as data persistence strategy.

    We are going to port the app to iOS platform and Desktop platform.

    The SQLite file written by Android Room, is going to pass to iOS/ Desktop via email attachment, or user private Google Drive storage. We do not have a central server, due to privacy concern.

    With such, we need to implement migration code for every platforms, with same logic.

    However, when challenging part is that, Android Room stores our database version code, in a table named room_master_table.

    id | identity_hash

    Very little information mentioned, on how identity_hash is being generated.

    Any idea, how to proper exchange data using SQLite file written by Android Room, with proper migration supported, in multiple platforms?

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

    What's the latest on App Indexing?

    Posted: 26 Dec 2019 05:17 PM PST

    My own app (published mid-November) is now finally discoverable by searching its name without my own. However it is absolutely nowhere in any keyword search that I've found, except one specific one with underscores.

    Previous apps have appeared at least somewhere in keyword searches after a few days.

    Are other people finding an improvement?

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

    Got trolled by SMS Messages autoresponder. Is there a way to populate your own Autoresponses?

    Posted: 26 Dec 2019 06:06 PM PST

    The autoresponder normally says,"yeah, yeah." "Yes" "No" "Ok" and the like. But a few moments ago it gave me the option to send,"Happy Birthday." So I did because my friend and I make fun of autoresponder all the time. We figured some Google Intern said,"Hey, I have a 1/365.25 chance of being right!"

    So my goal would be to make an extremely trolly messages autoresponder. Like fill it full of memes, etc, but you only get the standard four choices. It would be awesome for me, and maybe I could monetize.

    From what I know about Android is that they made the OS designed to be virus resistant so one app can't touch another app or it's data, and that is fine design. What I want about hacking SMS messenger might not even be available on a non rooted device. Assuming I don't root, can I hack Messenger's autoresponse choices?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel