• Breaking News

    [Android][timeline][#f39c12]

    Friday, April 24, 2020

    Weekly "anything goes" thread! Android Dev

    Weekly "anything goes" thread! Android Dev


    Weekly "anything goes" thread!

    Posted: 24 Apr 2020 05:40 AM PDT

    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]

    Android 11 DP3 new function summary: automatically cancel application permissions / share recent apps / Ethernet hotspot / ...

    Posted: 24 Apr 2020 02:47 AM PDT

    Android 11 Toast Updates

    Posted: 24 Apr 2020 08:44 AM PDT

    Android 11 Developer Preview 3 released

    Posted: 24 Apr 2020 10:17 AM PDT

    Updated open souce minesweeper game for Android. Now with custom Layout Manager. Feel free to give feedbacks

    Posted: 24 Apr 2020 10:08 AM PDT

    32 Design Differences between iOS and Android Apps

    Posted: 24 Apr 2020 05:39 AM PDT

    Material design in practice - A simplified project to demonstrate the latest guidelines

    Posted: 24 Apr 2020 08:24 AM PDT

    Emulator 30.0.10 Canary

    Posted: 24 Apr 2020 09:13 AM PDT

    Best feedback to Google Maps catastrophic mobile sdk crashes found in IssueTracker

    Posted: 24 Apr 2020 11:28 AM PDT

    Privacy Policy field not visible in store listing

    Posted: 24 Apr 2020 12:45 PM PDT

    Hi, I wanted to update the URL of my privacy policy but the field is gone.

    It is supposed to be under the Data section (website, email, phone), but I have nothing more.

    Has anyone faced this issue? Thanks in advance

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

    What was the hardest concept to learn when you started Android?

    Posted: 23 Apr 2020 07:29 PM PDT

    Noob here, just wanted to see what tripped up the veterans in your early days. I think the initial listview, recyclerview adapter thing tripped me up the most

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

    Firebase Cloud Storage alternative

    Posted: 24 Apr 2020 03:49 PM PDT

    I'm developing an app that involves uploading and downloading a lot of files. And looking at the firebase pricing I think the cost would exceed my budget. I wanted to know if anyone knew a cheaper alternative

    Thanks

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

    Clear Understaanding of RXJava 2 and Its operators

    Posted: 24 Apr 2020 09:23 AM PDT

    Is it bad to use third party libraries in demo projects shown in portfolio ?

    Posted: 24 Apr 2020 11:33 AM PDT

    Android Hacker's Handbook

    Posted: 24 Apr 2020 02:54 PM PDT

    Broker: Publish-Subscribe (a.k.a Pub/Sub, EventBus) library for Android and JVM built with Coroutines

    Posted: 24 Apr 2020 02:19 PM PDT

    One Tap sign in for Android apps

    Posted: 24 Apr 2020 01:55 PM PDT

    Is there a simple library to retrieve and decrypt already encrypted strings from a strings.xml file for a basic app with relettively non sensitive information?

    Posted: 24 Apr 2020 01:36 PM PDT

    So we have a couple of basic apps at my workplace, they're just used for checking quick bits of locally stored info. Like a simple list of locations, you click the one you want, and it tells you information about that location such as a phone number and a name. Thats just an example of how basic the apps are, not the actual data they contain. They're just simple apps used by a dozen employees just to quickly get a bit of info so no real time or money will ever be put into these apps. They're also just distributed by email too. The same data is also passed around in an unencrypted excel document too. The data also only needs updating every 6 months so there's no point in having it sync online.

    They work great but I hate the idea of everything in a plain text strings.xml file. So is there any simple library where I can just encrypt all the strings beforehand and when I require the string I just reference the string id along with a password and get the decrypted string back(as opposed to just referencing the string id)? It's not great security I know but something basic like that would be 100x better than nothing and would honestly be enough.

    I also get that the password has to be stored somewhere but I figured that since we have a password on startup why not just use that password on startup to call a string and return a decrypted string, and if that string is what we expected then the password is correct and then the app lets you in. That password can then be passed throughout the app until its closed. That way the password is never stored in the app. Again I know people can figure out the password eventually by looking at the encrypted/decrypted app passwoord string but thats more effort than our information is worth so I'd be very happy with that.

    So yeah basically instead of string=getResources().getString(R.string.string), I'd like it to be something similar to string=getResources().getString(R.string.one, decryptPassphrase);

    I've seen a couple of other solutions but they either go well beyond the scope of a basic app or they were posted 5+ years ago.

    Thanks for any replies. I also wasn't sure if I should post this in the weekly questions thread, seemed more in depth and longer than the example questions there.

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

    How to implement this scenario?

    Posted: 24 Apr 2020 11:50 AM PDT

    Whats the correct way to implement this scenario with MVVM and LiveData:

    Lets say I have two business models:

    data class User(val userName: String, val email: String, ...) data class FitStats(val totalStepCount: Int, val totalDistance: Int, ...) 

    I have a repository class that can pull both models. And I need to render the username, email, totalStepCount and totalDistance. What I'm not sure is how to model the ViewModel for this.

    Is this correct?:

    Have a model called UserStats like:

    data class UserStats(val userName: String?, val email: String?, val totalStepCount: Int?, val totalDistance: Int?) 

    Have a ViewModel:

    class UserStatsViewModel @Inject constructor(private val userRepository: UserRepository) : ViewModel() { private var liveUser: LiveData<ApiResponse<User>> = userRepository.getUser() private var liveFitStats: LiveData<ApiResponse<FitStats>> = userRepository.getFitStats() private var liveUserStats = MediatorLive<UserStats>? = null fun getUserStats(): LiveData<UserStats> { if (liveUserStats == null) { liveUserStats = MediatorLiveData() liveUserStats.addSource(liveUser) { updateMediator() } liveUserStats.addSource(liveFitStats) { updateMediator() } } return liveUserStats } private fun updateMediator() { val newUserStats = UserStats(liveUser.value?.userName, liveUser.value?.email, liveFitStats.value?.totalStepCount, totalStepCount.value?.totalDistance) liveUserStats.postValue(newUserStats) } 
    submitted by /u/opticoin
    [link] [comments]

    New in Google Pay

    Posted: 24 Apr 2020 07:45 AM PDT

    I'm new in implementing google pay in android, I read "Google Pay does not actually process the payment. It facilitates it by securely transmitting the user's selected payment method to a payment processor." A list of supported payment processors can be found at https://developers.google.com/pay/api/#participating-processors.
    So anyone know which the best payment processor to use and after implementing, where I can get the money, is it in google account?

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

    How do alarm clock apps work?

    Posted: 23 Apr 2020 09:54 PM PDT

    I feel like I've read a thousand posts just like this one or this one. I certainly have tried both AlarmManager.setExactAndAllowWhileIdle and AlarmManager.setAlarmClock after reading the only documentation that exists for setAlarmClock. You may also rest assured that on Android 10 I tried scheduling consecutive alarms that fire a notification with a full screen intent for a full-screen activity and the USE_FULL_SCREEN_INTENT manifest permission, as described by the missing manual to full-screen intent notifications.

    None of that allows subsequent alarms to turn the screen on from a screen-off state after the first alarm within a 9-minute time period.

    All of my test devices ranging from Android 6 to Android 10 have a built-in Clock app that is capable of setting two alarms, one minute apart. Both alarms wake up the screen within milliseconds of the minute I wished it to fire. Both alarms appear to turn the screen on and draw a full-screen activity over the lock screen and gives me a snooze/dismiss affordance, otherwise keeping the phone locked. Amazingly, the alarm I scheduled for a minute after the first one provides the exact same experience as the first one: it too wakes up the phone while the screen is off.

    I don't understand how the clock apps' alarm features could possibly be driven by any of the AlarmManager.set... methods, if there are power restrictions inhibiting wake behavior on subsequent AlarmManager.set... fires within 9 minutes. So what are they doing instead?

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

    AdMob - Ad Serving Limited - Worst Google Experience - Sad Story

    Posted: 24 Apr 2020 04:36 AM PDT

    So, I released my first app about 2 weeks ago, with AdMob enabled.

    A few days ago, I decided to run a Google Ads campaign since it is sooo recommended by Google Play Console under User Acquisition tab. Note: All Google accounts (Play Console, AdMob and Google Ads) use the same email address and are properly linked.

    It took a few days for the Google Ads campaign to actually start and generate impressions and installs. The moment it did, AdMob limited my ad servings (it's actually zero, not "reduced" as they claim). No, I did not click on my own ads, I don't even have the app on my phone and I only have a debug version with no ads installed on mine to test things.

    The claim is that there is "invalid traffic concern". I happen to find it funny exactly because it is incredibly outrageous.

    Use GOOGLE Play to publish app.

    Use GOOGLE AdMob to monetize app.

    Use GOOGLE Ads to generate installs for said app.

    Written GOOGLE in bold to highlight the fact that these are all services/products offered by the same company, you would think they wouldn't conflict each other especially when only one account is used to manage them all.

    Get Ad Serving Limitation because of invalid traffic concerns - I checked stats and there is a perfect match as in the new installs (based on Play Console report) perfectly matches the Google Ads conversion(installs) number. So all users came from the campaign GOOGLE ads ran.

    Side note: contacted Google Ads support about this matter, told them that the campaign somehow triggered Google Admob's invalid traffic bot or whatever that is. First question from the Support Representative - "What is AdMob, I'm not sure?" - Good jub, support representative have no idea what services and products Google offers.

    How on earth is it possible to get invalid traffic from that, I don't know. I read the forums, seems I am not the only one with this issue and given the comments where it is mentioned that it took MONTHS for the ads to be shown again for some users....I am currently in the process of updating my app with IronSrc SDK and remove AdMob entirely.

    Any similar experiences, or tips? Should I go ahead with IronSrc and not care about AdMob anymore, should I wait ? Oh yeah, best part...there is no support for AdMob.

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

    How to test my app on my computer

    Posted: 24 Apr 2020 02:41 AM PDT

    Hi all, I'm building an Android app using Python/Kivy (and then pushing it to my phone using Buildozer).

    All my code seems to work fine, however I noticed that when I put the app on my phone, there are a few things that the Android environment does, which don't show up on my laptop. One example is the hidden keyboard that will pop up whenever you try and type something, causing things to move.

    Instead of constantly making one tweak, then loading it to my phone to check, and then doing it again, I was wandering if there was something I can download that mimics my phone on my laptop, so I can run my testing there?

    If it helps, I am pushing my app to my phone using Ubuntu from a virtual box, so I will most likely download this there.

    Thanks all!

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

    Logging WorkManager Workers

    Posted: 24 Apr 2020 09:38 AM PDT

    I am trying to get some logging information on WorkManager Workers that i have running in my app. I am using version 2.4.0-alpha01 which uses the new diagnostics added by the Android Framework Team

    https://developer.android.com/jetpack/androidx/releases/work#2.4.0-alpha01

    They instructed me to run the following command

    adb shell am broadcast -a "androidx.work.diagnostics.REQUEST_DIAGNOSTICS" -p "<your\_app\_package\_name>"

    when i executed this command it just echoed

    Broadcast completed: result=0

    to the terminal

    They then informed me that i should see the diagnostics in logcat by running

    adb logcat

    I ran that command and then i see a continuous stream of output with a lot of strange unicode characters and no logs specific to my Workers.

    How do you go about parsing these logs to get information about your WorkManager Workers?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel