• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, August 6, 2019

    Announcing Shark: Smart Heap Analysis Reports for Kotlin Android Dev

    Announcing Shark: Smart Heap Analysis Reports for Kotlin Android Dev


    Announcing Shark: Smart Heap Analysis Reports for Kotlin

    Posted: 06 Aug 2019 01:24 PM PDT

    Android Canvas Drawing: Useful Graphics Classes & Operations

    Posted: 06 Aug 2019 06:21 AM PDT

    Getting Touch Held Down Callbacks on Android

    Posted: 06 Aug 2019 03:37 AM PDT

    Classy Google

    Posted: 06 Aug 2019 02:14 PM PDT

    Speech enhancement

    Posted: 06 Aug 2019 03:28 PM PDT

    I'm working on a audio messaging app(focussed on speech) . I want to enhance the audio quality by using some form of noise removal, audio dynamic range compression/audio loudness leveler. Are there any good libraries for such audio processing tasks?

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

    Is it me or the code formatter of AS is getting crazy ?

    Posted: 06 Aug 2019 06:10 AM PDT

    Since I started a new project to try out kotlin, the code formatter of Android Studio feel like a complete mess. The way it reorganize my code feel silly, but also inconsistent, some day it will reorganize it in a certain way, and the next day completely the opposite.

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

    Define split point for app names?

    Posted: 06 Aug 2019 10:23 AM PDT

    I'm developing an app for myself to use, but the android app name is too long for my phone to display in one line, so the last character gets moved to the next line on the home screen. I'd like to have the split occur 3 characters earlier however, as it would make more sense for the name in question.

    I could introduce a whitespace at the point where I want the name to be split, however that would mean that on phones where the whole name fits one line, the whitespace would show up.

    Is there a way to predetermine a splitting point for the app name, so that android splits the name at that point if necessary?

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

    Got super close to Beta app when last winter Google banned any app that accesses SMS logs but is not a default SMS handler. Is it so tricky that I need an expert on this, or could any good developer do? Can it be SMS handler but not phone handler, or does it need to be both?

    Posted: 06 Aug 2019 09:29 AM PDT

    Automatic SMS Verification with SMS User Consent

    Posted: 06 Aug 2019 10:46 AM PDT

    Resources getting back to Android development

    Posted: 06 Aug 2019 04:31 PM PDT

    I did Android development for about 2 years between 2014 and 2016. Now I have to get back to it, after a 4 year hiatus.

    Back then SQLite was used for data storage, HttpUrlConnection + AsyncTask for fetching/posting to/from REST APIS and manual view binding between the XML declarations and the object model.

    I'm an experienced SW with about 9+ years, I'm mostly looking for crash courses on how to do the basic stuff for traditional Apps, the codebase I'm working with is 2015 aged and was put together by multiple contractors (inland and offshore). It seems so far that it now is [Room]() for persistence, Retrofit for REST APIs, Volley for more "raw" http requests and OkHTTP if you need websockets (which I do) on the data side there's the Room library and improved view-data binding which is awesome now.

    I've found the following, which contain a lot of resources:

    The app I'm working with uses MapView and Geolocation data, so thats another specific topic that I going over:

    The resources don't have to be free, I'm also trying to find some good quality paid ones, similar to the ones found in Hacking With Swift, I will focus mostly on patterns, code organization, libraries, best practices and testing automation.

    I already have some Kotlin experience for the backend and plan on porting the 2015 code base as time permits.

    I'm also looking for any open source Android applications that I can look at and experiment with modifying, fixing issues upgrading to kotlin, etc, if you happen to know of any I'd love to take a look, so far I've found:

    Thank you for any contribution and hope that you find some of the links useful.

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

    What is the best way to save and access dynamic data for use in a navigation drawer menu?

    Posted: 06 Aug 2019 04:12 PM PDT

    I am writing a weather app, which has been going pretty smoothly until now. I'm trying to implement a way for the user to save "favorite" cities so that they can open up the navigation drawer and click on one from a list to switch to that city in the weather view.

    I am having trouble with how to display the list items in the navigation view, as well as how to properly store them for access later.

    This is what I've tried so far:

    When a user "saves" a city, it is added to a list that is saved as a JSON object in SharedPreferences. My plan was then to retrieve this and somehow use it to add MenuItems to the navigation drawer menu. When I tried to implement it, it was unbelievably clunky and difficult, and felt very far away from an optimal solution.

    This seems to be a very simple problem, since it's simply getting data in one place and retrieving it somewhere else, but I'm struggling badly with finding a good way to do it.

    My app is far too large to show a reasonably small amount of code here, and I don't have this particular feature implemented anyway. I'm looking more for a direction to go in that I can apply to my project. If there are any specific questions about the code, I can provide snippets or the Github repo.

    Ideally, the app will display a little star or something next to the city name when the weather is displayed, that the user can toggle to add to the "saved cities" list. I tried that, to no success, and also tried having a "manage saved cities" screen where the user could add and delete cities, but had trouble there too.

    Like I said, I'm not necessarily looking for exact code, more of just a strategy for how to handle this kind of situation, maybe with generic code samples where applicable. Any insight or direction would be much appreciated. Thanks!

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

    Sending a file from your PC to your app, what options are available?

    Posted: 06 Aug 2019 02:46 PM PDT

    Hi.

    I'm building an app for a PC game and need to get a certain config file from the users PC. So the user will have to find the file on their PC and somehow transfer it to the app. The file is a json.

    I'd rather not setup a backend with a database and a login system for users to upload it to a website and download it in the app. That seems like way too much work although I do realize that that would probably be the easiest to use.

    I've though about having users copy the file contents (87 kb) and emailing it to themselves. Then, on their phone, copy the contents and paste into some textfield in the app. Although the file seems to be a big too big for this. Android gets very laggy when copying files that large and the gmail app cuts of the message because it's too long which makes it difficult to copy everything.

    Is there some solution I'm missing?

    submitted by /u/-OGG__
    [link] [comments]

    Does anyone know why the charge for these days 0 dollars? It's suppose to be 0.99

    Posted: 06 Aug 2019 02:43 PM PDT

    Which version of Android Studio is stable?

    Posted: 06 Aug 2019 02:18 PM PDT

    With so many complaints of bugs, instability and features breaking on every release, which one would you use now if you have the choice? Would you go for 3.4.2 or 3.5 rc 2?

    I'm currently on an AS version freeze to concentrate on getting a major update done, but after that, it's upgrade time.

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

    Correct workflow for user input and keyboard visibility

    Posted: 06 Aug 2019 01:11 PM PDT

    Hi,

    I have an Activity which prompt user with an InputText at the top and then some checkboxes or radios. At the bottom, there is the Send button which close the Activity.

    After seeing some users using this Activity, I noted that they are clicking on the InputText, which brings the virtual keyboard, type some text then begins directly to type on checkboxes and radio , which does not close the keyboard which is then useless and occupy half of the screen through user finished to complete this Activity, hits the Send button which so close the Activity and the keyboard.

    I found a method to automatically hide the keyboard when the InputText is hidden in the ScrollView when scrolling, which is pretty neat, but what is the official guidelines to manage this sort of workflow appart with this help? It's a bit strange that when user clicks its first other widget (like radio or checkbox), InputText does not automatically lose focus and so close the keyboard. Same things when it's not visible in a ScrollView, which is what I needed to implement manually...

    Thanks for you advices!

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

    User acceptance of fingerprint authentication

    Posted: 06 Aug 2019 02:43 AM PDT

    Couldn't find any information about this after searching the web a bit.

    Does anybody have data about the user acceptance rate concerning the use of biometric authentication, more specifically fingerprint authentication?

    From what I gathered, the general sentiment is good among mobile users, because fingerprint auth creates less UX friction, is faster, and the user can't forget a fingerprint (!= a pin code).

    I would like to hear from you guys if you have any data that confirms this. We are looking at proposing a double solution with PIN code + fingerprint and are doing some market research about the solutions.

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

    Using Android Lint to add and maintain Dark theme - Part 2

    Posted: 06 Aug 2019 08:23 AM PDT

    Developing for Google Glass

    Posted: 06 Aug 2019 10:47 AM PDT

    Any reading materials or insights on developing for Google Glass?

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

    Google’s learning course for Android App development

    Posted: 06 Aug 2019 10:45 AM PDT

    Hello everyone! So today I will start Google's learning paths for Android development! I have only taken a intro to programming course at my college (methods, classes, etc.) and was wondering does Google's learning paths touch up on data structures by chance? Thanks!

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

    Pixel 3 XL Q emulator display issue. Happened to me both on Mac OS X and Windows 10 partition. How to fix?

    Posted: 05 Aug 2019 07:01 PM PDT

    How to save the cached video using ExoPlayer?

    Posted: 06 Aug 2019 08:35 AM PDT

    Hello.

    I'm using ExoPlayer as the main video player in my app. The problem I'm currently facing is that, while ExoPlayer buffers the streams, it does not save the streams while playing, which means that if the user wants to replay a video after he/she quits the app, the video shall be downloaded again.

    This is very costly for my app, and I'm trying to find a solution using which I could save the cached video, similar to what Telegram does.

    Any idea how I could achieve this? I've read this but this is different than downloading and streaming at once.

    Thank you for your insights!

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

    duplicateParentState focused works fine on a selector for one nested ImageView but not another nested ImageView

    Posted: 06 Aug 2019 08:19 AM PDT

    I have two LinearLayouts that are focusable. Both of their backgrounds are set to a selector that loads an image when they are focused. When they are not focused the background is set to transparent. These both work perfectly fine.

    Nested in each of these LinearLayouts is an ImageView whose src attribute is set to a selector. This selector also is set to an image when it is focused, and is set to transparent when it is not focused. Both of the ImageViews have duplicateParentState="true". The ImageView in the 'first' LinearLayout works as intended. It shows the image when it is focused, and is transparent when it is not focused. However the 'second' LinearLayout's ImageView does not work. It remains transparent and doesn't load the image. It seems to never properly inherit the focused state from the LinearLayout. I have another similar section in another part of the app that has 4 of these LinearLayouts with nested ImageViews that do the same thing. Even there, only the first one receives the focused state from the parent properly. All of the others do not.

    Code below, omitting anything that isn't relative to focus.

    The LinearLayouts and ImageViews:

    <LinearLayout android:background="@drawable/background_selector" android:focusable="true" android:focusableInTouchMode="true"> <ImageView android:src="@drawable/image_selector" android:duplicateParentState="true"/> </LinearLayout> <LinearLayout android:background="@drawable/background_selector" android:focusable="true" android:focusableInTouchMode="true"> <ImageView android:src="@drawable/image_selector" android:duplicateParentState="true"/> </LinearLayout> 

    LinearLayout's background selector:

    <selector xmlns:android="https://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/background" android:state_focused="true" /> <item android:drawable="@android:color/transparent" /> </selector> 

    ImageView's src selector:

    <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/image" android:state_focused="true" /> <item android:drawabe="@android:color/transparent" /> </selector> 

    Anyone know why the top LinearLayout and ImageView is working perfectly fine, but for the bottom one the background is working fine but the ImageView is not?

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

    I want to make an Android TV

    Posted: 06 Aug 2019 05:34 AM PDT

    I want to make my own Android TV for personal use, how would I go about doing this? What single board solutions could I use? And what limitations would I have to look out for?

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

    What is the way to check if a product is already purchased in latest Google Play Billing Library?

    Posted: 05 Aug 2019 10:12 PM PDT

    Hi I am trying to implement in-app purchase in my app but I still don't get how I can check if the user already purchased the product. Some people already asked similar questions before but seems like Google Play Billing Library updated and the official documentation lacks many things. If anyone who has implemented in-app purchase using latest version of the library, please give me tips.

    Thanks.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel