• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, September 25, 2018

    Professional Android 4th Edition A new cover, title, and co-author; and lots of new content Android Dev

    Professional Android 4th Edition A new cover, title, and co-author; and lots of new content Android Dev


    Professional Android 4th Edition A new cover, title, and co-author; and lots of new content

    Posted: 25 Sep 2018 11:34 AM PDT

    [WIP] Bluelittle - easy BLE with Kotlin

    Posted: 25 Sep 2018 07:52 AM PDT

    How many of you had serious headaches when trying to implement BLE? How many of you slaved over shitty boilerplate code for days only to say "fuck this shit" and start from scrap?

    Well I might have the solution for your problems, and it's called Bluelittle.

    Bluelittle is a pet project of mine to make BLE communication work closer to what was intended - a REST-like interface, without boilerplate, focusing on functionality.

    Bluelittle is nothing more than a DSL-style wrapper around RxAndroidBle - a library that already works quite well, but lacks... how shall I say... Style. It is still about god-level callbacks and callbacks within callbacks within callbacks. It's callback hell - like most of Rx is, and for the beginner, it's not easy to read, not to mention comprehend or implement. That's where Bluelittle comes in.

    Imagine if BLE was as easy as e.g. Retrofit for REST. A single definition of a device, and easy access to characteristics, services, scanning, etc., all in one. That's Bluelittle.

    How it works

    A technical example:

    val myDevice = device { name = "Device name" service { name = "Test service" id = 0x180d characteristic<Int> { name = "Sample characteristic" id = 0x180e mode = read and write and notify } characteristic<String> { name = "Sample characteristic 2" id = 0x180f mode = write } characteristic<MyClass> { name = "Sample characteristic 3" id = 0x1811 mode = read and notify } } } 

    This defines a device with all their services and all their characteristics. The resulting Device object can then be used to scan for devices matching this description:

    myDevice.startScan() // myDevice.results is a LiveData<List<ScanResult>> so you can easily subscribe 

    Then when you're done scanning, you can easily connect to a detected device (or restore connection from a previous session):

    myDevice.connect("aa:bb:cc:dd:ee:ff") // or myDevice.connect(scanResult: ScanResult) 

    When the connection is established, characteristics can be managed:

    myDevice.services[SERVICE_ID].characteristics[CHAR_ID].read() myDevice.services[SERVICE_ID].characteristics[CHAR_ID].write(data: T) myDevice.services[SERVICE_ID].characteristics[CHAR_ID].notify() // Each characteristic has a `data` property, that is LiveData<T>, so you can easily subscribe // Each method above is a void call, the result will end up in said `data` property. 

    It's as hard as working with Retrofit - albeit a bit more basic with the accessors.

    What it handles

    Let's see a list of things Bluelittle handles:

    • Scanning for devices matching the description
    • Connecting to a device matching the description (or rather, any device, and throw an exception if read/write/notify fails - for now)
    • Restoring previous connection based on device address
    • Easy read, write and notify characteristic values
    • Value conversion for characteristics (for now limited to one type, in the future I'd like to have separate types for reading, writing and notifying)

    What's in progress

    To be honest, the whole thing. The idea is still very fluid, although some points have been concretised. I'm still not sure about the scanning functionality (Device starts to feel like a god class), and I'd also like to implement a few extra "nice to have" features. Most likely I will transform most RxAndroidBle classes to local ones, at least the public facing parts, so that this library can work in a black box style - everything needed is supplied by this library, models, methods, etc.

    I also want to add some extra properties for services and characteristics (like a boolean field determining if said service should be included in the scan filter or not), some possible overrides, extensions for callbacks, and of course I'm open to suggestions.

    The code will be published under MIT/Apache licensing (haven't decided yet, want to give as much freedom as possible while encouraging users to commit back enhancements). I might even add a few default services/characteristics.

    So, what do you guys think? What should be added, removed, refactored? I'm far from releasing even v0.0.1, but I'd like to hear the opinion of the community about the direction.

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

    what is the best material design search view library ??

    Posted: 25 Sep 2018 08:47 AM PDT

    as mentioned in the title ! there are a bunch of material design searchView libraries ..what is the best / ur favorite

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

    New to Android development - Does it make sense to jump directly into Flutter? Any clear drawbacks vs Java+Android Studio? Considering picking up a Flutter+Dart online course

    Posted: 25 Sep 2018 08:21 AM PDT

    Title basically.

    I've searched online but many of the answers are old or not very conclusive.

    I've set up my dev environment on my PC with Flutter + VS Code and I've run the demo app. I saw how cool the hot-reload feature is. It looks like a nice way to learn Android development and potentially create iOS versions of those same apps with little extra effort.

    However, before I go ahead, buy the course and dive straight in, I'd like some reassurance. Is there any reason why I should consider the Java+Android Studio route instead of Dart+Flutter?

    Keep in mind I'm totally new to Android development, so I'm not "used" to Android Studio. In both cases I would be starting from scratch, so AS doesn't have that advantage in my case.

    Are there any key things that I would be missing by not using Java+Android Studio? I've read that Flutter is still lacking support for some of the Android APIs and libraries that Android Studio does support. Could you give me any examples?

    For instance, a personal app project I have in mind would work by listening to notifications from other Android apps on your phone and triggering actions based on them. Maybe send new notifications to wearable devices like Wear OS watches. Would I stumble upon any issues with Flutter?

    Thanks in advance!

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

    Comparing Google ARCore and Apple ARKit – Vieyra Software – Medium

    Posted: 25 Sep 2018 11:05 AM PDT

    why is my cpu operating in 32bit?

    Posted: 25 Sep 2018 01:46 PM PDT

    Lucky 7 new tools and plugins for Android developers & designers

    Posted: 24 Sep 2018 11:31 PM PDT

    HDMI input into android?

    Posted: 25 Sep 2018 02:26 PM PDT

    Hello, I wanted to put out my feelers and see how feasible for this is. The end goal is to play my switch (or any HDMI source input) on a VR 'display' on my android. Basically just a virtual monitor with HDMI input. Im aware of capture cards to capture HDMI footage, but I can't find out if they would work for Android. Any ideas how this could be achieved? Perhaps writing capture card driver for the android? Or using a raspberry pi in the middle? I'm an experienced developer and have decent EE skills. Want to get a prototype working by any means! Thanks

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

    Do i have to know advanced java to build advanced android apps?

    Posted: 25 Sep 2018 09:06 AM PDT

    Hi little bit of background.I did Java few years ago in school where we learned core Java knowledge such as OOP concepts,encapsulation,method overload override etc.Well as some DS such as hashtable, some string manipulation and data types like list, array etc.So we learned java from basics all the way to OOP concepts .Then I did not programmed in Java but still syntax is fairly fresh because I do OOP programming in C# and both languages are similar in syntax.

    However recently I was interested in android development.So I had to program in Java.I found highly recommended Udemy Course "The Complete Android Oreo Developer" by Rob Percival.This course assumes you have no programming knowledge and experience and states that it will teach everything you need to know.Thing is I have experience and knowledge both in programming and specifically in fundamental Java concepts which I listed above.Course for sure can be good to refresh my old knowledge and add some extras.However something came to my mind.If I just refresh my Java knowledge and learn only extra knowledge about java much as android course tells me , would i limit myself as android developer?I don't plan to use Java for anything else other than Android development so I was wondering how necessary is advanced Java topics to built complex apps?Is it must or can you build complex apps with core Java knowledge?Other Udemy Course "Complete Java Masterclass" by Tim Buchalka is 76 hours long and i won't be able to start Android development before finishing that.However it teaches advanced java topics android course won't teach.So I was wondering whether taking some Advance Java course for Android development would be overkill and take my attention away from actual purpose for not much benefit or not.Thanks.

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

    NativeScript vs Java/Android Studio

    Posted: 25 Sep 2018 01:28 PM PDT

    Just this week I started a new app project in NativeScript and finding it very smooth to work in. I've made apps written in JAVA on Android Studio, I like it, but now I'm thinking of learning more of NativeScript.

    Very new to it and I'm sure it's got it's limitations, so I'm here to ask if anyone would recommend going down this rabbithole some more. Just fishing for general input.

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

    Load base 64 strings into bitmpas into imageviews efficiently.

    Posted: 25 Sep 2018 08:50 AM PDT

    Currently i retrieve images from my database in base 64 format and store them like that in my room database.

    However when populating the recyclerview, i noticed it begins to hang for a fraction of a second when i scroll through the recyclerview. I have figured that the problem was that i was decoding the base 64 image into a bitmap in my onbind viewholder.

    Are there any good fixes for this issue? I would like to have the inages displayed with everything else at the same time without any performace stutters from the recyclerview. I was thinking maybe and async task to load them but any better ideas are appreciated.

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

    Have anyone tried Android App Bundle in production?

    Posted: 25 Sep 2018 01:04 AM PDT

    I was wondering, have anyone tried out Android App Bundle in production?

    https://developer.android.com/guide/app-bundle/?utm_source=android-studio

    It seems pretty promising based on promotional video. But, I'm still hesitate to opt-in, as usually cool new tech from Google is quite buggy. Dev needs to wait for some time, for it to be stable.

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

    Canvas: Movable/Draggable and resizable shapes

    Posted: 25 Sep 2018 09:45 AM PDT

    Hey there,

    I'm using React-Native to develop an App, though the question here is not about React-Native but just about Androids Canvas system as I'm trying to extend a native React-Native library.

    For the last two days I'm trying to figure out how to draw some shape onto the canvas and make it draggable/moveable as a first step. I want to be able to scale/change size of the shape later as well, but that's not the problem here.

    So what I have atm is a canvas (extends view):

    • Where I can free-form draw onto
    • Place a background image (and draw onto it)
    • Place text on a fixed position

    What I struggle with:

    • How to place a Shape/Text onto the canvas and make it draggable/moveable with onTouchEvent?

    I've been watching tech talks and tutorials on androids canvas and dragging/moving for the last two days and found that actually all of them are using CustomViews likehttps://www.oodlestechnologies.com/blogs/Android-Drawing-On-Canvas-And-Object-Dragging-Application

    or

    https://blog.uptech.team/how-to-create-beautiful-text-stickers-for-android-10eeea0cee09

    and their github https://github.com/uptechteam/MotionViews-Android

    But how do I then draw the customView (which itself is a canvas?) onto my canvas?

    Maybe good for reference: https://github.com/creambyemute/react-native-sketch-canvas/tree/master/android/src/main/java/com/terrylinla/rnsketchcanvas

    I'm happy about any direction pointers on how I should go about that as my current attempts all failed and I seem to be missing something on how to put a CustomView onto my sketch canvas

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

    I'm using father's old Samsung phone for test app building. How do i remove root?

    Posted: 25 Sep 2018 01:17 PM PDT

    He rooted his phone a while ago and now has a new phone. I'm using his old one to develop a series of apps to build a freelance portfolio. Will the phone being rooted cause any issues in my development projects? I read that factory resetting will not remove the root, thus I'm unsure if this phone is suitable for legitimate application testing or if it will conflict in any way.

    Thanks for the help

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

    Disadvantages of Custom Animations?

    Posted: 25 Sep 2018 09:20 AM PDT

    I'm confused on when to use what for animation. What are the disadvantage to writing a custom view that reads a bitmap spritesheet and Timeanimator versus any other android animations methods?

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

    Current state of animations

    Posted: 25 Sep 2018 12:32 AM PDT

    Hey,

    What's your opinion of a proper way of creating animations? I've seen there are different tools (like Layout animations, View animations etc), so which one is mostly used? I believe different animation types are used for different stuff, but I'd like to get an idea of best practice for animations.

    Thanks

    tl;dr What's the best practice animation creation?

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

    VR code editor app

    Posted: 25 Sep 2018 02:16 PM PDT

    Hello, my project idea is creating a VR app that is essentially a text editor like Atom in VR, so one could code on a plane or elsewhere with an Android and keyboard. I haven't done Android development or VR development, but I am a professional developer and feel comfortable learning the tools. Any ideas on where to start? I only know of unity for VR development, and I think if I can render a webview in VR, I can get away with using an in-browser editor like code mirror. Not sure what the best route for this is. Thanks!

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

    How to let presenter handle clicks?

    Posted: 25 Sep 2018 01:06 PM PDT

    I'm currently implementing MVP into my project and am shrinking the views. The closest I've gotten to reducing clicks was setting an onclick listener in the view and having that call a presenter function. Is there a way to shrink that further?

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

    Banners gone from play store?

    Posted: 24 Sep 2018 09:39 PM PDT

    Anyone else notice banners not showing on Google Play Store android app?

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

    Investigating and Optimizing Client Side API + Web Page Rendering Latencies

    Posted: 25 Sep 2018 03:29 AM PDT

    Custom Actionbar hides tabs

    Posted: 25 Sep 2018 02:39 AM PDT

    Hello,

    I am developing an RSS FEED application for a website. all is working good until I added Navigation Drawer in to the mix.

    The problem is the custom actionbar you have to create in order for the navigation drawer not to be covered by the default actionbar.

    my problem here is that the custom actionbar hides(covers) My tab view. ill share the XML code maybe you can help me fix it. since it seems to me that my problem is primarily the XML

    (MainActivity XML) this one is the one with the tabs that are being covered by the action bar.

    <?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android="r/http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"xmlns:tools="http://schemas.android.com/tools"android:id="@+id/main_content"android:layout_width="match_parent"android:layout_height="match_parent"android:fitsSystemWindows="true"><android.support.v4.view.ViewPagerandroid:id="@+id/container"android:layout_width="match_parent"android:layout_height="wrap_content"app:layout_behavior="@string/appbar_scrolling_view_behavior" ><android.support.design.widget.TabLayoutandroid:id="@+id/tabs"android:layout\_width="match\_parent"android:layout\_height="wrap\_content"app:tabGravity="fill"app:tabMode="scrollable"app:tabTextAppearance="@android:style/TextAppearance.Widget.TabWidget" /></android.support.v4.view.ViewPager><LinearLayoutandroid:layout\_width="match\_parent"android:layout\_height="match\_parent"android:orientation="vertical"><android.support.v7.widget.Toolbarandroid:id="@+id/toolbar"android:layout\_width="match\_parent"android:layout\_height="?android:attr/actionBarSize"android:background="@color/colorPrimary"android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"app:popupTheme="@style/ThemeOverlay.AppCompat.Light"android:elevation="4dp" /><FrameLayoutandroid:id="@+id/fragment\_container"android:layout\_width="match\_parent"android:layout\_height="match\_parent"/></LinearLayout><android.support.design.widget.NavigationViewandroid:id="@+id/navigation\_view"android:layout\_width="wrap\_content"android:layout\_height="match\_parent"android:layout\_gravity="start"app:headerLayout="@layout/nav\_header"app:menu="@menu/drawer\_menu"/></android.support.v4.widget.DrawerLayout >

    this one is the nav_header.xml

    <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout\_width="match\_parent"android:gravity="bottom"android:padding="16dp"android:layout\_height="176dp"><ImageViewandroid:layout\_width="wrap\_content"android:layout\_height="wrap\_content"android:src="@drawable/logo48x48"/><TextViewandroid:layout\_width="wrap\_content"android:layout\_height="wrap\_content"android:paddingTop="8dp"android:text="LemesosBlog"android:textAppearance="@style/TextAppearance.AppCompat.Body1"/><TextViewandroid:layout\_width="wrap\_content"android:layout\_height="wrap\_content"android:text="[http://www.lemesosblog.com/](http://www.lemesosblog.com/)"/></LinearLayout>

    what am I missing here ?

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

    need help : Document picture taking SDK (with quality check)

    Posted: 25 Sep 2018 05:40 AM PDT

    hi guys,

    I want an SDK or something that allows me to take pictures of documents and do edge cropping. I dont want to do OCR on the phone or any such thing.

    These images are sent to my server, but the problem is that users take low quality pictures , etc. I tried Camerakit, but it doesnt detect document page edges and definitely cannot identify if quality is low.

    Has anyone done anything like this ? need some help desperately

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

    What kind of application can stand out on play store?

    Posted: 24 Sep 2018 11:06 PM PDT

    Hello,

    There are a millions of applications available on play store, almost for any purpose. I mean any idea i might have its already there. So my question is, even if its already exists what kind of application is still worth developing?

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

    Authentication with AWS Amplify and Android: Customizing the UI

    Posted: 25 Sep 2018 01:09 AM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel