• Breaking News

    Monday, March 23, 2020

    Android Dev - Weekly "who's hiring" thread!

    Android Dev - Weekly "who's hiring" thread!


    Weekly "who's hiring" thread!

    Posted: 23 Mar 2020 05:44 AM PDT

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Weekly Questions Thread - March 23, 2020

    Posted: 23 Mar 2020 03:56 AM PDT

    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?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    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]

    Anyone not get their admob payment this month?

    Posted: 23 Mar 2020 05:12 AM PDT

    I received my payment on the 15th for IAP but have not received ad income. I'm assuming it's because of this covid business..

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

    Have details of a person and have to register it to a server whose endpoint I'm given.

    Posted: 23 Mar 2020 07:45 AM PDT

    Hi guys. So I have done basic android development using Java. I've got a task now to register a person whose information I have( name, number etc) to a server whose endpoint is given.

    Do I need to build an API or should I use some API to do this? Just point me in the right direction guys. Thanx!

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

    Refactoring a bloated repository

    Posted: 23 Mar 2020 09:18 AM PDT

    I have an MVVM architecture and am using the repository pattern (pulls from localdatasource [Database] and remotedatasource [ApiService]) with RxJava2.

    As the application has grown in complexity some of the functions in the Repository class are doing some more complex Rx chains with different operators used.

    As the responsibility starts to grow in the Repository what suggestions do you have to maybe break up this logic?

    Should the complex logic move to another class?

    Should another class inject the Repository in it?

    Or something else…

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

    Follow up: Transferring app to new Play account, what happens with purchase validation API calls?

    Posted: 22 Mar 2020 09:38 PM PDT

    As outlined in this post I was wondering when transferring apps between Google Play Developer accounts, what happens with the existing Google API Console project? Will in-app purchases just start failing until the new account creates and deploys its own API Console project? Does the old project get linked to the new account?

    Well, I grit my teeth and jumped in. The transfer went through within about 8 hours (on a Sunday)... at which point we started seeing errors in the server logs and the Google API console. Nobody could purchase our app anymore. We also couldn't process renewals. Fantastic.

    Even though I added the new account owner as the owner of the Google Play Android Developer API project, Google did not transfer the link to the new account. This resulted in 403 errors saying:

    The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.

    We unlinked the old account and linked the new one, and gave the correct service accounts access. Even after doing so, we still had errors.

    Finally, we added a dummy managed in-app purchase, inactive, to the apps under the new account. The errors went away, and we were able to then delete the dummy in-app purchase.

    Google really needs to do a better job with this process, but we seem to be back up and running!

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

    Add search to the spinner dropdown

    Posted: 23 Mar 2020 09:26 AM PDT

    Long story short, my app has been heavily using spinners to shows around 500 items, now I want to add search functionality to the spinner, my best bet was to use any lib but all the lib out there incorporated search into the dialog form of the spinner instead of the dropdown version, the other way around is to use autocompletetextview to achieve the desirable result, I was wondering if there is an easy solution of simply adding search functionality to the existing spinner dropdown.

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

    Quarantine Challenge

    Posted: 23 Mar 2020 09:10 AM PDT

    Hi guys, in the last days we've been seen doing random challenges to keep us busy during the quarantine.

    Following the mindset, I have a challenge for you!

    You have until day 31/03/2020 at 23:59 to create the most simple and random game you can imagine.

    Now we'll see who's the best developer :p

    See you in 7 days!

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

    Using Dynamic Entries For MPAndroidChart

    Posted: 23 Mar 2020 08:38 AM PDT

    Is there a way to set a variable as the entry data? How can I refresh the Pie Chart?

    Here's an idea of what I'm trying to go for and what I've done so far:

    Not The Actual Code

    ArrayList<PieEntry> entries = new ArrayList<>(); PieDataSet pieDataSet; PieData pieData; int var; public void UpdateVar(){ var = 10; } onCreate(){ var = 0; entries.add(new PieEntry(var, "Var")); pieDataSet = new PieDataSet(entries, "Entried"); pieData = new PieData(pieDataSet); pie_chart.setData(pieData); pie_chart.invalidate(); pie_chart.setDrawEntryLabels(false); onClickListener() { onClick(){ UpdateVar(); pie_chart.notifyDataSetChanged(); pie_chart.invalidate(); } 

    The problem is that "var" stays 0 on the pie chart, despite its value changing.I tried to Log it to make sure that it's changing, it is, but it's not updating on the chart

    Thank you.

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

    How do you get context into ViewModel?

    Posted: 23 Mar 2020 04:30 AM PDT

    Is extending AndroidViewModel and using application context the most efficient solution?

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

    How much money do your apps make

    Posted: 23 Mar 2020 08:14 AM PDT

    Quick question: how much money do your apps make and does the coronavirus effect your income?

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

    Order list items in room db?

    Posted: 23 Mar 2020 04:24 AM PDT

    I've been trying to order list items in room database using ItemTouchHelper, where the item has a position property, I posted this before but I got no valid response here. Can someone please help me with this?

    I spent a lot of time trying to implement it but it just doesn't work, I searched a lot but everyone is just implementing swiping and ignoring the dragging.

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

    Architecture for connecting touch events and openGLES (for pinch/scale, drag/pan)?

    Posted: 23 Mar 2020 04:19 AM PDT

    The effect is as in maps or a browser or an image viewer, where you can pinch-zoom and drag-pan. I do it by handling pinch/drag events, then scaling and translating a matrix accordingly, which is applied in a vertex shader.

    It's all working -- but the communicating is very awkward: from onScale/onDrag (in a GLSurfaceView) to draw (in a Draw object). I've just hacked a chain of objects to do it (mRenderer.sim.coords.draw), but there's got to be a better way!

    Is there a standard way to do it? Thanks for any pointers!

    submitted by /u/comp-sci-fi2
    [link] [comments]

    Handling the lint annotation: Requires api lvl 26 (current min 21)

    Posted: 23 Mar 2020 07:53 AM PDT

    Currently I'm using a mix of if elses and extension functions to deal with those lint annotations. Mostly because I want to use the most recent way of coding (eg: ColorUtils.argb(...)) and at the same time enable the app to a maximum of users. This seems so inefficient. I feel like a need to learn everything in two different ways while one is going to be forgotten (deprecated) anyway.
    So, how do you guys do it?

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

    AndroidX camera in production?

    Posted: 23 Mar 2020 03:20 AM PDT

    Hello, I hope you all doing well :) We are planning to switch Fotoappart library for camerax, due to dropped maintenance of that library and some errors occurring in phones like Nokia. Here is an error example.

    However, I doubt that it is still production-ready (even though that API is beta now) and will not cause issues (we only care about taking pictures , not vide recording) .. Working with camera API, we have encountered various issues, like black previews, crashes, strange lifecycle issues ant etc.. Perhaps someone has been using androidx camera for a while and can share their experience?

    Also, maybe I should rather use CameraView? Seems the most stable and maintanable currently, while CameraKit and Fotoapparat seems dead :(

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

    Handling in-app update's various error scenarios

    Posted: 23 Mar 2020 06:41 AM PDT

    I have seen a lot of apps now having in-app updates. I am implementing only IMMEDIATE flow and want to properly handle these error's mentioned here:https://developer.android.com/reference/com/google/android/play/core/install/model/InstallErrorCode.html

    But I am unable to properly incur from some of the error codes and what's the best way to handle those. Given that we need to force the update to the user.

    Example:

    The In-App Update API throws ERROR_API_NOT_AVAILABLE in different scenarios. But we want to force the update to the user, firstly, it's not clear from the documentation in what all scenarios this can happen.

    Secondly, If API is not available and I need to have a fallback mechanism in place using a Firebase Remote Config to check if an update is available. Then, why not just go with the Remote config approach only.

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

    Is FAN banner placement practically impossible to use in mediation?

    Posted: 23 Mar 2020 01:53 AM PDT

    Hey, did anyone have luck using Facebook Audience Network banner ads with AdMob? I had >200k impressions, 76% fill rate, 1,48 CTR and that didn't pass FAN quality check. Support is useless, as they point to guidelines, which are useless.

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

    Getting downloads - but don't know what the users want!

    Posted: 23 Mar 2020 05:09 AM PDT

    Hi guys,

    I have a simple emoji translator app, in which you can select preset questions and get the emoji translations for it. I am getting around 10 downloads a day mostly from Russia & Ukraine but from US & UK as well. Now all my users uninstall the app the same day. A couple of them have also left negative reviews and I am having a hard time understanding what is it that they want exactly.

    Please help me out!

    The apps name is Travemo

    Thank you

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

    How to success android app marketing on social media?

    Posted: 23 Mar 2020 02:32 AM PDT

    I'm a newbie for marketing.

    Recently, I have been developed some of app on play store, but there are no interesting for them.

    my friends say that I should promote to android application.

    By the way, I don't know about it.

    Is it possible? If everyone help me, thanks.

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

    Can anyone please share a link to a working CameraX Sample

    Posted: 23 Mar 2020 02:28 AM PDT

    CameraX just turned Beta last week, but I am not able to find any working samples , all of the samples online are for previous alpha versions and a lot of API changes took place since then, Can anyone please post a link to a working cameraX beta1 example.

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

    I'm on android studio the newest version and the option to generate a signed apk isn't popping up any suggestions?

    Posted: 22 Mar 2020 05:11 PM PDT

    I've tried reimporting it. I'm on windows 10, i imported an app from the program called buildbox any suggestion to help me be able to generate a signed apk?

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

    How To Make Android Game Apps?

    Posted: 23 Mar 2020 01:15 AM PDT

    Hi,

    I'm interested in making game apps like Angry Birds, Bubble Ball, Candy Crush etc. Is it the same as developing any other android app? How do I get started? Can you recommend any free resources?

    Also is Udacity's "Android Basics: User Interface"a good start?

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

    Android App- WiFi Password Show For rooted phones

    Posted: 23 Mar 2020 04:18 AM PDT

    You neer ROOT your device to use 'Wifi Password show'.Because on Android the wifi passwords are stored in "/data/misc/wifi/wpa_supplicant.conf" or "/data/misc/wifi//WifiConfigStore.xml"
    Wifi password show app features:
    Wifi password recovery
    share wifi password
    copy wifi password
    Show wifi info
    show wifi help section
    Generate qr code/barcode with wifi ssd and wifi password details

    https://play.google.com/store/apps/details?id=com.sbacham.srinu.showwifipassword2017

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

    Blackberry-KEY2>> Android-Recovery> Wipe-Data and Wipe-Cache from boot-menu, hard-Reset are not available like other android phones have? May please advise me?

    Posted: 22 Mar 2020 11:50 PM PDT

    Hiya,

    I want to to the hard-reset from boot-menu when the Blackberry-key2 powerup, before the android system even starts. Thus I tried all below but didn't work:

    Enter Recovery Mode on your device. To enter the recovery mode, hold the power button, home button, and volume up button altogether.

    The device will load in Recovery mode when powered on. Recovery mode gives you the option to clear the system cache and data from your device. This option is labeled as 'Wipe Cache partition' and 'Wipe Data Partition'. In this stage, you should use the Volume buttons to navigate.

    Here is a link to how to enter Android-Recovery> Wipe-Data and Wipe-Cache from boot-menu, hard-Reset if you still don't get what I mean: https://drfone.wondershare.com/erase-android/wipe-cache-partition.html and I do similar key combination like this I mentioned ion above paragraph on all of my Motorola phones and its work. But now I get a Blackberry-key2 and its not working? I understand that its possible to enter a soft-reset by entering from the Android-OS actually from system-menu inside android. But this is Soft-reset and its not an actual hard-reset that I want to enter Wipe-Data and Wipe-Cache from boot-menu itself. How shall I do the hard-reset from the boot-menu or android-recovery menu?

    Here some picture about it online to give you an idea what I mean:

    https://techviral.net/wp-content/uploads/2015/10/Wipe-cache-partition.jpg

    https://techviral.net/wp-content/uploads/2015/10/Wipe-System-Cache-Partition-On-Android.png

    May please help me to enter this android-recovery in the Blackberry-KEY2?

    Note: The device is 128GB/6GB one and I bought it in Germany?

    Tnx and best of luck

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

    No comments:

    Post a Comment