• Breaking News

    Thursday, April 23, 2020

    Android Dev - Which is better on Android: divide by 2 or shift by 1? – Jake Wharton

    Android Dev - Which is better on Android: divide by 2 or shift by 1? – Jake Wharton


    Which is better on Android: divide by 2 or shift by 1? – Jake Wharton

    Posted: 23 Apr 2020 07:33 AM PDT

    TIL you can create groups in Android Studio's welcome screen

    Posted: 22 Apr 2020 12:53 PM PDT

    Jetpack Compose is going to use Skia for rendering the UI. High hopes for the multiplatform

    Posted: 22 Apr 2020 09:51 PM PDT

    How many of you have a fake public address up for your app?

    Posted: 22 Apr 2020 09:25 PM PDT

    Trying to figure out what to do regarding the merchant account forcing me to put my personal address

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

    APK Obfuscation tool advise

    Posted: 23 Apr 2020 03:45 AM PDT

    Can somebody recommend/share experiences with Obfuscation tools or whatever else they might be using to protect their code?

    There are some scary stories out there like one below; I think it's important to know how to protect your app:

    - for 8 months I used to decompile APKs files of a free app
    and change package id then inject APK that I generated with my ads finally republish apps and earn money.

    https://medium.com/@mostafaanter/protect-android-app-from-reverse-engineering-166a4fbdf772

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

    Android - DataBinding with LiveData holds old values

    Posted: 23 Apr 2020 03:44 AM PDT

    I have DataBinding set and I use a ViewPager BindingAdapter to switch between screens:

    BindingAdapter

    @BindingAdapter("app:nextPageListener") fun nextPageListener(viewPager: ViewPager, next: Boolean?) { next ?: return if (next) viewPager.nextPage() else viewPager.previousPage() } 

    View Pager

    <ViewPager android:layout_width="match_parent" android:layout_height="match_parent" app:nextPageListener="@{viewModel.nextPageListener}" /> 

    viewModel.nextPageListener

     private val _nextPageListener = MutableLiveData<Boolean>() val nextPageListener: LiveData<Boolean> get() = _nextPageListener 

    My issue is if I call _nextPageListener.postValue(true) and go to the next page and at some point leave the screen, when I come back the BindingAdapteris automatically called with truewhich makes the pager go to the next page. so basically on all the following times the pager is opened on the second screen.

    Not sure if it has anything to do with lifecycle, but if it helps this is what I have

    binding.lifecycleOwner = viewLifecycleOwner 

    Any idea how to fix this without some ugly workarounds?

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

    News App UX Poll

    Posted: 23 Apr 2020 05:53 AM PDT

    Hi guys,

    I am currently in the middle of an ocean of questions concerning the UX of an app i would like to build, to make good UX decisions apart from feeling i need more data. The app is a short news video app.

    I would like to know from your preferences and your experiences you gathered from your users which would be a best pratice in terms of UX.

    Should the videos be full screen vertical and be presented in a feed of stories (as of instagram or snapchat story format) with interstitial ads in between of the stories

    OR

    in a news scrolling feed ala facebook, instagram in a square format with native ads in between the videos.

    I would like to know which design would be more efficient in terms of user retention, engagement and in terms of ad revenue.

    Thanks.

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

    Embed a Kweb web server within your Android app - build one UI for web, mobile, and mobile native

    Posted: 23 Apr 2020 08:00 AM PDT

    Likewise, an app may not download executable code (e.g. dex, JAR, .so files) from a source other than Google Play

    Posted: 23 Apr 2020 01:54 AM PDT

    Hi,

    I am an android developer and play store has rejected our latest release the problem they have mentioned is
    --- Issue: Violation of Malicious Behavior policy
    An app distributed via Google Play may not modify, replace, or update itself using any method other than Google Play's update mechanism. Likewise, an app may not download executable code (e.g. dex, JAR, .so files) from a source other than Google Play. ---

    The problem is that my app does not download anything it's just a normal portal for viewing and liking some properties.
    Is there anyone who has faced this issue or managed to fix it..

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

    Cost of development?

    Posted: 23 Apr 2020 07:49 AM PDT

    Hi all, sorry I'm sure this has been asked before but I'm just trying to aquire a bit more knowledge here. So I recently created a small safety consulting company (legit its just me and one buddy) and I'm wanting to get a small app made. Like nothing crazy, just something with 4 buttons and have it to where both him and I can view each others work. I'm not a technically inclined person but I am able to spend time and learn if need be. But I was wondering if from my ignorant standpoint in what goes into app development if this would be something thats within reason to pay someone for? Or is it a bit of a pricey ordeal that would be better to take my time and learn? On pricing I wouldn't be trying to shortchange anyone or anything, I try to not be a shitty person haha.

    If anyone would like more information to give me a better idea of a quote please message me and I'll give you a quick rundown of the set up I'm aiming for. Nothing fancy by any means.

    Thanks for any help and insight everyone, have a good day and please be safe out there.

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

    How UX Design Can Solve Online Marketplace Issues

    Posted: 23 Apr 2020 07:31 AM PDT

    Design principles for an effective UX design

    Posted: 23 Apr 2020 07:28 AM PDT

    How important is UX design strategizing for your website or application?

    Posted: 23 Apr 2020 07:23 AM PDT

    Deceptive Behavior Policy violation - Misleading Claims

    Posted: 23 Apr 2020 07:22 AM PDT

    Hi, I had an app suspended that google claim it's violates the Deceptive Behavior policy. Apps that falsely claim affiliation with a government entity or to provide or facilitate government services for which they are not properly authorized.

    What my app does is request to a government free and public api, and display some information to the user. This api requests a sensitive user personal data to display this information. We wrote in the app description:

    "The data API of the Federal Government's Transparency Portal is free to use as provided for in DECREE No. 8,777, OF MAY 11, 2016. We use the transparency portal API to consult and return the information. (100% updated data straight from the transparency portal). > We do not store or collect information. Terms of use or questions directly access: http://www.portaltransparencia.gov.br/api-de-dados. The APP is independent of the \*** program, offered free of charge to all users. The application has no link with CEF or the Federal Government. The **** brand is wholly owned by the Federal Government. For more information about ****, access directly:* http://mds.gov.br/assuntos/\*\**".*

    Although, after few days the app was published I got the suspension and this were their anwser:

    We were not able to validate your account's legitimacy in affiliation with \***. In order to process this appeal, please reply to this email with verifiable documentation from Federal government of Brazil. A PDF documentation in your reply would be highly preferred.*

    I did sent the decree, the privacy policy and terms of use and the print of the app description, so they reply:

    As mentioned in the previous communication, we found that your app violates the Deceptive Behavior policy. We were not able to validate your account's legitimacy in affiliation with \***. In order to process this appeal, please reply to this email with verifiable documentation from Federal government of Brazil. A PDF documentation in your reply would be highly preferred.*

    I don't get it. This doesn't make any sense to me. We made clear this app has no affiliation with *** and we sent proof of the decree that allows to consult and use freely this api.

    Does anyone got through this? I can't quite get what I did wrong.

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

    Looking for help with COVID-19 charity app

    Posted: 23 Apr 2020 06:17 AM PDT

    I'm a student and a software developer working on a team that's creating an app to help people get through the coronavirus pandemic. The app's name is CO-mmunity. Its basic function is to serve as a bridge providing easy access to certain resources users might need in order to give or receive help For example, a person looking for digital volunteering opportunities might be connected to the American Red Cross, and a person looking for food might be shown Feeding America's list of local foodbanks. Those two people can even be the same person. Right now, we have a full UI flow and much of the programming done for the iOS version. However, the project is in need of assistance if the app is to be released in a timely manner. We need a visual designer to make our pages well-organized and good looking. We also need help with developing an android version of the app (we currently have an iOS version). If you are interested in joining the team, please contact [adimaggio2021@mka.org](mailto:adimaggio2021@mka.org) or CO-mmunity#9928. Also, please reach out if you have feedback or ideas. We really believe in the project and its potential to do good. We would love to have your support in this charitable effort.

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

    3 hours trying changing a checkbox color. What I'm doing wrong?

    Posted: 22 Apr 2020 12:12 PM PDT

    This isn't want to be a post trying to find a solution or some help from anyone willing to pass me some code. I want just complain and understand how can I became a better developer.

    My designer gave me a very simple screen consisting in a few input boxes and a checkbox. A login screen.

    After overcoming some issues in having the exact same style of the inputs (a rounded square, hint that disappears when typing and the possibility to view its own password) I thought I was almost done. How stupid.

    The checkbox I needed to implement was in theory very simple: white borders, white background that when selected turns green leaving a white tick on the inside.

    And here where I started to go crazy.

    I checked dozens of stack overflow posts, blog posts, youtube videos, official documentation and read the source code. Not only I haven't manage to reach a result near to the one I wanted but I wasn't able to find any meaningful solution to simple problems.
    How to change tick color?
    Is too much wanting a custom border?
    What if I don't want a custom drawable and just change colors?
    What happen to the animation when I provide my custom drawable?
    I need to use a Checkbox, a MaterialCheckbox, AppCompatCheckbox, what?
    Why the documentation is so sparse and so incomplete?
    Why every it seems to change every 1/2 years while the checkbox always looking and working the same way?

    I'm developing on Android for almost 2/3 years from now. I now I should have a complete understanding on how all the platflorm and the theming works but not only the ecosystem is constantly changing but also the documentation is lacking any sort of coherence.

    I don't think is fair require developers to spend all this time just to learn how the UI of a platform works and adding layer over layer of complexity instead fixing the basic stuff.

    Sorry for my rant. English is not even my first language and I don't even care to check again for spelling errors. Too much time wasted literally achieving nothing.

    For some context, this is just the official documentation I looked into:

    https://material.io/develop/android/components/checkbox/

    https://developer.android.com/reference/android/support/v7/widget/AppCompatCheckBox

    https://developer.android.com/reference/android/widget/CheckBox.html

    https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/checkbox/MaterialCheckBox.java

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

    Strategies to test a DocumentProvider that needs to be backed by real Files?

    Posted: 23 Apr 2020 05:24 AM PDT

    I have an app that offers a DocumentProvider that is backed by files in storage. To make sure I never corrupt any user data this needs to be tested as much as I can. To do that effectively I want to create a fresh copy of test files for every run, which might break if the tests fail because the DocumentProvider is buggy.

    I have read these documentation pages: https://developer.android.com/training/testing/integration-testing/content-provider-testing and https://developer.android.com/reference/android/test/mock/MockContentResolver

    But they're not very helpful. I'm thinking of how we run these sorts of test in something like Docker, you know? Set up a fresh environment, copy files in and run the tests. What's the closest I can get to this on Android?

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

    Android studio firebase login problem

    Posted: 23 Apr 2020 05:01 AM PDT

    I'm a newcomer to android studio and firebase but I can't seem to get a single firebase setup working. I've tried every tutorial I can find and every premade program out there and nothing seems to work properly

    Reddit gold to anyone who can get me a link to a pre existing program or tutorial that actually works

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

    Need an overview for content management in android

    Posted: 23 Apr 2020 04:40 AM PDT

    Hi guys, I am new to android development, I use it with Java.

    i would like to make an app that has the functions of a readable blog, so that the user opens the app and sees content that i have released.

    I would like to manage the data outside of the app so that i can, for example, insert text when i open a website send it and it will be automatically loaded into the app so that the user only needs to open the app and see the content for that day.

    What is the best way to do this? How can I manage my content outside the app in android.

    Which topics should I take a closer look at?
    Thank you.

    submitted by /u/1inux1ove
    [link] [comments]

    android Fatal Exception: java.lang.NoClassDefFoundError

    Posted: 23 Apr 2020 04:15 AM PDT

    android Fatal Exception: java.lang.NoClassDefFoundError

    I keep getting this error, actually, I don't get any errors when compiling on my phone (on Android Studio). Please help me!

    I'm running with AlarmManager to clear the sharedPreferences value at 12 o'clock at night (~11:55). I get such an error in Firebase

    https://github.com/theoyuncu8/alarmclass

    https://preview.redd.it/ljks8scnwju41.png?width=1056&format=png&auto=webp&s=91b45a0b73cf9061e656c9fb6191c285f1f0791a

    public class AlarmReceiver extends BroadcastReceiver { int notificationID; private SharedPreferences.Editor editor; private SharedPreferences.OnSharedPreferenceChangeListener sharedpreflistener; private SharedPreferences sharedPreferences; private String MAIN_DATA = "com.xxx.xxx.MAIN"; public void waterDataClear() { editor = sharedPreferences.edit(); editor.putFloat(WATER_DATA, 0); editor.putBoolean(WATER_DIALOG, true); editor.putInt(WATER_ML, 0); editor.apply(); } @RequiresApi(api = Build.VERSION_CODES.O) @Override public void onReceive(Context context, Intent intent) { sharedPreferences = context.getSharedPreferences(MAIN_DATA, Context.MODE_PRIVATE); Bundle extras = intent.getExtras(); notificationID = Objects.requireNonNull(extras).getInt("NotificationID"); if (notificationID == 10) { waterDataClear(); notificationID = 0; } } } 

    This is my Manifest.XML file.. Is there anything else i need to add?

     <receiver android:name=".AlarmReceiver" /> <receiver android:name=".WaterAlarm" /> <receiver android:name=".DietAlarm" /> <receiver android:name=".BootReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.QUICKBOOT_POWERON" /> </intent-filter> </receiver> <service android:name=".BootService" android:enabled="true" android:exported="true" android:permission="android.permission.BIND_JOB_SERVICE" /> 
    submitted by /u/emptyfiles
    [link] [comments]

    how to increase Voice call microphone volume to maximum

    Posted: 23 Apr 2020 04:08 AM PDT

    I have tried everything to increase the microphone volume of the voice call in android studio but I still can't do it. I managed to do something close in engineer mode but I want to implement something like it in my app.

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

    Is it bad practice to make an object public static in the MainActivity so fragments and list adapters can access it?

    Posted: 23 Apr 2020 04:03 AM PDT

    Imo it reduces the constant sharing of objects between fragments using bundles or other methods. Would it be better to use a getter and then get the object in fragments using ((MainActitivy) getActivity).getObject() and then pass the received object to the list adapters constructor?

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

    Is there a way to automatically switch to using mobile data when a particular app is opened on android?

    Posted: 22 Apr 2020 10:33 PM PDT

    In my country a certain mobile operator is offering free unlimited YouTube as a add on package. Is there a way that I can set my android phone to switch to mobile data when I'm already using WiFi and then switch back to WiFi after closing YouTube?

    Or is there any possibility to develop an app to do this specific task?
    Sorry if it's not the right place to ask this.

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

    I need help understanding video reward ads

    Posted: 22 Apr 2020 11:20 AM PDT

    Hi there. So I have an idea for an app and I want to use rewarded video ads to generate revenue. The problem is I dont understand how it works. How much revenue can I generate if I have 5000 active users and if they watch 5 rewarded video ads every day for a month. (The active users are from Europe)

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

    No comments:

    Post a Comment