• Breaking News

    [Android][timeline][#f39c12]

    Monday, April 16, 2018

    Weekly "who's hiring" thread! Android Dev

    Weekly "who's hiring" thread! Android Dev


    Weekly "who's hiring" thread!

    Posted: 16 Apr 2018 05:46 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 - April 16, 2018

    Posted: 16 Apr 2018 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, 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]

    Stuck in Google Play update limbo

    Posted: 16 Apr 2018 06:02 AM PDT

    So around a week ago I got a message from Google Play letting me know my update was rejected due to the "Device and Network Abuse" policy.

    After speaking to the support team they quoted the YouTube ToS:

    You further agree that Content you submit to the Service will not contain third party copyrighted material, or material that is subject to other third party proprietary rights, unless you have permission from the rightful owner of the material or you are otherwise legally entitled to post the material and to grant YouTube all of the license rights granted herein.

    My app (Sync for reddit) does not allow users to submit content to YouTube so I'm struggling to see how this is even relevant.

    Further to this Google have now stopped replying to all messages simply stating:

    As much as I'd like to help, I'm not able to provide any more information or a better answer to your question. In our previous email, I made sure to include all the information available to me.

    At this point I'm stuck in limbo; do I submit a new version with some note to the review team stating again that the app doesn't allow uploads or do I just keep waiting?

    Cheers,

    Laurence

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

    RANT - The Android Gradle Plugin's Documentation is beyond terrible. Google, get yourself some damned technical writers!

    Posted: 16 Apr 2018 01:10 PM PDT

    Today, I finally got around to fixing the artifacts.gradle file I use to name the APK file the way I want it to be named - {appName}-{versionName}-{productFlavorName}-{buildTypeName}-{shortGitSHA}.apk

    I originally got this file a long time ago from some SO article (and I think /u/JakeWharton might have been the original source for this, thanks as always!).

    But it broke a long time ago when AS 3.0 came out with the updated Gradle plugin. So first thing I did as a good developer, I went to the documentation. I knew from other SO articles that I needed to edit a variable called outputFileName, but I have no real idea what is available to me on the variant object, and I need the product flavor name. I muddle my way through to the AppExtension documentation, find the applicationVariants documentation, and all I get is a shit little example, and a blurb telling me what I already know. But I see a sentence that might be helpful - "Returns a collection of build variants that the app project includes." So I click it. But instead of getting a nice JavaDoc on the ApplicationVariant object, I get to a page that just high level covers build variants. So, where the hell is the damned documentation on the ApplicationVariant object?

    So failing docs, I fall back to the IDE. I hit ctrl-space on variant. I get some help. But nothing looks good. I type in variant.productFlavors and bring up intellisense code completion again. Nothing.

    Eventually, I give up trying to figure this out myself, and I find the answer on SO - I need variant.productFlavors[0].name. Of course, none of this shows up in the IDE, and I can't easily find this in the documentation. How does anyone actually figure this shit out? And how as devs are we supposed to just know this crap?

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

    I searched the web for an expandable cardview library, but i didn't found anything simple to use. So i made one

    Posted: 16 Apr 2018 08:19 AM PDT

    Hey guys. For a work project i needed an Expandable Cardview similar to the expansion panels described in the material design guidelines, but all the libraries i found seemed to me a bit too complex to setup/implement for a simple Cardview.

    I wanted something very simple and that you could setup in a couple of minutes, so i decided to make my own library!

     

    The library is now in a stable state with some basic features.

    For a very basic Expandable Cardview you just need to declare the view in the layout and specify which layout the cardview needs to have as inner view, and you're done. No Java code required.

    I'm looking forward to add more features (first of all compatibility with ListView/RecyclerView) when i'll have some spare time.

    So i'm sharing this here, hoping that would be useful to someone. Any advice or contribution would be greatly appreciated :D

     

    Here is the GitHub Page and the Demo Application.

    Cheers!

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

    Android Studio 3.2 Canary 11 now available

    Posted: 16 Apr 2018 10:43 AM PDT

    GDPR preparations

    Posted: 16 Apr 2018 02:20 PM PDT

    It would be nice to have a thread for the GDPR preparations. Something like GDPR for "dummies".

    I think the main questions are:

    • Which third party libraries should get extra attention? (AdMob, Firebase Analytics, Firebase Crashlytics, ...)
    • Is a privacy policy really needed and all 3th party libraries need to be mentioned in it (privacy policy which includes details on how you process end-user data, for which purposes and who else has access.)
    • If an app has 20 languages is the privacy policy also needed in 20 languages?
    • Can the app just link to the privacy policy of a 3th party library?
    • Does the app need to show an opt-in dialog for obtaining verifiable and valid consent for every 3th party library (The end users should know precisely and honestly, exactly what they're consenting to and the consent must be based on an explicit affirmative uncoerced action)?
    • If an app has 20 languages is the opt-in dialog also needed in 20 languages?
    • How to implement opt-in to personalised ADs for Ad-Mob (Is there a way already to show not-personalised ADs)?
    • How to implement opt-in for Firebase Crashlytics
    • How to implement opt-in for Firebase Analytics

    It would be nice to collect "privacy policy" and "opt-in dialog" texts for commonly used 3th party libraries (AdMob, Firebase Analytics, Firebase Crashlytics, ...)

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

    [Codelabs] Android Paging codelab

    Posted: 16 Apr 2018 05:40 AM PDT

    PSA: Logcat now hides repetitive messages

    Posted: 15 Apr 2018 08:43 PM PDT

    I believe this started in Android O (API 26).

    To see what I'm talking about, try running the following on an API 26+ device:

    for (int i = 0; i < 10; i++) { Log.e("Foo", "Test"); } 

    Here's what I see:

    04-16 03:24:21.590 E: Test 04-16 03:24:21.591 I: uid=10085(u0_a85) xxx.yyy.zzz identical 8 lines 04-16 03:24:21.591 E: Test 

    Eight of the lines are being removed.

    This new Logcat behaviour caused me to waste an hour yesterday believing that my app had a bug. I was printing to Logcat in certain callbacks to check whether those callbacks were being invoked, but some of the lines were being hidden because they were identical, which made me believe that some methods were not being hit.

    On a side note, does anyone know how to disable this? People on SO are talking about disabling a similar feature with adb logcat -P "", but that's not working for me. One workaround is to change the lines so that they're not identical, but it seems silly to have to do this.

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

    resource to learn design UI apps Android

    Posted: 16 Apr 2018 09:22 AM PDT

    Hi guys! Im coder and for me the most complicated no it's the programming, its the design UI/UX and i want resolve this opportunity area, because its a big problem, i have some apps and working fine but the UI its horrible.

    you know tools/sites/books or tips about this?

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

    Where is drag to resize handle in layout editor is AS 3.1?

    Posted: 16 Apr 2018 01:03 PM PDT

    Is anyone missing the resize handle in the bottom right corner of the layout editor in the latest Android Studio 3.1? Is it gone since 3.0 or am I missing something. I also downloaded 3.0 version an the handle is there. So is there a way to turn it back on?

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

    how can i custom the camera ? android Studio

    Posted: 16 Apr 2018 03:54 PM PDT

    I want to edit the duration of video I want that it only permit to record 30 seconds how can i do it ? plz help me

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

    Reduce app price under 0.50 in GPC

    Posted: 16 Apr 2018 03:36 PM PDT

    Hello,

    I'm trying setup a pricing template in GPC, but I always get the message 'The default price needs to be between £0.50 and £300.00.', how can I reduce it below 50p?

    Many thanks

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

    What do you look for in an incoming Android intern?

    Posted: 16 Apr 2018 10:54 AM PDT

    So I was lucky enough to score a pretty nice Android internship for this summer. I'm really excited to join the team but also have this looming dread about not knowing enough. I started learning Android dev in my free time only three months ago so I feel a bit inadequate joining a team of highly experienced engineers. As such, I'm planning on solidifying my knowledge in the two weeks leading up to the internship.

    If you've worked with an intern (or if you've been one), what are some Android-specific skills that you found to be the most useful and/or impressive? So far I've planned on getting the basics pat down for dependency injection and testing principles. But I'd love to hear your thoughts on this!

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

    Effective Kotlin: Consider inline modifier for higher-order functions

    Posted: 16 Apr 2018 12:55 AM PDT

    [Podcast] Fragmented Podcast Episode 121: Functional Programming with Kotlin Arrow team – II

    Posted: 16 Apr 2018 05:53 AM PDT

    Cannot use mediaplayer outside of mainactivity

    Posted: 16 Apr 2018 01:10 PM PDT

    I am having a really hard time trying to use a MediaPlayer to play a sound, since I want to use it in a different class, but am not able to, any ideas?

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

    PasscodeView - An Android Library to easily and securely authenticate user with PIN code or using the fingerprint scanner.

    Posted: 16 Apr 2018 03:59 AM PDT

    Cannot get the canvas to be full screen

    Posted: 16 Apr 2018 10:36 AM PDT

    When working on my app I decided to remove my header, and I cannot get the onDraw canvas to be on the whole screen, it does not use some of the bottom and right side. I have an xml with a backround expanding on it all, but cannot paint on the most bottom or right. Any help would be appriciated

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

    Create a project in Android Studio 3.1 without internet

    Posted: 15 Apr 2018 07:04 PM PDT

    Good day fellow devs,

    I have tested creating project using Android Studio 3.1 yesterday without having internet connection.

    All I got was the error No cached version available for offline mode

    Is there really no way to create a project without internet connection?

    If there is, please save my life.

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

    Enable 2.4 GHZ and 5 GHZ Network Scanning

    Posted: 16 Apr 2018 10:12 AM PDT

    I have an app that needs to connect to a local 2.4 ghz hotspot that is created by a custom piece of hardware.

    Right now some users have complained that they cannot see the hotspot network in their list of networks. I think this is happening because their device may be used to just connecting to their home 5 ghz network and may not be looking for 2.4 ghz networks.

    Does anyone know if there is a way to force Android to scan all networks?

    My client does not want to ask for location permissions, so I cannot do the network scanning manually within the app, and am not sure it would fix the problem anyways.

    I have been looking at ConnectivityManager, and WifiManager, but am open to any solutions.

    Thanks in advance and please excuse my lack of general network knowledge.

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

    Help with posting JSON object to a remote database

    Posted: 16 Apr 2018 12:15 AM PDT

    So, first of all I'm not sure of the terminologies. I said "post JSON object to remote database" but I'm not sure if that's what I actually mean. I'll describe the problem below:

    I have data in my android application on android studio.I figured out how to convert it to JSON (using Gson library). Now I want to post this data to a server/database (CouchDB if that helps) which is hosted on the same PC.

    Well... I've been googling since yesterday on how to do that but I still have no clue. How do I get this data to CouchDB?

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

    How long before I can start applying for entry level android developer jobs?

    Posted: 15 Apr 2018 09:47 PM PDT

    I just graduated from a 3 yr college. So I can learn stuff faster then a complete beginner would. I did a basic android course in college for 4 months and 4 months in java about a year ago but gotten back into it recently and I've been doing android development now for about 1-2 weeks straight. If I put in 8-13 hours a day studying and developing my skill, how long do you think it will take me to do decent in a junior android developer role? By junior I obviously mean the lowest level offered. What are some good ways to judge if I am ready to apply? Things that I must know? I just really need a job, any job will do but I don't want to apply and get an interview and look stupid knowing nothing lol. Also what should I include in my portfolio/app to impress employers? I'm from Toronto, Ontario if that matters. Thanks you so much, this has been stressing me out haha. Cheers!

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel