• Breaking News

    Wednesday, November 13, 2019

    Android Dev - Failed Senior Android Interview Take home assignment

    Android Dev - Failed Senior Android Interview Take home assignment


    Failed Senior Android Interview Take home assignment

    Posted: 12 Nov 2019 08:54 PM PST

    Hi Everyone

    I recently was rejected for a 2nd round of interview for a Senior Android position after the company reviewed my take home assignment. I couldn't figure out why and the response from the hiring manager was very vague. It did not give me much explanation that I can use to improve on my next interview assignment. I have been building Android app for a long time so this really frustrates me not know why I was rejected.

    I was asked to build something with an image library. I was told they were mostly interested in seeing clean separation between logic and presentation code and use standard android best practice. I had 4 hours to complete the assignment (enforced by an honor system). What I did was build a matching card game app. The user selects a set of images, I double that set and shuffle it around. The game board consist of a recyclerview with the card hidden behind a generic image...

    The link to the repo is below. I would greatly appreciate it if someone can let me know how I can improve on my design and style. Any feedback will be greatly appreciated.

    Link to Repo: https://bitbucket.org/Truelai108/matchme/src/master/

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

    Experience using GraphQL instead of a RESTful API?

    Posted: 13 Nov 2019 06:45 AM PST

    Hi Everyone! 👋

    I'm writing an article about RESTful API design best practices focused on mobile clients. I stumbled across GraphQL and it looks very neat! But I don't see that many http clients that actually support GraphQL. The only http client that actually supports GraphQL is the one created by them, called Apollo. And setting up, configuring and making requests through Apollo doesn't look that easy either.

    I've been doing Android development for the past nine years and I've always worked with REST-ish APIs, nothing else. Some great, some poorly design, some that you could barely call RESTful. But RESTful APIs nonetheless.

    Any of you guys have any experience working with GraphQL? Or any other API that isn't RESTful? What's your experience?

    Thanks!

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

    Just got this Microsoft surface event picture when asked Google Assistant about chrome OS

    Posted: 13 Nov 2019 04:51 AM PST

    Is Google doing something to fix the OEM meddling with background apps?

    Posted: 12 Nov 2019 11:49 AM PST

    I've been developing an app and stumbled upon an issue that's probably very familiar to some of you. I am testing on a Samsung device and everything was working well until I got to the widget.

    I am using a JobIntentService and according to the docs, the OS will allocate time to run the background task in API 28+ since it is not high priority. The issue is that Samsung (and other OEM according to dontkillmyapp.com) are meddling with this and "customizing" the experience to "save battery" neutering Android. In the Galaxy S8 almost all apps go to this special sleeping apps list and it won't let even job schedule tasks complete unless you start the app. Once I manually take my app from that list the widget will work as intended.

    Has google given any signs of forcing OEMs to stop meddling with this? Dealing with API fragmentation is bad enough that now not even the same API levels behave as expected.

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

    Small Android Game

    Posted: 13 Nov 2019 06:50 AM PST

    Hello guys,

    i wann do a small project, where i build a game in android and kotlin. Now the thing is, i am looking for a 3d render engine (maybe game engine). I already looked at many options (libgdx, unity, etc..), but the problem with those is, that it doesnt feel like it is android anymore. Most of those things are cross platform, which i dont need.And i know game dev is a bit different from normal app dev.

    I saw some projects using swing or the normal android view, but these things arent capable of 3d as far as i know. I tried using opengl es, but i found it too low level and hard for me. I just need some way to render some 3d things and a small physics engine i think. i just want somehing on top of opengl.

    EDIT: I just saw in another thread, that you can use libgdx in a smaller scale with android and build just fragments with it. Does anyone have a link/reference for that?

    EDIT2: I just heard from SceneForm from google, can it be used without the ar part?

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

    HELP: Subscription/IAP details have stopped coming from Play Billing Library with devices with muliple accounts

    Posted: 13 Nov 2019 01:29 AM PST

    From past few days, many of our paying users have started reporting that they are not able to use the paid features in our app. Upon investigation we found that useres with multiple google accounts on their devices are facing issues with Play Billing Library not showing the subscriptions they have bought previously.

    As seen here (https://github.com/android/play-billing-samples/issues/2) its a long standing issue but it has somehow escalated to a huge extent in the last few weeks. Any help on this front would be highly appreciated.

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

    App do not show in PlayStore search without underscore

    Posted: 13 Nov 2019 06:19 AM PST

    Anyone know why would PlayStore search won't show my app unless i typed it with an underscore? I understand that it might take days before the app would be indexed but i had my application live since November 3.

    For background, the app is created using flutter. Here is what my PlayStore search looks like if try to search it with and without underscore http://imgur.com/gallery/g1KXCWf

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

    WeChat Login Integration Process: Tips And Tricks To Know

    Posted: 13 Nov 2019 05:54 AM PST

    Kotlin Delegates in Android

    Posted: 13 Nov 2019 05:45 AM PST

    What are some smart watches/activity tracks that and developer friendly?

    Posted: 13 Nov 2019 05:34 AM PST

    We are looking for something that provides accelerometer and preferably gyroscope as well. We want the sensor data to at least be to our application.

    Ideally looking for a lower cost device with low power consumption.

    Any thoughts?

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

    How do you show the value of Instrumented Tests to corporate?

    Posted: 13 Nov 2019 04:49 AM PST

    Hi there,

    I work in a big project with about 10 teams who focus on different parts of an app. There is a rotation problem and people who come in usually don't have experience with Tests and they take some time to catch up and write them well.

    So, the managing team had a meeting and came up with the idea of not requiring Instrumented Tests to validate UI anymore, only JVM tests. The idea behind it is that they have QAs who will write these automated tests (with Calabash and such).

    Has anyone been in this situation? How did you show the value of Instrumented Tests written in Espresso on the same codebase to management?

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

    Made an app for IOS and want to make it for android too, have a question about a function using firebase

    Posted: 13 Nov 2019 04:11 AM PST

    Basically I am trying to convert my IOS app to android, and have a question regarding firebase.

    I have this function:

    public func getVideos(in topic: TriviaQuestion.Topic){ var videoInfo : [Video] = [] databaseHandle = ref?.child("Videos").observe(.value, with: { (snapshot) in //Code to execute for videos in snapshot.children.allObjects as![DataSnapshot]{ let videoObject = videos.value as? [String: AnyObject] self.topic = videoObject?["Topic"] as! String if(self.topic == "Trauma"){ print(videoObject?["Name"] as! String) print(videoObject?["VideoURL"] as! String) print(videoObject?["ThumbnailURL"] as! String) videoInfo.append(Video(videoName: videoObject?["Name"] as! String, videoURL: videoObject?["VideoURL"] as! String, videoThumbnailURL: videoObject?["ThumbnailURL"] as! String)) Video.giveVideos(topic: TriviaQuestion.Topic.trauma, videos: videoInfo) self.videoDelegate?.refreshUI() } } }) } 

    It basically is a function that will read firebase, and return an array of "Video" objects. Now my problem is the kotlin syntax for the firebase part of the function, since kotlin firebase does not have DatabaseHandle for some reason, and a lot of other changes. Any ideas?

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

    Any tips for Googling questions?

    Posted: 12 Nov 2019 09:17 PM PST

    I'm a bit frustrated, but I'll try and stay rant free: am I doing something wrong, or is there a better way to Google questions about Android development? When I search questions for C# for work, I get back tons of answers and usually the first few Stack Overflow questions hit the nail on the head. When I Google Android questions, Stack Overflow is often dead with top answers from 7+ years ago that have lost relevancy, and searching developer.android.com directly is a bit of a nightmare.

    A simple example: for a school project, a requirement is to not store passwords in plain text. The teacher's clear it isn't a security class, so we don't need anything crazy, but just show vague effort in this category (we'll just do some client hash and send that over the wire). So I Google "password hashing in android" and the top hit is this Stack Overflow answer that's over 8 years old and has 0 votes. Other searches lead to people squabbling about sending it in plain text over the wire and hashing client side but nothing really clear. I figured this should be a super common question and I'm not even asking for anything fancy here.

    So, does anybody have any advice? A better place to search or place to ask? Or a better way to ask?

    Much thanks in advance.

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

    Introducing Konfigure - better app config using Kotlin

    Posted: 12 Nov 2019 03:00 PM PST

    How to have a Toolbar to have only action items in it, and use its space as much as possible for it?

    Posted: 13 Nov 2019 01:06 AM PST

    How to have a Toolbar to have only action items in it, and use its space as much as possible for it?

    I'm trying to have a toolbar show just action items. No title. And I want them to fill the space as much as possible, and if there is no space for some, have them on the overflow menu item.

    This can include all kinds of action items (including those with customized action-view).

    For some reason, even though I've set all padding/spacing on the toolbar, and even though I set `SHOW_AS_ACTION_IF_ROOM` for each of the action items, it doesn't occur.

    It shows about 2 items max, even though there is a lot of space left:

    https://preview.redd.it/qkm0c4p36fy31.png?width=483&format=png&auto=webp&s=15cfffa54a14fdabc5c8f65df87310eb0a88e70c

    Here's what I tried :

    https://stackoverflow.com/questions/58838220/how-to-have-a-toolbar-to-have-only-action-items-in-it-and-use-its-space-as-much

    What am I doing wrong? What's missing?

    Sample project here.

    BTW, how come my text here (on reddit) gets messed up each time I write code? I use the toolbar of the website to mark it as code or as quote, but it always gets messed up... I had to take a screenshot of the code instead, because no matter what I do, it gets ruined (indentation and new-lines get lost and the code become a single line...). Then I decided to just post this on StackOverflow too...

    submitted by /u/AD-LB
    [link] [comments]

    Buttons do not show up in the Android Emulator (Android Studio Question)

    Posted: 13 Nov 2019 12:36 AM PST

    Buttons do not show up in the Android Emulator (Android Studio Question)

    I'm creating an app in Android Studio.

    The problem is:

    When I run the emulator, the button does not show up.
    Only the background image of my main activity.

    I've declared the button in the MainActivity xml file as:

    https://preview.redd.it/p0dvhnyu0fy31.png?width=1428&format=png&auto=webp&s=b5a58fc29669e6b7fe7db62c33050f1a950b14ea

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

    Koin: How to handle scope?

    Posted: 12 Nov 2019 08:07 PM PST

    Looking for a GitHub repo to learn best practices in TDD, MVVM, RxJava, Background processing and Dagger

    Posted: 12 Nov 2019 09:44 AM PST

    I am struggling when it comes to understanding and keeping up with the latest trends in Android application development. I generally work my way by looking at the code of a fellow developer, pickup things from them.

    Do you have a any recommendations on where to start? I am interested in learning about DI usage in services..

    Update : I did find a repo, https://github.com/ologe/canaree-music-player. It seems good enough to start. The multi module architecture seems very well done. I have been developing a media player app to learn Dagger, Rx and Background processing.

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

    Outsource Mobile Application Development

    Posted: 13 Nov 2019 03:43 AM PST

    Outsource Mobile Application Development

    https://preview.redd.it/qerlyxbzxfy31.jpg?width=800&format=pjpg&auto=webp&s=6705f530aa49d60a2d030a328ada6b09fe3c57aa

    Pros and Cons of Outsourcing Mobile App Development

    1. Mobile App Outsourcing is Cost-effective

    As it is said, outsourcing is money saving. Reasonable cost is one of the most critical factors and advantages of hiring an offshore application development team. Currently, businesses can easily find professionals at an effective cost, who can support in providing a high-quality IT product. Outsourcing reduces the total development costs, and in such cases, it's possible to save money on atop costs and spend lower prices on offshore labor.

    On the other hand, if you have an in-house team, you offer a monthly salary regardless of the workload. However, outsourcing gives an opportunity to hire a team for a single project.

    2. Time-saving

    Being first in the market may greatly influence the competition. When offshore companies work 24/7 to deliver the software product within the deadlines set in advance, the development process takes less time.

    3. Additional Experience

    Very often, an in-house team may lack the specific knowledge and experience to deliver the required solutions, and as a business, you have to spend time looking for additional talents who should be trained to suit your project needs. The mobile application outsourcing brings extra experience and knowledge to achieve business objectives.

    4. Wide Choice of New Talents

    While outsourcing development, businesses deal with a larger market for IT companies. They have a wide choice to select the best app development company in the extensive pool of talents. As a result, there is an advantage to choose the company experienced in your business field.

    You may learn about the experience sphere of the company by checking their portfolio. There you get familiar with the various business solutions the agency has provided in different industries.

    5. Business Value

    The companies that rely on outsourcing have staff overloaded with work. The outsourcing services can help to take care of the overall programming processes and highlight the main functions. An offshore agency takes all the hard work of development, and you save time to focus on other higher tasks, including marketing, demands, content, and other additional services. Outsourcing helps you get more free time, and you can take into consideration other essential functions and be more active in other areas of business scope.

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

    Permissions Failures. If it's not one thing it's another.

    Posted: 12 Nov 2019 05:11 PM PST

    So I have been working on this application. I have yet to get much of the backend working properly. I did the front end and now am trying to integrate the native part into the UI.

    I have UI Layouts for both a tablet and phone. I have been using the tablet layout mostly due to ease. Today I went back to using the emulator while I was taking my son to a Dr. appointment. Now my app start crashing from the beginning. Not sure why.

    Emulator is running 8.0

    Here is the problem code (It does not crash here):

    val dir = createProjectFolder(this@MainActivity) if (dir != null) { val ex: InputStream = assets.open("ex.tgz"); val proc = ProcessBuilder("tar", "-xzf", "-").directory(dir).start() try { val buffer = ByteArray(4096); fun pump(): Boolean { val n = ex.read(buffer) return n > 0 && proc.outputStream.write(buffer, 0, n).let { true } } while (pump()) { } proc.outputStream.close() } catch (e: IOException) { Log.d("FOO", e.toString()) } Log.e("FOO", "OUT: ${String(proc.inputStream.readBytes())}") Log.e("FOO", "ERR: ${String(proc.errorStream.readBytes())}") proc.waitFor() Log.d("FOO", "DONE") } 

    What is happening is that I am getting and IOException after about 8K of reading. The logical says:

    D/FOO: java.io.IOException: write failed: EPIPE (Broken pipe) E/FOO: OUT: E/FOO: ERR: tar: exec gunzip: Permission denied tar: read error D/FOO: DONE 

    So I figure that at some point along the way, I had some permission set that I inadvertently took out... but maybe not?!

    I uninstalled the app on the tablet and ran it from scratch, everything worked fine still.

    I looked in the settings to see what permissions the app had: No Permission Required

    Tablet is Samsung TAB A 2019 running Android 9.0

    Phone is Samsung J7 2018 running Android 8.0

    Emulator is Pixel 2 XL Running 8.0

    Is this a problem with Android 8? how can I fix it?

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

    How to achieve exact background processing in Android apps?

    Posted: 12 Nov 2019 04:46 PM PST

    Job scheduler, Alarm manager, Work manager and Services are some ways that I have come across. How to ensure a task is executed irrespective of restrictions?

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

    No comments:

    Post a Comment