• Breaking News

    [Android][timeline][#f39c12]

    Thursday, April 26, 2018

    Trying to find open source people to help with WireGuard secure networking tunnel app Android Dev

    Trying to find open source people to help with WireGuard secure networking tunnel app Android Dev


    Trying to find open source people to help with WireGuard secure networking tunnel app

    Posted: 26 Apr 2018 12:32 PM PDT

    [This isn't a hiring post or something. There's no job. There's no company. Open source discussion follows below.]

    I'm the author of WireGuard, which is a secure network tunnel protocol and open source project. We've recently gotten an Android app out the door, which has been big news. Like everything else in the project, it's open source and written by volunteers.

    As WireGuard is mostly a cryptography, networking, and kernel project, we're pretty short staffed when it comes to competent Android development. I can kind of twiddle around with it, but I'm not exactly knee deep in Android app development myself.

    I made a TODO list of stuff that needs to get done and fixed. Now what I could really use is some man power from people who really love open source software and working on community-run projects. So if anyone is interested in getting involved in something new, please do shoot me a message. If you take a look at the app and decide you don't like it and want to rewrite it entirely, that'd be fine too.

    Anyone here into secure networking protocols and Android development and open source software?


    EDIT: Wonderful responses so far. The best way to get in touch about this, aside from this thread which of course I'm checking, is finding me on Freenode -- I'm zx2c4 and we have a channel called #wireguard. If IRC isn't your thing, just PM me and we'll find some messenger we're both on.

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

    Google I/O Tips

    Posted: 26 Apr 2018 02:18 PM PDT

    I'm a junior Android developer headed to Google IO in MountainView in a couple weeks for the first time.

    For those of you who have been, how was your time best spent?

    Where did you learn the most? (Codelabs, presentations, networking with Googlers..)

    Best Android adjacent panel topics to see?

    Any logistics tips in general? (What to pack, wear, when to get badge, etc..)

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

    Android Developers site gets a fresh coat of (white) paint

    Posted: 26 Apr 2018 06:30 AM PDT

    What's the size of your project, how many modules and how long do builds take?

    Posted: 26 Apr 2018 12:10 PM PDT

    We've had a great discussion in another thread about build times.

    I think it will be interesting and insightful to get stats from other community members as well. This will allow us all to calibrate our expectations and indicate opportunities for improvement.

    Trivially, build times depend on the size of the project. As much as lines-of-code metric is flawed, it is still the best metric that allows approximate comparison of projects size.

    To use LOC comparison, however, we need to agree on methodology.

    So, the methodology for this survey:

    1. Use cloc tool to count lines of code (java, kotlin, xml)

    2. Feed into cloc only the contents of src dirs in your module(s)

    3. Exclude test dirs src/test and src/androidTest (because not everybody have tests and they don't affect build time AFAIK)

    4. Measure the time assembleXXXDebug consumes from clean state. Substitute some flavor for XXX or nothing if you don't use them

    5. Measure the time assembleXXXDebug consumes incrementally. Substitute some flavor for XXX or nothing if you don't use them

    6. Share the results with the community and get lots of good karma

    If your project has a "standard" structure, this single command will take care of steps 1-3 for you (execute from project root folder):

    find ./ -maxdepth 2 -type d -name src | xargs cloc --exclude-dir=test,androidTest 

    I propose the following format for the reports:

    1. CPU

    2. RAM

    3. SSD/HDD

    4. Gradle Version

    5. AGP Version

    6. Number of modules

    7. Line count (java + kotlin + xml). Can be simply cloc output

    8. Clean build

    9. Incremental build

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

    What do you guys do when the Gradle build is running?

    Posted: 25 Apr 2018 10:38 PM PDT

    What happened to databinding v2?

    Posted: 26 Apr 2018 01:33 PM PDT

    Google used to mention 'enableV2' on the data-binding guide, but no longer.

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

    Annoying problem with Android Studio 3.1.2

    Posted: 26 Apr 2018 01:16 PM PDT

    Hey, folks. I've noticed a weird issue that seems to have cropped up in the latest version of Android Studio.

    I normally build my apks on the command line instead of using the menu commands in AS, and this has always worked just fine for me. However, ever since the 3.1.2 update this has led to a weird side effect. When I build my app and switch back to AS, it seems to have lost all of its links to the Android SDK, and a whole mess of errors pops up in the IDE. Basically anything referencing an Android API, rather than a basic Java/Kotlin language feature or a third-party library, becomes unrecognized. I have to hit the "sync" button to get it to recognize those symbols again.

    This isn't necessarily something completely new, but before it was always temporary. It might show those errors for a second or two, but once the build finished (or at least passed a certain stage), the IDE would refresh and the symbols would be properly recognized again. But now it doesn't do that anymore, and I have to manually resync after each build.

    Has anyone else encountered this problem? It's getting pretty annoying.

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

    Need some guidance on implementing custom view (calendar-like)

    Posted: 26 Apr 2018 12:10 PM PDT

    Hello guys! So i've been tasked with implementing following design

    I don't think this can be accomplished by using framework views. So the only option is to make a custom view.

    From the specs I was given:

    • Room numbers is a separate list (vertical) which upon scrolling also scrolls room cells field.
    • Scrolling room cells vertically should scroll room list down or up accordingly, headers with date should not scroll vertically, of course
    • Scrolling room cells\ headers horizontally should leave room numbers static but move room cells\ header with dates

    My first thought was making a custom view for header (holds 5 days) and other custom view for making cell field, which will have height of cellHeightPerRoom * numberOfRooms and wrapping it in ScrollView.

    Next step i took was to make a RecyclerView adapter that will have a Linear layout with 2 children: 1) Custom view for header (thus static) and 2) ScrollView which has other custom view that holds cells

    Wrapping it up - i put that it horizontal RecyclerView and came up with this result: https://youtu.be/3RXLFLhB09U

    However i'm now thinking about how to sync scrollview position for all adapter items. You can see from the video that if i scroll cells in one item (btw one item holds cells for 5 days) the other adapter item does not sync scroll position (welp, of course because it's not handled right now :P )

    Anyway i start to get a feeling that the approach i took is not correct. Could someone point me in the right direction?

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

    Google updates I/O app for 2018

    Posted: 26 Apr 2018 02:40 PM PDT

    Good introduction to MVVM/architectures in general?

    Posted: 26 Apr 2018 06:29 AM PDT

    I've written a few android apps before and I'm familiar with most of the APIs, but basically all of them end up being spaghetti code. I've seen example projects on GitHub but I don't really understand them. I'd like to know, for example, which classes/libraries are necessary and which are not, what's the purpose of each class etc.

    How did you start learning about architectures? Do you recommend any good guides?

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

    GDPR guildelines from Google for handling AdMob

    Posted: 26 Apr 2018 02:57 AM PDT

    Best way to render a styled map not in an Activity

    Posted: 26 Apr 2018 09:08 AM PDT

    I've been using Google maps lite mode which lets you render in the background, but the quality is not good compared to the full mode at high resolutions.

    I've been looking at some open street map libraries, but haven't found any that can make a map in the background.

    I want to avoid the expense of doing my own tile server if I can. I was thinking about serving vector data and drawing on device, but I suspect that will be a lot of work, if I can even manage it!

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

    Another SMS Receiving Problem

    Posted: 26 Apr 2018 01:58 PM PDT

    I know this question has been all over the internet, but I've scoured the internet and tried everything I could find. I'm trying to set up a BroadcastReceiver for SMS_RECEIVED. Below are the relevant pieces of code.

    The manifest:

    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.formulaic.scv.texter"> <uses-permission android:name="android.permission.READ_SMS" /> <uses-permission android:name="android.permission.SEND_SMS" /> <uses-permission android:name="android.permission.RECEIVE_SMS" /> <uses-permission android:name="android.permission.READ_CONTACTS" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <receiver android:name=".SmsReceiver" android:exported="true" android:permission="android.permission.BROADCAST_SMS"> <intent-filter android:priority="2147483647"> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter> </receiver> </application> </manifest> 

    And the class itself:

    public class SmsReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { Log.d("smsreceiver","called onReceive"); // Retrieves a map of extended data from the intent. final Bundle bundle = intent.getExtras(); try { if (bundle != null) { final Object[] pdusObj = (Object[]) bundle.get("pdus"); for (int i = 0; i < pdusObj.length; i++) { SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]); String phoneNumber = currentMessage.getDisplayOriginatingAddress(); String message = currentMessage.getDisplayMessageBody(); Log.i("SmsReceiver", "senderNum: "+ phoneNumber + "; message: " + message); Toast.makeText(context,"senderNum: "+ phoneNumber + ", message: " + message, Toast.LENGTH_LONG).show(); } // end for loop } // bundle is null } catch (Exception e) { Log.e("SmsReceiver", "Exception smsReceiver" +e); } } } 

    The Log at the beginning of onReceive isn't being called. I think I have something set up weird. I have on use prompts for the permissions in the manifest in the Main Activity and when I look in the settings on my phone, the app has both SMS and Contact permissions as it should.

    Testing it on a Nexus5x running Android 8.1.0.

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

    Anyone else having problems with kotlin with android studio 3.1.2?

    Posted: 25 Apr 2018 10:23 PM PDT

    Yesteday I updated Android Studio from 3.1.1 to 3.1.2 and now Android Studio doesn't recognize any imports from the support library. This includes fragments, recycler view and bottom navigation bar. This only happens in my project that uses kotlin.

    Is anyone else having this problem? Does anyone have a solution?

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

    Starting Android Dev

    Posted: 26 Apr 2018 08:04 AM PDT

    Hi, I'm currently a junior in college and have a potential job/internship setup for re-writing and app for android devices. After doing some research I realized that a lot of things are pretty outdated :/. But I have created a list of up to date things(udactiy, android dev guides, codePath, and Google I/O 2017). But I was wondering if anyone knows of any other resources that are available for me to dive into also! And if you guys have any suggestions on what things to learn before others that'd be great! Oh and I do have extensive (relatively) experience in Java so the language itself isn't a problem. Thanks for anything in advance!

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

    [Talk] Londroid - ConstraintLayout 2.0

    Posted: 26 Apr 2018 06:42 AM PDT

    Judge my app

    Posted: 26 Apr 2018 03:33 AM PDT

    I created a very small app to play around with MVVM and RxJava2 & LiveData (and also Dagger2). It's a parcel tracker for the Spanish national post service (to replace the awful official one). You can find the binary here:

    https://play.google.com/store/apps/details?id=net.kelmer.correostracker

    An example Track & Trace is CD0DLA0000292430015706A, if you want to test.

    But I would very much appreciate if you guys can dive into my code and let me know your feedback. I've open sourced it in github:

    https://github.com/kelmer44/correos-tracker

    Please be constructive, I am willing to change anything as I am still learning :)

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

    Giving full permission to my application

    Posted: 26 Apr 2018 03:28 PM PDT

    Hello, I'm new to Android developping and I'm trying to give full permission to the app I'm creating, I was just wondering if there is a way to do so For example, I'd add in my manifest <uses-permission android:name="android.permission.*"/> where android.permission.* includes every permission instead of writing permission by permission. If this isn't quite clear I'm sorry for that, don't know how to explain it in a better way. Thanks for the help.

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

    This Guide to the Collections Framework puts Oracle Docs to SHAME!

    Posted: 26 Apr 2018 03:25 PM PDT

    The UK Mobile Events Guide 2018

    Posted: 26 Apr 2018 06:18 AM PDT

    TIL: Kotlins `.use` extension rethrows all exceptions and should be wrapped in a try clause

    Posted: 26 Apr 2018 08:04 AM PDT

    I totally missed this when reading examples, countless blog posts and what not. From what I can recall I haven't seen a single blog post wrapping usages of .use in a try clause; Today I learned the hard way that it rethrows all catched exceptions. So uses of .use like in my fav writeup about the Kotlin stdlib is totally reckless in production, and one might easily get the idea that it supresses exceptions.

    Here's the important part of the .use declaration in stdlib:

    public inline fun <T : Closeable?, R> T.use(block: (T) -> R): R { //... try { return block(this) } catch (e: Throwable) { exception = e --> throw e } finally { //... 

    Hopefully this saves someones day :)

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

    Worth it to put ads in my application?

    Posted: 26 Apr 2018 12:52 AM PDT

    I made a good amount of apps just to put them out their, and didn't really care if people downloaded them or not. Now I logged on to my dev console after a few weeks and saw that most of my apps have over 30 or 40 active users. One such app has over 500 active users and is getting about 30 more installers per day on average. This app currently has really good reviews as well, which I did not expect, as it was one of my foolish apps.

    Anyways, I want to know whether it is worth it to try to put ads in it at this point. Would I receive anything significant? Or is it better off letting my users have an ad-free experience?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel